E
E
Eugene2012-07-18 13:18:33
phpstorm
Eugene, 2012-07-18 13:18:33

Yii Behavior and autocompletion in PhpStorm (or @mixin tag in PHPDoc comments)?

PhpStorm can pick up traits. In Yii, a kind of traits or mixins are implemented through Behaviors.
Is it possible to teach PhpStorm to use methods from a Behavior in the context of the component it is bound to?
It would be great to specify the link via PHPDoc comments, for example with the @mixin tag. But this tag is not implemented.
Perhaps there are other ways?
UPD I
invite everyone interested to vote for the implementation of this feature in PhpStorm
click

Answer the question

In order to leave comments, you need to log in

6 answer(s)
N
nikosid, 2016-03-06
@nikosid

Stumbled upon this question by accident a few years after it was written. At the moment, @mixin in PhpStorm works as the author of the post wanted.

A
Alexey Prokhorov, 2012-07-18
@megahertz

If I have to use it often, I add the necessary methods through @ method. You can try requesting a new feature here

T
TurtleSun, 2013-09-26
@TurtleSun

I wonder if a solution has been found so far? Interested for Zend Studio.

M
Melz, 2012-07-19
@melz

You can try adding something like
/* var $classInstance ClassA|ClassB */ at the very top of the page

M
Melz, 2012-07-19
@melz

You can try adding something like
/* var $classInstance ClassA|ClassB */ at the very top of the page

E
Eugene, 2012-07-20
@Agent_J

Perhaps SamDark will help us)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question