| 
    nyroFwk
    0.2
    
   | 
 
  
 Public Member Functions | |
| isLogged () | |
| login ($prm=null, $page=null) | |
| logout ($prm=null) | |
| addRole ($role) | |
| hasRole ($role=null) | |
| delRole ($role=null) | |
| check (array $url=null, $redirect=true) | |
| getLoginForm (array $prm=array()) | |
| protect ($page=null) | |
| getPage ($type='login', $uri=false) | |
| getAttr ($name) | |
| setAttr ($name, $value) | |
| getCfg () | |
Protected Member Functions | |
| afterInit () | |
| hook ($name) | |
| isContained (array $url, array $checks) | |
| beforeInit () | |
Protected Attributes | |
| $cfg | |
Security class to check user rights, which allow everything to anybody by default
Definition at line 10 of file public.class.php.
| addRole | ( | $role | ) | 
Definition at line 26 of file public.class.php.
      
  | 
  protectedinherited | 
Definition at line 12 of file security/abstract.class.php.
      
  | 
  protectedinherited | 
Call just before the configuration initialisation
Definition at line 35 of file object.class.php.
| check | ( | array | $url = null,  | 
        
$redirect = true  | 
        |||
| ) | 
Definition at line 38 of file public.class.php.
| delRole | ( | $role = null | ) | 
Definition at line 34 of file public.class.php.
      
  | 
  inherited | 
Get an attribute
| string | $name | Attribute name | 
Definition at line 48 of file object.class.php.
      
  | 
  inherited | 
| getLoginForm | ( | array | $prm = array() | ) | 
Definition at line 55 of file public.class.php.
Get a configured page
| string | $type | Pagename (login, logged, logout, forbidden) | 
| bool | $uri | Indiciate if the url should be parsed with request::uri to be used directly | 
Definition at line 101 of file security/abstract.class.php.
| hasRole | ( | $role = null | ) | 
Definition at line 30 of file public.class.php.
      
  | 
  protectedinherited | 
Function to be rewritten in eventual child to change the way security works Available actions:
| string | $action | 
Definition at line 117 of file security/abstract.class.php.
      
  | 
  protectedinherited | 
Indicate if a configuration array is contained in the url
| array | $url | |
| array | $checks | 
Definition at line 126 of file security/abstract.class.php.
| isLogged | ( | ) | 
Definition at line 12 of file public.class.php.
| login | ( | $prm = null,  | 
        |
$page = null  | 
        |||
| ) | 
Definition at line 16 of file public.class.php.
| logout | ( | $prm = null | ) | 
Definition at line 21 of file public.class.php.
      
  | 
  inherited | 
Redirect the user if not logged
| null | string | $page | Page to redirect or configured page forbidden if not provided | 
Definition at line 88 of file security/abstract.class.php.
      
  | 
  inherited | 
Set an attribute
| string | $name | Attribute name | 
| mixed | $value | Attribute value | 
Definition at line 58 of file object.class.php.
      
  | 
  protectedinherited | 
Definition at line 17 of file object.class.php.
 1.8.13