I see that many classes in XenForo have static function getInstance() and store its instance statically.
Is it simply a way to call non-static methods of that class without initializing more than one instance of same class? Or could it be used for something more complex?
Is it simply a way to call non-static methods of that class without initializing more than one instance of same class? Or could it be used for something more complex?