ILIAS
Release_5_0_x_branch Revision 61816
|
class ilRbacReview Contains Review functions of core Rbac. More...
Public Member Functions | |
__construct () | |
Constructor public. | |
searchRolesByMailboxAddressList ($a_address_list) | |
Finds all role ids that match the specified user friendly role mailbox address list. | |
getRoleMailboxAddress ($a_role_id, $is_localize=true) | |
Returns the mailbox address of a role. | |
roleExists ($a_title, $a_id=0) | |
Checks if a role already exists. | |
getParentRoleIds ($a_endnode_id, $a_templates=false) | |
get an array of parent role ids of all parent roles, if last parameter is set true you get also all parent templates public | |
getRoleListByObject ($a_ref_id, $a_templates=false) | |
Returns a list of roles in an container public. | |
getAssignableRoles ($a_templates=false, $a_internal_roles=false, $title_filter= '') | |
Returns a list of all assignable roles public. | |
getAssignableRolesInSubtree ($ref_id) | |
Returns a list of assignable roles in a subtree of the repository public. | |
getAssignableChildRoles ($a_ref_id) | |
Get all assignable roles directly under a specific node public. | |
getNumberOfAssignedUsers (Array $a_roles) | |
Get the number of assigned users to roles ilDB $ilDB. | |
assignedUsers ($a_rol_id, $a_fields=NULL) | |
get all assigned users to a given role public | |
isAssigned ($a_usr_id, $a_role_id) | |
check if a specific user is assigned to specific role public | |
isAssignedToAtLeastOneGivenRole ($a_usr_id, $a_role_ids) | |
check if a specific user is assigned to at least one of the given role ids. | |
assignedRoles ($a_usr_id) | |
get all assigned roles to a given user public | |
assignedGlobalRoles ($a_usr_id) | |
Get assigned global roles for an user. | |
isAssignable ($a_rol_id, $a_ref_id) | |
Check if its possible to assign users public. | |
hasMultipleAssignments ($a_role_id) | |
Temporary bugfix. | |
getFoldersAssignedToRole ($a_rol_id, $a_assignable=false) | |
Returns an array of objects assigned to a role. | |
getRolesOfObject ($a_ref_id, $a_assignable_only=FALSE) | |
Get roles of object. | |
getRolesOfRoleFolder ($a_ref_id, $a_nonassignable=true) | |
get all roles of a role folder including linked local roles that are created due to stopped inheritance returns an array with role ids public | |
getGlobalRoles () | |
get only 'global' roles public | |
getLocalRoles ($a_ref_id) | |
Get local roles of object. | |
getLocalPolicies ($a_ref_id) | |
Get all roles with local policies. | |
getGlobalRolesArray () | |
get only 'global' roles public | |
getGlobalAssignableRoles () | |
get only 'global' roles (with flag 'assign_users') public | |
isRoleAssignedToObject ($a_role_id, $a_parent_id) | |
Check if role is assigned to an object. | |
getOperations () | |
get all possible operations public | |
getOperation ($ops_id) | |
get one operation by operation id public | |
getAllOperationsOfRole ($a_rol_id, $a_parent=0) | |
get all possible operations of a specific role The ref_id of the role folder (parent object) is necessary to distinguish local roles public | |
getActiveOperationsOfRole ($a_ref_id, $a_role_id) | |
Get active operations for a role. | |
getOperationsOfRole ($a_rol_id, $a_type, $a_parent=0) | |
get all possible operations of a specific role The ref_id of the role folder (parent object) is necessary to distinguish local roles public | |
getRoleOperationsOnObject ($a_role_id, $a_ref_id) | |
ilDB $ilDB | |
getOperationsOnType ($a_typ_id) | |
all possible operations of a type public | |
getOperationsOnTypeString ($a_type) | |
all possible operations of a type public | |
getOperationsByTypeAndClass ($a_type, $a_class) | |
Get operations by type and class. | |
getObjectsWithStopedInheritance ($a_rol_id, $a_filter=array()) | |
get all objects in which the inheritance of role with role_id was stopped the function returns all reference ids of objects containing a role folder. | |
isDeleted ($a_node_id) | |
Checks if a rolefolder is set as deleted (negative tree_id) public. | |
isGlobalRole ($a_role_id) | |
Check if role is a global role. | |
getRolesByFilter ($a_filter=0, $a_user_id=0, $title_filter= '') | |
ilDB $ilDB | |
getTypeId ($a_type) | |
Get type id of object ilDB $ilDB. | |
isProtected ($a_ref_id, $a_role_id) | |
getObjectOfRole ($a_role_id) | |
Get object id of objects a role is assigned to. | |
getObjectReferenceOfRole ($a_role_id) | |
Get reference of role. | |
isRoleDeleted ($a_role_id) | |
return if role is only attached to deleted role folders | |
getRolesForIDs ($role_ids, $use_templates) | |
ilDB $ilDB | |
getOperationAssignment () | |
get operation assignments | |
isDeleteable ($a_role_id, $a_rolf_id) | |
Check if role is deleteable at a specific position. | |
isSystemGeneratedRole ($a_role_id) | |
Check if the role is system generate role or role template. | |
getRoleFolderOfRole ($a_role_id) | |
Get role folder of role ilDB $ilDB. | |
getUserPermissionsOnObject ($a_user_id, $a_ref_id) | |
Get all user permissions on an object. | |
setAssignedCacheEntry ($a_role_id, $a_user_id, $a_value) | |
set entry of assigned_chache | |
getAssignedCacheEntry ($a_role_id, $a_user_id) | |
get entry of assigned_chache |
Static Public Member Functions | |
static | _getOperationIdsByName ($operations) |
get ops_id's by name. | |
static | _getOperationIdByName ($a_operation) |
get operation id by name of operation public static | |
static | lookupCreateOperationIds ($a_type_arr) |
Lookup operation ids. | |
static | _getOperationList ($a_type=null) |
get operation list by object type public static | |
static | _groupOperationsByClass ($a_ops_arr) |
Data Fields | |
const | FILTER_ALL = 1 |
const | FILTER_ALL_GLOBAL = 2 |
const | FILTER_ALL_LOCAL = 3 |
const | FILTER_INTERNAL = 4 |
const | FILTER_NOT_INTERNAL = 5 |
const | FILTER_TEMPLATES = 6 |
$log = null |
Protected Member Functions | |
__getParentRoles ($a_path, $a_templates) | |
Note: This function performs faster than the new getParentRoles function, because it uses database indexes whereas getParentRoles needs a full table space scan. | |
__setTemplateFilter ($a_templates) | |
get roles and templates or only roles; returns string for where clause private | |
__setRoleType ($a_role_list) | |
computes role type in role list array: global: roles in ROLE_FOLDER_ID local: assignable roles in other role folders linked: roles with stoppped inheritance template: role templates | |
__setProtectedStatus ($a_parent_roles, $a_role_hierarchy, $a_ref_id) | |
Set protected status type $rbacsystem type $ilUser type $log. |
Protected Attributes | |
$assigned_roles = array() |
Static Protected Attributes | |
static | $assigned_users_cache = array() |
static | $is_assigned_cache = array() |
Static Private Attributes | |
static | $_opsCache = null |
class ilRbacReview Contains Review functions of core Rbac.
This class offers the possibility to view the contents of the user <-> role (UR) relation and the permission <-> role (PR) relation. For example, from the UA relation the administrator should have the facility to view all user assigned to a given role.
Definition at line 19 of file class.ilRbacReview.php.
ilRbacReview::__construct | ( | ) |
Constructor public.
Definition at line 48 of file class.ilRbacReview.php.
References $ilDB, $ilErr, $ilLog, if, and PEAR_ERROR_CALLBACK.
|
protected |
Note: This function performs faster than the new getParentRoles function, because it uses database indexes whereas getParentRoles needs a full table space scan.
Get parent roles in a path. If last parameter is set 'true' it delivers also all templates in the path protected
array | array with path_ids |
boolean | true for role templates (default: false) |
Definition at line 597 of file class.ilRbacReview.php.
References $ref_id, __setProtectedStatus(), and getRoleListByObject().
Referenced by getParentRoleIds().
|
protected |
Set protected status type $rbacsystem type $ilUser type $log.
type | $a_parent_roles | |
type | $a_role_hierarchy | |
type | $a_ref_id |
Definition at line 1934 of file class.ilRbacReview.php.
References $ilUser, $log, and assignedRoles().
Referenced by __getParentRoles().
|
protected |
computes role type in role list array: global: roles in ROLE_FOLDER_ID local: assignable roles in other role folders linked: roles with stoppped inheritance template: role templates
private
array | role list |
Definition at line 835 of file class.ilRbacReview.php.
Referenced by getAssignableRoles(), getRoleListByObject(), getRolesByFilter(), and getRolesForIDs().
|
protected |
get roles and templates or only roles; returns string for where clause private
boolean | true: with templates |
Definition at line 807 of file class.ilRbacReview.php.
References $ilDB.
Referenced by getAssignableRoles(), getRoleListByObject(), and getRolesForIDs().
|
static |
get operation id by name of operation public static
string | operation name |
Definition at line 1831 of file class.ilRbacReview.php.
References $ilDB, $ilErr, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilRbacSystem\checkAccessOfUser(), and ilObjBlog\getRolesWithContribute().
|
static |
get ops_id's by name.
Example usage: $rbacadmin->grantPermission($roles,ilRbacReview::_getOperationIdsByName(array('visible','read'),$ref_id));
public
array | string name of operation. see rbac_operations |
Definition at line 1803 of file class.ilRbacReview.php.
References $ilDB, $query, $res, and $row.
Referenced by ilUtil\_getObjectsByOperations(), ilLicense\getPotentialAccesses(), and ilECSObjectSettings\handlePermissionUpdate().
|
static |
get operation list by object type public static
string | object type you want to have the operation list |
string | order column |
string | order direction (possible values: ASC or DESC) |
Definition at line 2002 of file class.ilRbacReview.php.
References $ilDB, $query, $res, and $row.
Referenced by ilObjTypeDefinitionGUI\editObject(), ilObjectPermissionStatusGUI\getAccessPermissionTableData(), ilObjectPermissionStatusGUI\getAssignedValidRoles(), ilObjRoleTemplateGUI\permObject(), and ilObjTypeDefinitionGUI\viewObject().
|
static |
type | $a_ops_arr |
Definition at line 2043 of file class.ilRbacReview.php.
ilRbacReview::assignedGlobalRoles | ( | $a_usr_id | ) |
Get assigned global roles for an user.
int | $a_usr_id | Id of user account |
Definition at line 1051 of file class.ilRbacReview.php.
References $ilDB, $query, $res, and $row.
ilRbacReview::assignedRoles | ( | $a_usr_id | ) |
get all assigned roles to a given user public
integer | usr_id |
Definition at line 1030 of file class.ilRbacReview.php.
References $ilDB, $query, $res, and $row.
Referenced by __setProtectedStatus(), and getRolesByFilter().
ilRbacReview::assignedUsers | ( | $a_rol_id, | |
$a_fields = NULL |
|||
) |
get all assigned users to a given role public
integer | role_id |
array | columns to get form usr_data table (optional) |
Definition at line 904 of file class.ilRbacReview.php.
References $ilBench, $ilDB, $query, $res, and $row.
ilRbacReview::getActiveOperationsOfRole | ( | $a_ref_id, | |
$a_role_id | |||
) |
Get active operations for a role.
object | $a_ref_id | |
object | $a_role_id |
Definition at line 1419 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_ASSOC.
ilRbacReview::getAllOperationsOfRole | ( | $a_rol_id, | |
$a_parent = 0 |
|||
) |
get all possible operations of a specific role The ref_id of the role folder (parent object) is necessary to distinguish local roles public
integer | role_id |
integer | role folder id |
Definition at line 1390 of file class.ilRbacReview.php.
ilRbacReview::getAssignableChildRoles | ( | $a_ref_id | ) |
Get all assignable roles directly under a specific node public.
ref_id |
Definition at line 781 of file class.ilRbacReview.php.
ilRbacReview::getAssignableRoles | ( | $a_templates = false , |
|
$a_internal_roles = false , |
|||
$title_filter = '' |
|||
) |
Returns a list of all assignable roles public.
boolean | if true fetch template roles too |
Definition at line 708 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, __setRoleType(), and __setTemplateFilter().
Referenced by getRolesByFilter().
ilRbacReview::getAssignableRolesInSubtree | ( | $ref_id | ) |
Returns a list of assignable roles in a subtree of the repository public.
ref_id | Root node of subtree |
Definition at line 750 of file class.ilRbacReview.php.
References $GLOBALS, $ilDB, $query, $ref_id, $res, $row, and DB_FETCHMODE_OBJECT.
ilRbacReview::getAssignedCacheEntry | ( | $a_role_id, | |
$a_user_id | |||
) |
get entry of assigned_chache
int | $a_role_id | |
int | $a_user_id |
Definition at line 2329 of file class.ilRbacReview.php.
ilRbacReview::getFoldersAssignedToRole | ( | $a_rol_id, | |
$a_assignable = false |
|||
) |
Returns an array of objects assigned to a role.
A role with stopped inheritance may be assigned to more than one objects. To get only the original location of a role, set the second parameter to true
public
integer | role id |
boolean | get only rolefolders where role is assignable (true) |
Definition at line 1132 of file class.ilRbacReview.php.
References $ilDB, $query, $res, and $row.
Referenced by isRoleDeleted().
ilRbacReview::getGlobalAssignableRoles | ( | ) |
get only 'global' roles (with flag 'assign_users') public
Definition at line 1306 of file class.ilRbacReview.php.
References ilObjRole\_getAssignUsersStatus(), and getGlobalRoles().
ilRbacReview::getGlobalRoles | ( | ) |
get only 'global' roles public
Definition at line 1244 of file class.ilRbacReview.php.
References getRolesOfRoleFolder().
Referenced by getGlobalAssignableRoles(), getRolesByFilter(), and isGlobalRole().
ilRbacReview::getGlobalRolesArray | ( | ) |
get only 'global' roles public
Definition at line 1290 of file class.ilRbacReview.php.
References getRolesOfRoleFolder().
ilRbacReview::getLocalPolicies | ( | $a_ref_id | ) |
Get all roles with local policies.
type | $a_ref_id |
Definition at line 1274 of file class.ilRbacReview.php.
References getRolesOfRoleFolder().
ilRbacReview::getLocalRoles | ( | $a_ref_id | ) |
Get local roles of object.
int | $a_ref_id |
Definition at line 1254 of file class.ilRbacReview.php.
References $ilDB, getRolesOfRoleFolder(), and isAssignable().
ilRbacReview::getNumberOfAssignedUsers | ( | Array | $a_roles | ) |
Get the number of assigned users to roles ilDB $ilDB.
array | $a_roles |
Definition at line 883 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
ilRbacReview::getObjectOfRole | ( | $a_role_id | ) |
Get object id of objects a role is assigned to.
public
int | role id |
Definition at line 2065 of file class.ilRbacReview.php.
References $ilDB, $query, $res, and $row.
Referenced by ilObjUserGUI\roleassignmentObject().
ilRbacReview::getObjectReferenceOfRole | ( | $a_role_id | ) |
Get reference of role.
object | $a_role_id |
Definition at line 2106 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
ilRbacReview::getObjectsWithStopedInheritance | ( | $a_rol_id, | |
$a_filter = array() |
|||
) |
get all objects in which the inheritance of role with role_id was stopped the function returns all reference ids of objects containing a role folder.
public
integer | role_id |
array | filter ref_ids |
Definition at line 1609 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
ilRbacReview::getOperation | ( | $ops_id | ) |
get one operation by operation id public
Definition at line 1365 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, and ilDB\query().
ilRbacReview::getOperationAssignment | ( | ) |
get operation assignments
Definition at line 2186 of file class.ilRbacReview.php.
References $ilDB, $query, $res, and $row.
ilRbacReview::getOperations | ( | ) |
get all possible operations public
Definition at line 1343 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, and ilDB\query().
ilRbacReview::getOperationsByTypeAndClass | ( | $a_type, | |
$a_class | |||
) |
Get operations by type and class.
string | $a_type | Type is "object" or |
string | $a_class |
Definition at line 1568 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
ilRbacReview::getOperationsOfRole | ( | $a_rol_id, | |
$a_type, | |||
$a_parent = 0 |
|||
) |
get all possible operations of a specific role The ref_id of the role folder (parent object) is necessary to distinguish local roles public
integer | role_id |
string | object type |
integer | role folder id |
Definition at line 1446 of file class.ilRbacReview.php.
References $ilDB, $ilLog, $query, $res, and $row.
ilRbacReview::getOperationsOnType | ( | $a_typ_id | ) |
all possible operations of a type public
integer | object_ID of type |
Definition at line 1512 of file class.ilRbacReview.php.
References $ilDB, $query, $res, and $row.
Referenced by getOperationsOnTypeString().
ilRbacReview::getOperationsOnTypeString | ( | $a_type | ) |
all possible operations of a type public
integer | object_ID of type |
Definition at line 1546 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, getOperationsOnType(), and ilDB\query().
ilRbacReview::getParentRoleIds | ( | $a_endnode_id, | |
$a_templates = false |
|||
) |
get an array of parent role ids of all parent roles, if last parameter is set true you get also all parent templates public
integer | ref_id of an object which is end node |
boolean | true for role templates (default: false) |
Definition at line 635 of file class.ilRbacReview.php.
References $GLOBALS, and __getParentRoles().
ilRbacReview::getRoleFolderOfRole | ( | $a_role_id | ) |
Get role folder of role ilDB $ilDB.
int | $a_role_id |
Definition at line 2252 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, ilObject\_lookupType(), and DB_FETCHMODE_OBJECT.
ilRbacReview::getRoleListByObject | ( | $a_ref_id, | |
$a_templates = false |
|||
) |
Returns a list of roles in an container public.
integer | ref_id of object |
boolean | if true fetch template roles too |
Definition at line 666 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, __setRoleType(), and __setTemplateFilter().
Referenced by __getParentRoles().
ilRbacReview::getRoleMailboxAddress | ( | $a_role_id, | |
$is_localize = true |
|||
) |
Returns the mailbox address of a role.
Example 1: Mailbox address for an ILIAS reserved role name
a) Course Member <#member@[English Course 1]> b) Course Member <#il_crs_member_345@[English Course 1]> c) Course Member <#il_crs_member_345>
Address a) is returned, if the title of the object is unique, and if there is only one local role with the substring "member" defined for the object.
Address b) is returned, if the title of the object is unique, but there is more than one local role with the substring "member" in its title.
Address c) is returned, if the title of the course object is not unique.
Example 2: Mailbox address for a manually defined role name
a) Course Administrator <#Admin> b) Course Administrator <#Admin> c) Course Adminstrator <#il_role_34211>
Address a) is returned, if the title of the object is unique, and if there is only one local role with the substring "Admin" defined for the course object. Address b) is returned, if the title of the object is not unique, but
the role title is unique.
Address c) is returned, if neither the role title nor the title of the course object is unique.
Example 3: Mailbox address for a manually defined role title that can contains special characters in the local-part of a mailbox address
a) "#Author Courses" b) Author Courses <#il_role_34234>
Address a) is returned, if the title of the role is unique.
Address b) is returned, if neither the role title nor the title of the course object is unique, or if the role title contains a quote or a backslash.
int | a role id |
boolean | is_localize whether mailbox addresses should be localized |
Definition at line 336 of file class.ilRbacReview.php.
References $ilDB, $lng, $log, $query, $row, DB_FETCHMODE_OBJECT, if, ilMail\ILIAS_HOST, and ilDB\query().
ilRbacReview::getRoleOperationsOnObject | ( | $a_role_id, | |
$a_ref_id | |||
) |
ilDB $ilDB
type | $a_role_id | |
type | $a_ref_id |
Definition at line 1488 of file class.ilRbacReview.php.
ilRbacReview::getRolesByFilter | ( | $a_filter = 0 , |
|
$a_user_id = 0 , |
|||
$title_filter = '' |
|||
) |
ilDB $ilDB
type | $a_filter | |
type | $a_user_id | |
type | $title_filter |
Definition at line 1690 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, __setRoleType(), assignedRoles(), getAssignableRoles(), and getGlobalRoles().
ilRbacReview::getRolesForIDs | ( | $role_ids, | |
$use_templates | |||
) |
ilDB $ilDB
type | $role_ids | |
type | $use_templates |
Definition at line 2155 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, __setRoleType(), and __setTemplateFilter().
ilRbacReview::getRolesOfObject | ( | $a_ref_id, | |
$a_assignable_only = FALSE |
|||
) |
Get roles of object.
type | $a_ref_id | |
type | $a_assignable |
InvalidArgumentException |
Definition at line 1165 of file class.ilRbacReview.php.
References $GLOBALS, $ilDB, $query, $res, and $row.
ilRbacReview::getRolesOfRoleFolder | ( | $a_ref_id, | |
$a_nonassignable = true |
|||
) |
get all roles of a role folder including linked local roles that are created due to stopped inheritance returns an array with role ids public
integer | ref_id of object |
boolean | if false only get true local roles |
Definition at line 1205 of file class.ilRbacReview.php.
References $ilBench, $ilDB, $ilLog, $query, $res, and $row.
Referenced by getGlobalRoles(), getGlobalRolesArray(), getLocalPolicies(), and getLocalRoles().
ilRbacReview::getTypeId | ( | $a_type | ) |
Get type id of object ilDB $ilDB.
type | $a_type |
Definition at line 1781 of file class.ilRbacReview.php.
References $ilDB, $row, and DB_FETCHMODE_OBJECT.
ilRbacReview::getUserPermissionsOnObject | ( | $a_user_id, | |
$a_ref_id | |||
) |
Get all user permissions on an object.
int | $a_user_id | user id |
int | $a_ref_id | ref id |
Definition at line 2283 of file class.ilRbacReview.php.
References $ilDB, $query, $res, and $row.
ilRbacReview::hasMultipleAssignments | ( | $a_role_id | ) |
Temporary bugfix.
Definition at line 1111 of file class.ilRbacReview.php.
ilRbacReview::isAssignable | ( | $a_rol_id, | |
$a_ref_id | |||
) |
Check if its possible to assign users public.
integer | object id of role |
integer | ref_id of object in question |
Definition at line 1077 of file class.ilRbacReview.php.
References $ilBench, $ilDB, $query, $res, and $row.
Referenced by getLocalRoles(), and isDeleteable().
ilRbacReview::isAssigned | ( | $a_usr_id, | |
$a_role_id | |||
) |
check if a specific user is assigned to specific role public
integer | usr_id |
integer | role_id |
Definition at line 978 of file class.ilRbacReview.php.
References $ilDB, $query, and $res.
ilRbacReview::isAssignedToAtLeastOneGivenRole | ( | $a_usr_id, | |
$a_role_ids | |||
) |
check if a specific user is assigned to at least one of the given role ids.
This function is used to quickly check whether a user is member of a course or a group.
public
integer | usr_id |
array[integer] | role_ids |
Definition at line 1010 of file class.ilRbacReview.php.
ilRbacReview::isDeleteable | ( | $a_role_id, | |
$a_rolf_id | |||
) |
Check if role is deleteable at a specific position.
object | $a_role_id | |
int | rolf_id |
Definition at line 2215 of file class.ilRbacReview.php.
References ilObject\_lookupTitle(), and isAssignable().
ilRbacReview::isDeleted | ( | $a_node_id | ) |
Checks if a rolefolder is set as deleted (negative tree_id) public.
integer | ref_id of rolefolder |
Definition at line 1642 of file class.ilRbacReview.php.
References $ilDB, $row, DB_FETCHMODE_OBJECT, and ilDB\query().
Referenced by isRoleDeleted().
ilRbacReview::isGlobalRole | ( | $a_role_id | ) |
Check if role is a global role.
type | $a_role_id |
Definition at line 1676 of file class.ilRbacReview.php.
References getGlobalRoles().
ilRbacReview::isProtected | ( | $a_ref_id, | |
$a_role_id | |||
) |
type | $a_ref_id | |
type | $a_role_id |
Definition at line 1907 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, and ilUtil\yn2tf().
ilRbacReview::isRoleAssignedToObject | ( | $a_role_id, | |
$a_parent_id | |||
) |
Check if role is assigned to an object.
Definition at line 1326 of file class.ilRbacReview.php.
ilRbacReview::isRoleDeleted | ( | $a_role_id | ) |
return if role is only attached to deleted role folders
int | $a_role_id |
Definition at line 2129 of file class.ilRbacReview.php.
References getFoldersAssignedToRole(), and isDeleted().
ilRbacReview::isSystemGeneratedRole | ( | $a_role_id | ) |
Check if the role is system generate role or role template.
int | $a_role_id |
Definition at line 2238 of file class.ilRbacReview.php.
References ilObject\_lookupTitle().
|
static |
Lookup operation ids.
array | $a_type_arr | e.g array('cat','crs','grp'). The operation name (e.g. 'create_cat') is generated automatically |
Definition at line 1866 of file class.ilRbacReview.php.
References $ilDB, $query, $res, and $row.
Referenced by ilObjectXMLWriter\__appendOperations(), ilObjectRoleTemplatePermissionTableGUI\parse(), ilObjectRolePermissionTableGUI\parse(), and ilPermissionGUI\savePermissions().
ilRbacReview::roleExists | ( | $a_title, | |
$a_id = 0 |
|||
) |
Checks if a role already exists.
Role title should be unique public
string | role title |
integer | obj_id of role to exclude in the check. Commonly this is the current role you want to edit |
Definition at line 559 of file class.ilRbacReview.php.
References $ilDB, $row, DB_FETCHMODE_OBJECT, and ilDB\query().
ilRbacReview::searchRolesByMailboxAddressList | ( | $a_address_list | ) |
Finds all role ids that match the specified user friendly role mailbox address list.
The role mailbox name address list is an e-mail address list according to IETF RFC 822:
address list = role mailbox, {"," role mailbox } ; role mailbox = "#", local part, ["@" domain] ;
Examples: The following role mailbox names are all resolved to the role il_crs_member_123:
#Course.A #member.A #il_crs_member_123.A #il_crs_member_123 #il_crs_member_123
Examples: The following role mailbox names are all resolved to the role il_crs_member_345:
#member@[English Course] #il_crs_member_345@[English Course] #il_crs_member_345 #il_crs_member_345
If only the local part is specified, or if domain is equal to "ilias", ILIAS compares the title of role objects with local part. Only roles that are not in a trash folder are considered for the comparison.
If a domain is specified, and if the domain is not equal to "ilias", ILIAS compares the title of objects with the domain. Only objects that are not in a trash folder are considered for the comparison. Then ILIAS searches for local roles which contain the local part in their title. This allows for abbreviated role names, e.g. instead of having to specify #il_grp_member_345, it is sufficient to specify #member.
The address list may contain addresses thate are not role mailboxes. These addresses are ignored.
If a role mailbox address is ambiguous, this function returns the ID's of all role objects that are possible recipients for the role mailbox address.
If Pear Mail is not installed, then the mailbox address
public
string | IETF RFX 822 address list containing role mailboxes. |
Definition at line 115 of file class.ilRbacReview.php.
References $ilDB, $query, $row, DB_FETCHMODE_OBJECT, ilMail\ILIAS_HOST, ilDB\query(), and ilDB\quote().
ilRbacReview::setAssignedCacheEntry | ( | $a_role_id, | |
$a_user_id, | |||
$a_value | |||
) |
set entry of assigned_chache
int | $a_role_id | |
int | $a_user_id | |
bool | $a_value |
Definition at line 2318 of file class.ilRbacReview.php.
|
staticprivate |
Definition at line 32 of file class.ilRbacReview.php.
|
protected |
Definition at line 28 of file class.ilRbacReview.php.
|
staticprotected |
Definition at line 37 of file class.ilRbacReview.php.
|
staticprotected |
Definition at line 42 of file class.ilRbacReview.php.
ilRbacReview::$log = null |
Definition at line 29 of file class.ilRbacReview.php.
Referenced by __setProtectedStatus(), and getRoleMailboxAddress().
const ilRbacReview::FILTER_ALL = 1 |
Definition at line 21 of file class.ilRbacReview.php.
Referenced by ilRoleTableGUI\initFilter(), and ilRoleTableGUI\parse().
const ilRbacReview::FILTER_ALL_GLOBAL = 2 |
Definition at line 22 of file class.ilRbacReview.php.
Referenced by ilRoleTableGUI\initFilter().
const ilRbacReview::FILTER_ALL_LOCAL = 3 |
Definition at line 23 of file class.ilRbacReview.php.
Referenced by ilRoleTableGUI\initFilter().
const ilRbacReview::FILTER_INTERNAL = 4 |
Definition at line 24 of file class.ilRbacReview.php.
Referenced by ilRoleTableGUI\initFilter(), and ilRoleTableGUI\parse().
const ilRbacReview::FILTER_NOT_INTERNAL = 5 |
Definition at line 25 of file class.ilRbacReview.php.
Referenced by ilRoleTableGUI\initFilter().
const ilRbacReview::FILTER_TEMPLATES = 6 |
Definition at line 26 of file class.ilRbacReview.php.
Referenced by ilRoleTableGUI\initFilter().