Beispiel #1
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return [BlameableBehavior::className(), TimestampBehavior::className(), 'sluggable' => ['class' => SluggableBehavior::className(), 'attribute' => 'title'], 'multilingual' => ['class' => MultilingualBehavior::className(), 'langForeignKey' => 'post_category_id', 'tableName' => "{{%post_category_lang}}", 'attributes' => ['title', 'description']], 'nestedInterval' => ['class' => NestedIntervalsBehavior::className(), 'leftAttribute' => 'left_border', 'rightAttribute' => 'right_border', 'amountOptimize' => '25', 'noPrepend' => true]];
 }
Beispiel #2
0
 /**
  * @return array
  */
 public function behaviors()
 {
     return [['class' => NestedIntervalsBehavior::className()]];
 }
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return ['tree' => ['class' => NestedIntervalsBehavior::className(), 'treeAttribute' => 'tree', 'range' => [0, 9223372036854775807]]];
 }
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return ['tree' => ['class' => NestedIntervalsBehavior::className(), 'treeAttribute' => 'tree']];
 }
Beispiel #5
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return [['class' => AdjacencyListBehavior::className(), 'sortable' => false], ['class' => NestedIntervalsBehavior::className(), 'treeAttribute' => 'tree']];
 }