예제 #1
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return ['tree' => ['class' => AdjacencyListBehavior::className(), 'parentsJoinLevels' => 0, 'childrenJoinLevels' => 0]];
 }
예제 #2
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return [['class' => AdjacencyListBehavior::className(), 'sortable' => false], ['class' => MaterializedPathBehavior::className()]];
 }
예제 #3
0
파일: User.php 프로젝트: maxneh/oripro
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return [TimestampBehavior::className(), ['class' => AdjacencyListBehavior::className(), 'parentAttribute' => 'parent_id'], ['class' => NestedSetsBehavior::className(), 'treeAttribute' => null, 'leftAttribute' => 'lft', 'rightAttribute' => 'rgt', 'depthAttribute' => 'level']];
 }
예제 #4
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return [['class' => AdjacencyListBehavior::className(), 'sortable' => false], ['class' => NestedSetsBehavior::className(), 'treeAttribute' => 'tree']];
 }
예제 #5
0
 public function behaviors()
 {
     return [['class' => AdjacencyListBehavior::className()]];
 }