Earl
Well-known member
@Kier & @Jeremy Said
but it breaks auto completion on IDE (in my case PhpStorm)
can't use code completion to this
is there anyone know how to fix this?
may be using PhpDoc comments or something?
Kier said:But for a dynamic system where there might be dozens of classes attempting to extend the like model, this is unworkable.
Instead, we must make use of the XenForo Class Proxy system, which allows the system to effectively have multiple inheritance capabilities. To use it, we must declare the class as ClassName, and have it extend XFCP_ClassName, like this:
PHP:
<?php
class newProfileTabs_Extend_ControllerPublic_Member extends XFCP_newProfileTabs_Extend_ControllerPublic_Member
{
}
?>
can't use code completion to this
PHP:
class newProfileTabs_Extend_ControllerPublic_Member extends XFCP_newProfileTabs_Extend_ControllerPublic_Member{
public function actionUsersLike(){
$userId = $this->_input->filterSingle('user_id', XenForo_Input::UINT);
$user = $this ->getHelper('UserProfile')->assartUserProfileValidAndViewable($userId);
$users = $this->getHelper('UserProfile')->assertUserProfileValidAndViewable($userId);
}
}
is there anyone know how to fix this?
may be using PhpDoc comments or something?
Last edited: