Are there classes, i can not extend?
How can I check if a class is extended?
Real world example:
Normally the program should spit an error now, right?
If I copy that
Also I can manipulate $sorts there. When i watch
What I can do now? Xdebug and follow the steps? But if it is not jumping to my class ... what can I do?
How can I check if a class is extended?
Real world example:
XML:
<?xml version="1.0" encoding="utf-8"?>
<class_extensions>
<extension from_class="XF\ForumType\AbstractHandler" to_class="Xencafe\Lala\XF\ForumType\AbstractHandler" execute_order="1000" active="1"/>
</class_extensions>
Code:
<?php
namespace Xencafe\Lala\XF\ForumType;
use XF\Entity\Forum;
class AbstractHandler extends XFCP_AbstractHandler
{
public function getThreadListSortOptions(Forum $forum, bool $forAdminConfig = false): array
{
$sorts = \XF::repository('XF:Thread')->getDefaultThreadListSortOptions($forAdminConfig);
Please, show me an error now!!!
return $sorts;
}
}
Normally the program should spit an error now, right?
If I copy that
Please, show me an error now!!!
to the original class, i get me error.Also I can manipulate $sorts there. When i watch
/admin.php?class-extensions/
it says that the class is extended.What I can do now? Xdebug and follow the steps? But if it is not jumping to my class ... what can I do?