Class

ActionAuthorization

Package: phpboost Author: Benoit Sautel <ben.popeye@phpboost.com> Desc: This class represents the authorizations for an action. It's associated to a label, a description, the bit in which flags are saved, and obviously the authorization array which is encapsulated in the RolesAuthorizations class. The bit which is used to store the authorization is 2n where n is the number of the place you want to use. It's recommanded to begin with 1 (20 = 1) then 2 (21 = 2) then 4 (22 = 4) etc... Located at phpboost/member/authorization/ActionAuthorization.class.php
Methods summary
public
# __construct( string $label, integer $bit, string $description = '', RolesAuthorizations $roles = null )
public string
# get_label( )
public
# set_label( string $label )
public integer
# get_bit( )
public
# set_bit( integer $bit )
public string
# get_description( )
public
# set_description( string $description )
public RolesAuthorizations
# get_roles_auths( )
public
# set_roles_auths( RolesAuthorizations $roles )
public mixed[]
# build_auth_array( )
public
# build_from_auth_array( array $auth_array )