Static Public Member Functions | |
static | makeFormFromRightsData ($rightsData) |
static | setRightsFromCastedPost (array $validatedAndCastedPostData, $permitable) |
static | typeCastPostData ($postData) |
Static Protected Member Functions | |
static | AddorRemoveSpecificRight ($moduleClassName, $permitable, $right, $value) |
static | getModuleClassNameFromPostConcatenatedIndexString ($string) |
static | getRightFromPostConcatenatedIndexString ($string) |
Helper class to make a RightsForm and populate the data attribute.
Definition at line 41 of file RightsFormUtil.php.
|
static |
$data | - combined array of all module rights and existing rights on a permitable. Organized by module. Example below: <?php
$moduleRightsData = array(
'UsersModule' => array(
'RIGHT_MANAGE_USERS' => array(
'displayName' => UsersModule::RIGHT_MANAGE_USERS,
'selected' => null,
'inherited' => null,
),
'RIGHT_LOGIN_VIA_WEB' => array(
'displayName' => UsersModule::RIGHT_LOGIN_VIA_WEB,
'selected' => null,
'inherited' => null,
),
'RIGHT_LOGIN_VIA_MOBILE' => array(
'displayName' => UsersModule::RIGHT_LOGIN_VIA_MOBILE,
'selected' => null,
'inherited' => null,
),
'RIGHT_LOGIN_VIA_WEB_API' => array(
'displayName' => UsersModule::RIGHT_LOGIN_VIA_WEB_API,
'selected' => null,
'inherited' => null,
),
),
);
?>
|
Definition at line 76 of file RightsFormUtil.php.
|
static |
Set Permitable Rights from Post
Definition at line 88 of file RightsFormUtil.php.
|
staticprotected |
Definition at line 136 of file RightsFormUtil.php.
|
staticprotected |
Definition at line 147 of file RightsFormUtil.php.
|
static |
Used to properly type cast incoming POST data
Definition at line 158 of file RightsFormUtil.php.