| @@ 237-253 (lines=17) @@ | ||
| 234 | /** | |
| 235 |      * {@inheritdoc} | |
| 236 | */ | |
| 237 | public function attributeLabels() | |
| 238 |     { | |
| 239 | return [ | |
| 240 | 'id' => 'ID', | |
| 241 |             'pageId' => Yii::t('articles', 'Parent page'), | |
| 242 |             'icon' => Yii::t('app', 'Icon'), | |
| 243 |             'active' => Yii::t('app', 'Active status'), | |
| 244 |             'alias' => Yii::t('app', 'URL Alias'), | |
| 245 |             'title' => Yii::t('app', 'Title'), | |
| 246 |             'description' => Yii::t('app', 'Description'), | |
| 247 |             'content' => Yii::t('app', 'Content'), | |
| 248 |             'metaKeys' => Yii::t('app', 'Meta keys'), | |
| 249 |             'metaDescription' => Yii::t('app', 'Meta description'), | |
| 250 |             'created_at' => Yii::t('app', 'Created date'), | |
| 251 |             'updated_at' => Yii::t('app', 'Updated date'), | |
| 252 | ]; | |
| 253 | } | |
| 254 | ||
| 255 | /** | |
| 256 | * @return \yii\db\ActiveQuery | |
| @@ 96-112 (lines=17) @@ | ||
| 93 | /** | |
| 94 |      * {@inheritdoc} | |
| 95 | */ | |
| 96 | public function attributeLabels() | |
| 97 |     { | |
| 98 | return [ | |
| 99 | 'id' => 'ID', | |
| 100 |             'default' => Yii::t('app', 'Default'), | |
| 101 |             'title' => Yii::t('contacts', 'Title'), | |
| 102 |             'address' => Yii::t('contacts', 'Address'), | |
| 103 |             'email' => Yii::t('contacts', 'Email'), | |
| 104 |             'phone' => Yii::t('contacts', 'Phone'), | |
| 105 |             'metaKeys' => Yii::t('app', 'Meta keys'), | |
| 106 |             'metaDescription' => Yii::t('app', 'Meta description'), | |
| 107 |             'created_at' => Yii::t('app', 'Created date'), | |
| 108 |             'updated_at' => Yii::t('app', 'Updated date'), | |
| 109 |             'mapQ' => Yii::t('contacts', 'Map place'), | |
| 110 |             'mapZoom' => Yii::t('contacts', 'Map zoom'), | |
| 111 | ]; | |
| 112 | } | |
| 113 | ||
| 114 | /** | |
| 115 | * Returns the default contacts record. | |
| @@ 235-251 (lines=17) @@ | ||
| 232 | /** | |
| 233 | * @inheritdoc | |
| 234 | */ | |
| 235 | public function attributeLabels() | |
| 236 |     { | |
| 237 | return [ | |
| 238 | 'id' => 'ID', | |
| 239 |             'parentId' => Yii::t('app', 'Parent object'), | |
| 240 |             'icon' => Yii::t('app', 'Icon'), | |
| 241 |             'active' => Yii::t('app', 'Active status'), | |
| 242 |             'alias' => Yii::t('app', 'URL Alias'), | |
| 243 |             'title' => Yii::t('app', 'Title'), | |
| 244 |             'description' => Yii::t('app', 'Description'), | |
| 245 |             'content' => Yii::t('app', 'Content'), | |
| 246 |             'metaKeys' => Yii::t('app', 'Meta keys'), | |
| 247 |             'metaDescription' => Yii::t('app', 'Meta description'), | |
| 248 |             'created_at' => Yii::t('app', 'Created date'), | |
| 249 |             'updated_at' => Yii::t('app', 'Updated date'), | |
| 250 | ]; | |
| 251 | } | |
| 252 | ||
| 253 | /** | |
| 254 | * Reassigning child objects to their new parent after delete the main model record. | |