Пример #1
0
 /**
  * @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']]);
 }
Пример #2
0
 /**
  * @return array
  */
 public function behaviors()
 {
     return array_merge(parent::behaviors(), [HasRelatedProperties::className() => ['class' => HasRelatedProperties::className(), 'relatedElementPropertyClassName' => Form2FormSendProperty::className(), 'relatedPropertyClassName' => Form2FormProperty::className()], Serialize::className() => ['class' => Serialize::className(), 'fields' => ['data_labels', 'data_values', 'data_server', 'data_session', 'data_cookie', 'additional_data', 'data_request']]]);
 }
Пример #3
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return array_merge(parent::behaviors(), [HasRelatedProperties::className() => ['class' => HasRelatedProperties::className(), 'relatedElementPropertyClassName' => ShopBuyerProperty::className(), 'relatedPropertyClassName' => ShopPersonTypeProperty::className()]]);
 }