Beispiel #1
0
 public function attributeLabels()
 {
     $attributeLabels = parent::attributeLabels();
     return $attributeLabels + ['alias' => Yii::t('app', 'Alias'), 'created' => Yii::t('app', 'Created'), 'updated' => Yii::t('app', 'Updated'), 'owner' => Yii::t('app', 'Owner'), 'editor' => Yii::t('app', 'Editor'), 'h1' => Yii::t('app', 'H1'), 'title' => Yii::t('app', 'Title'), 'keywords' => Yii::t('app', 'Keywords'), 'description' => Yii::t('app', 'Keywords')];
 }
Beispiel #2
0
 /**
  * @inheritdoc
  */
 public function attributeLabels()
 {
     $labels_parent = parent::attributeLabels();
     $labels_course = ['difficulty_level' => Yii::t('app', 'Diffculty Level'), 'status' => Yii::t('app', 'Status'), 'learner_count' => Yii::t('app', 'Learner Count'), 'introduction' => Yii::t('app', 'Course Introduction'), 'notice' => Yii::t('app', 'Course Notice'), 'gains' => Yii::t('app', 'Course Gains'), 'category' => Yii::t('app', 'Course Category'), 'create_time' => Yii::t('app', 'Create Time'), 'update_time' => Yii::t('app', 'Update Time')];
     return array_merge($labels_parent, $labels_course);
 }