コード例 #1
0
ファイル: Node.php プロジェクト: karsel/yii2-adjacency-list
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return ['tree' => ['class' => AdjacencyListBehavior::className(), 'parentsJoinLevels' => 0, 'childrenJoinLevels' => 0]];
 }
コード例 #2
0
ファイル: NodeAlMp.php プロジェクト: paulzi/yii2-auto-tree
 /**
  * @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
ファイル: NodeAlNs.php プロジェクト: paulzi/yii2-auto-tree
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return [['class' => AdjacencyListBehavior::className(), 'sortable' => false], ['class' => NestedSetsBehavior::className(), 'treeAttribute' => 'tree']];
 }
コード例 #5
0
 public function behaviors()
 {
     return [['class' => AdjacencyListBehavior::className()]];
 }