Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-header.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-header.php on line 8

RightsUtil Class Reference

Static Public Member Functions

static getAllModuleRightsDataByPermitable (Permitable $permitable)
static canUserAccessModule ($moduleClassName, $user)
static doesUserHaveAllowByRightName ($moduleClassName, $rightName, $user)

Static Protected Member Functions

static getRightStringFromRight ($right)

Detailed Description

Helper class for Rights.

Definition at line 40 of file RightsUtil.php.


Member Function Documentation

static getAllModuleRightsDataByPermitable ( Permitable permitable  )  [static]
Returns:
array of all module rights data

Definition at line 45 of file RightsUtil.php.

static canUserAccessModule ( moduleClassName,
user 
) [static]

Given a user model and a module class name, can this user access the module tab or sub-tabs in the user interface. If the moduleClassName is not a subclass of securableModule then this function returns true. Otherwise it checks the access right for this module against the user.

See also:
SecurableModule::getAccessRightName
Returns:
boolean.

Definition at line 103 of file RightsUtil.php.

static doesUserHaveAllowByRightName ( moduleClassName,
rightName,
user 
) [static]

Given a user model, a module class name, and a right name, checks if user can perform the right.

Returns:
boolean.

Definition at line 121 of file RightsUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Wed Jan 16 07:10:28 2019

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-footer.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-footer.php on line 8