PHP Class Habari\UserGroups

Inheritance: extends ArrayObject
Show file Open project: habari/system

Protected Properties

Property Type Description
$get_param_cache

Public Methods

Method Description
get ( array $paramarray = [] ) : array Returns a group or grops based on supplied parameters.
get_all ( ) : Groups Select all groups from the database
get_by_token ( string $token, string $access = 'full' ) : UserGroups Gets a set of groups based on their access to a certain token

Method Details

get() public static method

Returns a group or grops based on supplied parameters.
public static get ( array $paramarray = [] ) : array
$paramarray array An associated array of parameters, or a querystring
return array An array of UserGroup objects, or a single UserGroup object, depending on request

get_all() public static method

Select all groups from the database
public static get_all ( ) : Groups
return Groups

get_by_token() public static method

Gets a set of groups based on their access to a certain token
public static get_by_token ( string $token, string $access = 'full' ) : UserGroups
$token string The token to check for
$access string The access level for that token, defaults to 'full'
return UserGroups

Property Details

$get_param_cache protected property

protected $get_param_cache