Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return [['class' => NestedSetsBehavior::className(), 'treeAttribute' => 'tree']];
 }
Exemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     $module = TreeView::module();
     $settings = ['class' => NestedSetsBehavior::className()] + $module->treeStructure;
     return empty($module->treeBehaviorName) ? [$settings] : [$module->treeBehaviorName => $settings];
 }
Exemplo n.º 3
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return [NestedSetsBehavior::className()];
 }