Class jAcl

Description

Main class to query the acl system, and to know value of a right

you should call this class (all method are static) when you want to know if the current user have a right

Located in /acl/jAcl.class.php (line 43)


	
			
Method Summary
static boolean check (string $subject, [string $value = true], [string $resource = null])
static void clearCache ()
static array getRight (string $subject, [string $resource = null])
Methods
static check (line 78)

call this method to know if the current user has the right with the given value

  • return: true if yes
  • access: public
static boolean check (string $subject, [string $value = true], [string $resource = null])
  • string $subject: the key of the subject to check
  • string $value: the value to test against
  • string $resource: the id of a resource
static clearCache (line 98)

clear right cache

  • since: 1.0b2
  • access: public
static void clearCache ()
static getRight (line 89)

return the value of the right on the given subject (and on the optional resource)

  • return: list of values corresponding to the right
  • access: public
static array getRight (string $subject, [string $resource = null])
  • string $subject: the key of the subject
  • string $resource: the id of a resource
static _getDriver (line 54)

load the acl driver

  • access: protected
static jIAclDriver _getDriver ()

Documentation generated on Thu, 22 Mar 2012 22:13:49 +0100 by phpDocumentor 1.4.3