Beispiel #1
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return [TimestampBehavior::className(), ['class' => BlameableBehavior::className(), 'createdByAttribute' => 'author_id', 'updatedByAttribute' => 'updater_id'], ['class' => SluggableBehavior::className(), 'attribute' => 'title', 'immutable' => true], ['class' => UploadBehavior::className(), 'attribute' => 'attachments', 'multiple' => true, 'uploadRelation' => 'financeAttachments'], ['class' => UploadBehavior::className(), 'attribute' => 'thumbnail', 'pathAttribute' => 'thumbnail_path', 'baseUrlAttribute' => 'thumbnail_base_url'], ['class' => ChangeLogBehavior::className()]];
 }
Beispiel #2
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return [TimestampBehavior::className(), ImportBehavior::className(), ['class' => ChangeLogBehavior::className()]];
 }
Beispiel #3
0
 public function behaviors()
 {
     return [TimestampBehavior::className(), ['class' => ChangeLogBehavior::className()], 'logo' => ['class' => UploadBehavior::className(), 'attribute' => 'logo', 'pathAttribute' => 'logo_path', 'baseUrlAttribute' => 'logo_base_url'], 'm_logo' => ['class' => UploadBehavior::className(), 'attribute' => 'm_logo', 'pathAttribute' => 'm_logo_path', 'baseUrlAttribute' => 'm_logo_base_url']];
 }
Beispiel #4
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return [['class' => SluggableBehavior::className(), 'attribute' => 'title', 'immutable' => true], ['class' => ChangeLogBehavior::className()]];
 }
Beispiel #5
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return [TimestampBehavior::className(), 'slug' => ['class' => SluggableBehavior::className(), 'attribute' => 'title', 'ensureUnique' => true, 'immutable' => true], ['class' => ChangeLogBehavior::className()]];
 }