16 public function login($prm = null, $page = null) {
21 public function logout($prm = null) {
22 $this->
hook(
'logout');
38 public function check(array $url = null, $redirect=
true) {
42 $hasRight = !$this->
isContained($url, $this->cfg->spec);
44 if (!$hasRight && $redirect) {
46 if ($request != $this->
getPage(
'forbidden') && $request != $this->
getPage(
'login')) {
47 session::setFlash(
'nyroError',
'Don\'t have the permission to access to this page.');
login($prm=null, $page=null)
check(array $url=null, $redirect=true)
isContained(array $url, array $checks)
static setFlash($name, $val=null)
static removeLangOutUrl($request)
getPage($type='login', $uri=false)
getLoginForm(array $prm=array())