/
Ladlen
/
news2
Обзор
Документация
Войти
/
Ladlen
/
news2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
models/user/Profile.php
34 строки
765 B
Dolgov Dmitriy
class Profile moved to user folder
06 июн 2017, 18:57
06 июн 2017, 18:57
ead933e
Код
Авторство
О чём код?
<?php namespace app\models\user; use dektrium\user\models\Profile as BaseProfile; /** * This is the model class for table "profile". * * @property integer $notify_news_email * @property integer $notify_news_browser * */ class Profile extends BaseProfile { public function rules() { $attr = parent::rules(); $attr['notifyFieldsSafe'] = [['notify_news_email', 'notify_news_browser'], 'safe']; return $attr; } public function attributeLabels() { $attr = parent::attributeLabels(); $attr['notify_news_email'] = 'Уведомление по email'; $attr['notify_news_browser'] = 'Уведомление в браузере'; return $attr; } }