skeeks\cms\models\Core::attributeLabels PHP Method

attributeLabels() public method

public attributeLabels ( ) : array
return array
    public function attributeLabels()
    {
        return ['id' => Yii::t('skeeks/cms', 'ID'), 'created_by' => Yii::t('skeeks/cms', 'Created By'), 'updated_by' => Yii::t('skeeks/cms', 'Updated By'), 'created_at' => Yii::t('skeeks/cms', 'Created At'), 'updated_at' => Yii::t('skeeks/cms', 'Updated At')];
    }

Usage Example

Example #1
0
 /**
  * @inheritdoc
  */
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), ['id' => Yii::t('app', 'ID'), 'session_id' => Yii::t('app', 'Session ID'), 'created_by' => Yii::t('app', 'Created By'), 'updated_by' => Yii::t('app', 'Updated By'), 'created_at' => Yii::t('app', 'Created At'), 'updated_at' => Yii::t('app', 'Updated At'), 'phrase' => Yii::t('app', 'Search Phrase'), 'result_count' => Yii::t('app', 'Documents Found'), 'pages' => Yii::t('app', 'Pages Count'), 'ip' => Yii::t('app', 'Ip'), 'site_code' => Yii::t('app', 'Site'), 'data_server' => Yii::t('app', 'Data Server'), 'data_session' => Yii::t('app', 'Data Session'), 'data_cookie' => Yii::t('app', 'Data Cookie'), 'data_request' => Yii::t('app', 'Data Request')]);
 }
All Usage Examples Of skeeks\cms\models\Core::attributeLabels