ILIAS
Release_5_0_x_branch Revision 61816
|
UDF permission helper. More...
Data Fields | |
const | CONTEXT_UDF = 1 |
const | CONTEXT_FIELD = 2 |
const | ACTION_UDF_CREATE_FIELD = 1 |
const | ACTION_FIELD_EDIT = 1 |
const | ACTION_FIELD_DELETE = 2 |
const | ACTION_FIELD_EDIT_PROPERTY = 3 |
const | ACTION_FIELD_EDIT_ACCESS = 4 |
const | SUBACTION_FIELD_TITLE = 1 |
const | SUBACTION_FIELD_PROPERTIES = 2 |
const | SUBACTION_FIELD_ACCESS_VISIBLE_PERSONAL = 1 |
const | SUBACTION_FIELD_ACCESS_VISIBLE_REGISTRATION = 2 |
const | SUBACTION_FIELD_ACCESS_VISIBLE_LOCAL = 3 |
const | SUBACTION_FIELD_ACCESS_VISIBLE_COURSES = 4 |
const | SUBACTION_FIELD_ACCESS_VISIBLE_GROUPS = 5 |
const | SUBACTION_FIELD_ACCESS_CHANGEABLE_PERSONAL = 6 |
const | SUBACTION_FIELD_ACCESS_CHANGEABLE_LOCAL = 7 |
const | SUBACTION_FIELD_ACCESS_REQUIRED = 8 |
const | SUBACTION_FIELD_ACCESS_EXPORT = 9 |
const | SUBACTION_FIELD_ACCESS_SEARCHABLE = 10 |
const | SUBACTION_FIELD_ACCESS_CERTIFICATE = 11 |
Protected Member Functions | |
readContextIds ($a_context_type) | |
Get all context ids for context type (from DB, is cached) | |
buildPermissionMap () | |
Build map of context and actions. | |
getActivePlugins () | |
Get active plugins (for current slot) | |
Protected Member Functions inherited from ilClaimingPermissionHelper | |
__construct ($a_user_id, $a_ref_id) | |
Constructor. | |
setUserId ($a_value) | |
Set user id. | |
getUserId () | |
Get user id. | |
setRefId ($a_value) | |
Set ref id. | |
getRefId () | |
Get ref id. | |
isValidContextAndAction ($a_context_type, $a_context_id, $a_action_id, $a_action_sub_id=null) | |
Check if given combination of context and action is valid. | |
getValidContextIds ($a_context_type) | |
Get context ids for context type (uses cache) | |
checkPermission ($a_context_type, $a_context_id, $a_action_id, $a_action_sub_id=null) | |
Check permission (helper: rbac, plugins) | |
checkRBAC () | |
Check permission against RBAC. | |
checkPlugins ($a_context_type, $a_context_id, $a_action_id, $a_action_sub_id=null) | |
Check permission against plugins. |
Additional Inherited Members | |
Public Member Functions inherited from ilClaimingPermissionHelper | |
reset () | |
Reset (internal caches) | |
hasPermission ($a_context_type, $a_context_id, $a_action_id, $a_action_sub_id=null) | |
Check permission. | |
hasPermissions ($a_context_type, $a_context_id, array $a_action_ids) | |
Check permissions. | |
Static Public Member Functions inherited from ilClaimingPermissionHelper | |
static | getInstance ($a_user_id=null, $a_ref_id=null) |
Factory. | |
Protected Attributes inherited from ilClaimingPermissionHelper | |
$user_id | |
$ref_id | |
$map | |
$context_ids | |
$plugins | |
Static Protected Attributes inherited from ilClaimingPermissionHelper | |
static | $instances |
|
protected |
Build map of context and actions.
Reimplemented from ilClaimingPermissionHelper.
Definition at line 75 of file class.ilUDFPermissionHelper.php.
|
protected |
Get active plugins (for current slot)
Reimplemented from ilClaimingPermissionHelper.
Definition at line 116 of file class.ilUDFPermissionHelper.php.
References $res, and IL_COMP_SERVICE.
|
protected |
Get all context ids for context type (from DB, is cached)
int | $a_context_type |
Reimplemented from ilClaimingPermissionHelper.
Definition at line 46 of file class.ilUDFPermissionHelper.php.
const ilUDFPermissionHelper::ACTION_FIELD_DELETE = 2 |
Definition at line 23 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldsGUI\deleteField().
const ilUDFPermissionHelper::ACTION_FIELD_EDIT = 1 |
Definition at line 22 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldSettingsTableGUI\fillRow().
const ilUDFPermissionHelper::ACTION_FIELD_EDIT_ACCESS = 4 |
Definition at line 25 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldSettingsTableGUI\fillRow(), ilCustomUserFieldsGUI\initForm(), ilCustomUserFieldsGUI\update(), ilCustomUserFieldsGUI\updateFields(), and ilCustomUserFieldsGUI\validateForm().
const ilUDFPermissionHelper::ACTION_FIELD_EDIT_PROPERTY = 3 |
Definition at line 24 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldsGUI\initForm(), ilCustomUserFieldsGUI\update(), and ilCustomUserFieldsGUI\validateForm().
const ilUDFPermissionHelper::ACTION_UDF_CREATE_FIELD = 1 |
Definition at line 20 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldsGUI\listUserDefinedFields().
const ilUDFPermissionHelper::CONTEXT_FIELD = 2 |
Definition at line 17 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldsGUI\deleteField(), ilCustomUserFieldSettingsTableGUI\fillRow(), ilCustomUserFieldsGUI\initForm(), ilCustomUserFieldsGUI\update(), and ilCustomUserFieldsGUI\updateFields().
const ilUDFPermissionHelper::CONTEXT_UDF = 1 |
Definition at line 16 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldsGUI\listUserDefinedFields().
const ilUDFPermissionHelper::SUBACTION_FIELD_ACCESS_CERTIFICATE = 11 |
Definition at line 41 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldSettingsTableGUI\fillRow(), ilCustomUserFieldsGUI\getAccessPermissions(), ilCustomUserFieldsGUI\initForm(), ilCustomUserFieldsGUI\update(), and ilCustomUserFieldsGUI\updateFields().
const ilUDFPermissionHelper::SUBACTION_FIELD_ACCESS_CHANGEABLE_LOCAL = 7 |
Definition at line 37 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldSettingsTableGUI\fillRow(), ilCustomUserFieldsGUI\getAccessPermissions(), ilCustomUserFieldsGUI\initForm(), ilCustomUserFieldsGUI\update(), and ilCustomUserFieldsGUI\updateFields().
const ilUDFPermissionHelper::SUBACTION_FIELD_ACCESS_CHANGEABLE_PERSONAL = 6 |
Definition at line 36 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldSettingsTableGUI\fillRow(), ilCustomUserFieldsGUI\getAccessPermissions(), ilCustomUserFieldsGUI\initForm(), ilCustomUserFieldsGUI\update(), and ilCustomUserFieldsGUI\updateFields().
const ilUDFPermissionHelper::SUBACTION_FIELD_ACCESS_EXPORT = 9 |
Definition at line 39 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldSettingsTableGUI\fillRow(), ilCustomUserFieldsGUI\getAccessPermissions(), ilCustomUserFieldsGUI\initForm(), ilCustomUserFieldsGUI\update(), and ilCustomUserFieldsGUI\updateFields().
const ilUDFPermissionHelper::SUBACTION_FIELD_ACCESS_REQUIRED = 8 |
Definition at line 38 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldSettingsTableGUI\fillRow(), ilCustomUserFieldsGUI\getAccessPermissions(), ilCustomUserFieldsGUI\initForm(), ilCustomUserFieldsGUI\update(), and ilCustomUserFieldsGUI\updateFields().
const ilUDFPermissionHelper::SUBACTION_FIELD_ACCESS_SEARCHABLE = 10 |
Definition at line 40 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldSettingsTableGUI\fillRow(), ilCustomUserFieldsGUI\getAccessPermissions(), ilCustomUserFieldsGUI\initForm(), ilCustomUserFieldsGUI\update(), and ilCustomUserFieldsGUI\updateFields().
const ilUDFPermissionHelper::SUBACTION_FIELD_ACCESS_VISIBLE_COURSES = 4 |
Definition at line 34 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldSettingsTableGUI\fillRow(), ilCustomUserFieldsGUI\getAccessPermissions(), ilCustomUserFieldsGUI\initForm(), ilCustomUserFieldsGUI\update(), and ilCustomUserFieldsGUI\updateFields().
const ilUDFPermissionHelper::SUBACTION_FIELD_ACCESS_VISIBLE_GROUPS = 5 |
Definition at line 35 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldSettingsTableGUI\fillRow(), ilCustomUserFieldsGUI\getAccessPermissions(), ilCustomUserFieldsGUI\initForm(), ilCustomUserFieldsGUI\update(), and ilCustomUserFieldsGUI\updateFields().
const ilUDFPermissionHelper::SUBACTION_FIELD_ACCESS_VISIBLE_LOCAL = 3 |
Definition at line 33 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldSettingsTableGUI\fillRow(), ilCustomUserFieldsGUI\getAccessPermissions(), ilCustomUserFieldsGUI\initForm(), ilCustomUserFieldsGUI\update(), and ilCustomUserFieldsGUI\updateFields().
const ilUDFPermissionHelper::SUBACTION_FIELD_ACCESS_VISIBLE_PERSONAL = 1 |
Definition at line 31 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldSettingsTableGUI\fillRow(), ilCustomUserFieldsGUI\getAccessPermissions(), ilCustomUserFieldsGUI\initForm(), ilCustomUserFieldsGUI\update(), and ilCustomUserFieldsGUI\updateFields().
const ilUDFPermissionHelper::SUBACTION_FIELD_ACCESS_VISIBLE_REGISTRATION = 2 |
Definition at line 32 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldSettingsTableGUI\fillRow(), ilCustomUserFieldsGUI\getAccessPermissions(), ilCustomUserFieldsGUI\initForm(), ilCustomUserFieldsGUI\update(), and ilCustomUserFieldsGUI\updateFields().
const ilUDFPermissionHelper::SUBACTION_FIELD_PROPERTIES = 2 |
Definition at line 29 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldsGUI\initForm(), ilCustomUserFieldsGUI\update(), and ilCustomUserFieldsGUI\validateForm().
const ilUDFPermissionHelper::SUBACTION_FIELD_TITLE = 1 |
Definition at line 28 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldsGUI\initForm(), and ilCustomUserFieldsGUI\update().