Xenforo ClassProxy System breaks autocompletion on IDE

Member

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:

As XFCP_newProfileTabs_Extend_ControllerPublic_Member is already defined when the file is included, this code will never run.
But it allows phpStorm to have full auto-completion as if you extend directly XenForo_ControllerPublic_Member in your class.

Also, I've installed DynamicReturnTypePlugin (Intellij/Phpstorm PHP plugin to allow a dynamic return type from method/function calls. It can use either the instance type of the passed parameter or a string lookup), for autocomplete from getHelper/getModelFromCache/etc methods.

Member

hey @Insy
I don't understand friend, I can see your @var or @return way can only get auto completion to $userProfileHelper object after it assigned which is currently not impotent for my situation but it was very usefull and thank you very much for telling me about it and i really appreciate it.

But now,
What I want to do is get auto complete for "$this" ->
(when "assigning XenForo_ControllerHelper_UserProfile object to $userProfileHelper" situation, you used "$this")

I'm asking how to get autocomplete following "$this->" keyword?

because newProfileTabs_Extend_ControllerPublic_Member class is extending XenForo_ControllerPublic_Member class via a code event listener.
so the XenForo_ControllerPublic_Member class is the parent class of newProfileTabs_Extend_ControllerPublic_Member , and I am asking is it possible to get auto completion of parents methods / properties (XenForo_ControllerPublic_Member) to "$this->" using phpDocs or something?

simply:
is it possible to get auto completion from parent class to my sub class following "$this->" when the situation of XFCP?