public function init() { $this->name = "Управление свойствами пользователя"; $this->modelShowAttribute = "name"; $this->modelClassName = CmsUserUniversalProperty::className(); parent::init(); }
public function init() { $this->name = \Yii::t('skeeks/cms', 'User control properties'); $this->modelShowAttribute = "name"; $this->modelClassName = CmsUserUniversalProperty::className(); parent::init(); }
/** * @return \yii\db\ActiveQuery */ public function getProperty() { return $this->hasOne(CmsUserUniversalProperty::className(), ['id' => 'property_id']); }
/** * @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()]]); }