Browse Source

В описание модели добавлены PhpDoc-свойства для работы автодополнений в IDE

master
Andrew 6 years ago committed by GitHub
parent
commit
cb5aaec40b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 23
      README.md

23
README.md

@ -83,6 +83,29 @@ class m150722_150100_multiple_tree extends Migration
```php ```php
use paulzi\nestedsets\NestedSetsBehavior; use paulzi\nestedsets\NestedSetsBehavior;
/**
* @property integer $id
* @property integer $lft
* @property integer $rgt
* @property integer $depth
*
* @method getParents($depth = null)
* @method getParent()
* @method getRoot()
* @method getDescendants($depth = null, $andSelf = false, $backOrder = false)
* @method getChildren()
* @method getLeaves($depth = null)
* @method getPrev()
* @method getNext()
* @method populateTree($depth = null)
* @method isRoot()
* @method isLeaf()
* @method makeRoot()
* @method prependTo($node)
* @method appendTo($node)
* @method deleteWithChildren()
*/
class Sample extends \yii\db\ActiveRecord class Sample extends \yii\db\ActiveRecord
{ {
public function behaviors() { public function behaviors() {

Loading…
Cancel
Save