phpDocumentor epesi-base
[ class tree: epesi-base ] [ index: epesi-base ] [ all elements ]

Class: Acl

Source Location: /include/acl.php

Class Acl

Property Summary
static mixed   $gacl  

[ Top ]
Method Summary
static void   add_aco()  
static void   add_aco_section()  
static void   add_groups()   Add group of users
static bool   check()   Wrapper to acl_check phpgacl method.
static void   del_aco()  
static void   del_aco_section()  
static void   del_group()  
static string   get_user()   Get currently logged user.
static bool   is_user()   Are you logged?
static void   set_user()   Set currently logged user

[ Top ]
Properties
static mixed   $gacl [line 15]
API Tags:
Access:  public


[ Top ]
Methods
static method add_aco  [line 101]

  static void add_aco( $section, $name, [ $group = null]  )

Parameters:
   $section: 
   $name: 
   $group: 

API Tags:
Access:  public


[ Top ]
static method add_aco_section  [line 124]

  static void add_aco_section( $section  )

Parameters:
   $section: 

API Tags:
Access:  public


[ Top ]
static method add_groups  [line 74]

  static void add_groups( array $names, [int $parent = null]  )

Add group of users

Parameters:
array   $names:  recurence: key-group name, value-groups dependent
int   $parent:  parent

API Tags:
Access:  public


[ Top ]
static method check  [line 27]

  static bool check( string $a, string $b, [string $c = null], [string $d = null], [ $cache = true]  )

Wrapper to acl_check phpgacl method.

Third and fourth argument can be omited, it will be replaced by currently logged user. Be careful: anonymous user always returns false.

Parameters:
string   $a: 
string   $b: 
string   $c: 
string   $d: 
   $cache: 

API Tags:
Return:  false on access denied
Access:  public


[ Top ]
static method del_aco  [line 118]

  static void del_aco( $section, $name  )

Parameters:
   $section: 
   $name: 

API Tags:
Access:  public


[ Top ]
static method del_aco_section  [line 130]

  static void del_aco_section( $section  )

Parameters:
   $section: 

API Tags:
Access:  public


[ Top ]
static method del_group  [line 92]

  static void del_group( $name  )

Parameters:
   $name: 

API Tags:
Access:  public


[ Top ]
static method get_user  [line 46]

  static string get_user( )

Get currently logged user.


API Tags:
Access:  public


[ Top ]
static method is_user  [line 65]

  static bool is_user( )

Are you logged?


API Tags:
Access:  public


[ Top ]
static method set_user  [line 53]

  static void set_user( [ $a = null]  )

Set currently logged user

Parameters:
   $a: 

API Tags:
Access:  public


[ Top ]

Documentation generated on Fri, 26 Dec 2008 21:37:23 -0500 by phpDocumentor 1.4.2