override

  1. Earl

    XF 2.1 How to override a property?

    You can extend a class and override its methods by having the same name then call it's parent method with this line return parent:methodName(); but how do you override a property? I have this code namespace Earl\AddOn\XF\Searcher; class User extends XFCP_User { protected $allowedRelations...
  2. CMTV

    XF 2.0 How to correctly override fnAvatar function?

    Hi! I am trying to add support for my custom avatar type "minecraft". Avatar type is used in switch construction in the middle of a huge function called fnAvatar (XF\Template\Templater): /* ... a lot of code ... */ switch ($avatarType) { case 'gravatar': case 'custom': case...
Top Bottom