84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
如果是实例属性,可以通过 PHPDOC的@property 来设置
但是函数内变量就做不到了。
$tag_model = Yii::createObject(TagEntity::className()); $tag_model->batchAddTags($add_tags); $tag_model->addQuestionTag();
如何做到$tag_model可以自动提示方法呢?
光阴似箭催人老,日月如移越少年。
在model 前,用@var ModelName
在model 前,用@var ModelName