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();
 }
예제 #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getProperty()
 {
     return $this->hasOne(CmsUserUniversalProperty::className(), ['id' => 'property_id']);
 }
예제 #4
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()]]);
 }