Bitrix and PhpStorm

Hello! I'm a developer from Russia. I use Bitrix CMS in my work. A couple of days ago I downloaded trial version of the PhpStorm and tried to customize it to work with Bitrix Framework. The problem that I faced is in the following: autocomplete for Bitrix classes (/bitrix/modules/) works only after making object. Example:
GetList.png
But It doesn't work when I'm trying to write not a static method as a static (Bitrix feature).
GetList2.png
The Declaration of CIBlockElement is the following:
class CIBlockElement extends CAllIBlockElement
{
....
     function GetList(....)
      {
     ....
     }

}

CAIIIBlockElement class is not abstract.

Thank you in advance.

3 comments

Hi there,

It's all because of "bitrix-style" -- calling non-static method as static.

http://youtrack.jetbrains.com/issue/WI-18727

0

Thanks!! Should our development team vote for this to speed up the process?

0

More votes, the bigger the chance that it will be fixed/implemented sooner. Plus ... the fix should not be that difficult (based on the last comment, which was made by the actual developer).

Just keep in mind -- as far as I understand from that comment, when implemented, such methods will not be listed on first (or automatic) invocation of code completion popup because it's not a correct way of calling such methods. You will have to invoke completion 2nd time (Ctrl+Space one more time) to list all possible options.

0

Please sign in to leave a comment.