コード例 #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;
 }
コード例 #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]);
 }
コード例 #3
0
 public function __construct($app, $db, array $data = NULL)
 {
     parent::__construct($app, $db, $data);
     $this->actions = [];
 }
コード例 #4
0
 function __construct($app, $db, array $data = NULL)
 {
     parent::__construct($app, $db, $data);
     $this->actions = ['register', 'login', 'logout', 'profile', 'edit'];
 }