Пример #1
0
 public function __construct($request, $response)
 {
     $this->info = new AdminInfo();
     $this->translator = FrontHelper::getTranslation();
     View::set_global('translator', $this->translator);
     parent::__construct($request, $response);
 }
Пример #2
0
 function saveChatTransaction($id_user)
 {
     $this->credit = FrontHelper::getCost('chat');
     $this->statement = FrontHelper::getCostDescription('chat');
     $this->time = time();
     $this->pm = 'minus';
     $this->by = $id_user;
     $this->save();
     return true;
 }