Exemplo n.º 1
0
 function __construct($app, $db, array $data = NULL)
 {
     parent::__construct($app, $db, $data);
     $this->useTransactions = FALSE;
     $this->exception = isset($data['exception']) && is_subclass_of($data['exception'], 'Exception') ? $data['exception'] : new Exception('Неизвестная ошибка');
     $this->showErrorPage = isset($data['controller']) ? $data['controller']->showErrorPage : TRUE;
 }
Exemplo n.º 2
0
 function __construct($app, $db, array $data = NULL)
 {
     parent::__construct($app, $db, $data);
     $this->actions = ['messages', 'preview', 'sections', 'articles', 'users', 'storage', 'stats'];
     $this->showErrorPage = TRUE;
     $this->validateRights([USER_REGISTERED]);
 }
Exemplo n.º 3
0
 public function __construct($app, $db, array $data = NULL)
 {
     parent::__construct($app, $db, $data);
     $this->actions = [];
 }
Exemplo n.º 4
0
 function __construct($app, $db, array $data = NULL)
 {
     parent::__construct($app, $db, $data);
     $this->actions = ['register', 'login', 'logout', 'profile', 'edit'];
 }