behaviors() public method

public behaviors ( )
Exemplo n.º 1
0
 public function behaviors()
 {
     return ArrayHelper::merge(parent::behaviors(), [Serialize::className() => ['class' => Serialize::className(), 'fields' => ['component_settings']]]);
 }
Exemplo n.º 2
0
Arquivo: User.php Projeto: Liv1020/cms
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return array_merge(parent::behaviors(), [TimestampBehavior::className(), HasStorageFile::className() => ['class' => HasStorageFile::className(), 'fields' => ['image_id']], HasRelatedProperties::className() => ['class' => HasRelatedProperties::className(), 'relatedElementPropertyClassName' => CmsUserProperty::className(), 'relatedPropertyClassName' => CmsUserUniversalProperty::className()]]);
 }
Exemplo n.º 3
0
 public function behaviors()
 {
     return ArrayHelper::merge(parent::behaviors(), [HasStorageFile::className() => ['class' => HasStorageFile::className(), 'fields' => ['image_id']]]);
 }
Exemplo n.º 4
0
 public function behaviors()
 {
     return ArrayHelper::merge(parent::behaviors(), [Serialize::className() => ['class' => Serialize::className(), "fields" => ["data"]]]);
 }
Exemplo n.º 5
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return ArrayHelper::merge(parent::behaviors(), []);
 }
Exemplo n.º 6
0
 /**
  * @return array
  */
 public function behaviors()
 {
     return array_merge(parent::behaviors(), []);
 }
Exemplo n.º 7
0
 /**
  * @return array
  */
 public function behaviors()
 {
     return array_merge(parent::behaviors(), [\skeeks\cms\behaviors\RelationalBehavior::className(), HasStorageFile::className() => ['class' => HasStorageFile::className(), 'fields' => ['logo_id']]]);
 }
Exemplo n.º 8
0
 /**
  * @return array
  */
 public function behaviors()
 {
     return array_merge(parent::behaviors(), [HasJsonFieldsBehavior::className() => ['class' => HasJsonFieldsBehavior::className(), 'fields' => ['value']]]);
 }
Exemplo n.º 9
0
 public function behaviors()
 {
     $behaviors = parent::behaviors();
     return ArrayHelper::merge(parent::behaviors(), [HasStorageFile::className() => ['class' => HasStorageFile::className(), 'fields' => ['image_id', 'image_full_id']], HasStorageFileMulti::className() => ['class' => HasStorageFileMulti::className(), 'relations' => ['images', 'files']], Implode::className() => ['class' => Implode::className(), "fields" => ["tree_menu_ids"]], "implode_tree" => ['class' => Implode::className(), "fields" => ["pids"], "delimetr" => self::PIDS_DELIMETR], HasRelatedProperties::className() => ['class' => HasRelatedProperties::className(), 'relatedElementPropertyClassName' => CmsTreeProperty::className(), 'relatedPropertyClassName' => CmsTreeTypeProperty::className()]]);
 }
 /**
  * @return array
  */
 public function behaviors()
 {
     return array_merge(parent::behaviors(), [TimestampPublishedBehavior::className() => TimestampPublishedBehavior::className(), Serialize::className() => ['class' => Serialize::className(), 'fields' => ['data_server', 'data_session', 'data_cookie', 'data_request']]]);
 }
Exemplo n.º 11
0
 /**
  * @return array
  */
 public function behaviors()
 {
     return array_merge(parent::behaviors(), [HasJsonFieldsBehavior::className() => ['class' => HasJsonFieldsBehavior::className(), 'fields' => ['products', 'dadata_address']]]);
 }
Exemplo n.º 12
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return array_merge(parent::behaviors(), [TimestampPublishedBehavior::className() => TimestampPublishedBehavior::className()]);
 }