Answer the question
In order to leave comments, you need to log in
How does Bitrix call static methods?
Hello everyone, not so long ago I started working with Bitrix, a question arose, probably a noob one, but very entertaining for me. So, in Bitrix, for example, there is a CIBlockElement::GetList() method, it is called as static, but in the source code there is, roughly speaking, no definition of function public static GetList() ... Why, in this case, is it called as static and does this work great?
Answer the question
In order to leave comments, you need to log in
Because the method is
dynamic, not static.
In theory it should be called like this
$myObject = new CIBlockElement;
$myObject->GetList();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question