Exemple #1
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return ['mediafile' => ['class' => MediafileBehavior::className(), 'name' => 'category', 'attributes' => ['thumbnail']]];
 }
Exemple #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']]];
 }
Exemple #3
0
 public function behaviors()
 {
     return ['mediafile' => ['class' => \pendalf89\filemanager\behaviors\MediafileBehavior::className(), 'name' => 'post', 'attributes' => ['imageurl']]];
 }