behaviors() public method

public behaviors ( )
コード例 #1
0
ファイル: RelatedPropertyModel.php プロジェクト: Liv1020/cms
 public function behaviors()
 {
     return ArrayHelper::merge(parent::behaviors(), [Serialize::className() => ['class' => Serialize::className(), 'fields' => ['component_settings']]]);
 }
コード例 #2
0
ファイル: User.php プロジェクト: 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()]]);
 }
コード例 #3
0
ファイル: CmsSite.php プロジェクト: Liv1020/cms
 public function behaviors()
 {
     return ArrayHelper::merge(parent::behaviors(), [HasStorageFile::className() => ['class' => HasStorageFile::className(), 'fields' => ['image_id']]]);
 }
コード例 #4
0
ファイル: ShopOrderChange.php プロジェクト: BMOTech/cms-shop
 public function behaviors()
 {
     return ArrayHelper::merge(parent::behaviors(), [Serialize::className() => ['class' => Serialize::className(), "fields" => ["data"]]]);
 }
コード例 #5
0
ファイル: ShopFuser.php プロジェクト: BMOTech/cms-shop
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return ArrayHelper::merge(parent::behaviors(), []);
 }
コード例 #6
0
ファイル: CmsContentType.php プロジェクト: Liv1020/cms
 /**
  * @return array
  */
 public function behaviors()
 {
     return array_merge(parent::behaviors(), []);
 }
コード例 #7
0
ファイル: ShopDelivery.php プロジェクト: BMOTech/cms-shop
 /**
  * @return array
  */
 public function behaviors()
 {
     return array_merge(parent::behaviors(), [\skeeks\cms\behaviors\RelationalBehavior::className(), HasStorageFile::className() => ['class' => HasStorageFile::className(), 'fields' => ['logo_id']]]);
 }
コード例 #8
0
 /**
  * @return array
  */
 public function behaviors()
 {
     return array_merge(parent::behaviors(), [HasJsonFieldsBehavior::className() => ['class' => HasJsonFieldsBehavior::className(), 'fields' => ['value']]]);
 }
コード例 #9
0
ファイル: Tree.php プロジェクト: skeeks-cms/cms
 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()]]);
 }
コード例 #10
0
 /**
  * @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']]]);
 }
コード例 #11
0
ファイル: V3toysOrder.php プロジェクト: v3toys/skeeks
 /**
  * @return array
  */
 public function behaviors()
 {
     return array_merge(parent::behaviors(), [HasJsonFieldsBehavior::className() => ['class' => HasJsonFieldsBehavior::className(), 'fields' => ['products', 'dadata_address']]]);
 }
コード例 #12
0
ファイル: StorageFile.php プロジェクト: Liv1020/cms
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return array_merge(parent::behaviors(), [TimestampPublishedBehavior::className() => TimestampPublishedBehavior::className()]);
 }