Inheritance: extends yii\base\Behavior
Example #1
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return ['mediafile' => ['class' => MediafileBehavior::className(), 'name' => 'category', 'attributes' => ['thumbnail']]];
 }
Example #2
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return ['timestamp' => ['class' => TimestampBehavior::className(), 'attributes' => [ActiveRecord::EVENT_BEFORE_INSERT => 'created_at', ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at']], 'mediafile' => ['class' => MediafileBehavior::className(), 'name' => 'post', 'attributes' => ['thumbnail']]];
 }
Example #3
0
 public function behaviors()
 {
     return ['mediafile' => ['class' => \pendalf89\filemanager\behaviors\MediafileBehavior::className(), 'name' => 'post', 'attributes' => ['imageurl']]];
 }