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