public function after() { parent::after(); if ($this->template->notice_count['new'] > 0) { $services = array(); foreach ($this->user->services->find_all() as $s) { $services[] = $s->id; } if (!empty($services)) { DB::update('notices_services')->set(array('read' => 'y'))->where('service_id', 'in', $services)->execute(); } DB::update('notices_users')->set(array('read' => 'y'))->where('user_id', '=', $this->user->id)->execute(); } }
public function before() { parent::before(); $this->template->bc['cabinet/news'] = 'Новости моих автосервисов'; }
function before() { parent::before(); $this->template->bc['cabinet/feedback'] = 'Обратная связь'; }
function before() { parent::before(); $this->template->bc['cabinet/profile'] = 'Настройки профиля'; }
function before() { parent::before(); $this->template->bc['cabinet/stock'] = 'Акции'; }
function before() { $this->allow_expired = true; parent::before(); $this->template->bc['cabinet/payment'] = 'Пополнение баланса'; }
public function before() { parent::before(); $this->template->bc['cabinet/qa'] = __('cb_questions'); }
function before() { parent::before(); $this->template->bc['cabinet/vacancy'] = 'Вакансии'; }
public function before() { parent::before(); $this->template->title = 'Галерея'; $this->template->bc['#'] = $this->template->title; }