Inheritance: extends yii\behaviors\AttributeBehavior
コード例 #1
0
ファイル: CmsContentElement.php プロジェクト: Liv1020/cms
 /**
  * @return array
  */
 public function behaviors()
 {
     return array_merge(parent::behaviors(), [TimestampPublishedBehavior::className() => TimestampPublishedBehavior::className(), HasStorageFile::className() => ['class' => HasStorageFile::className(), 'fields' => ['image_id', 'image_full_id']], HasStorageFileMulti::className() => ['class' => HasStorageFileMulti::className(), 'relations' => ['images', 'files']], HasRelatedProperties::className() => ['class' => HasRelatedProperties::className(), 'relatedElementPropertyClassName' => CmsContentElementProperty::className(), 'relatedPropertyClassName' => CmsContentProperty::className()], HasTrees::className() => ['class' => HasTrees::className(), 'elementTreesClassName' => CmsContentElementTree::className()], SeoPageName::className() => ['class' => SeoPageName::className(), 'generatedAttribute' => 'code']]);
 }