ILIAS
Release_4_1_x_branch Revision 61804
|
Public Member Functions | |
ilObjRole ($a_id=0, $a_call_by_reference=false) | |
Constructor public. | |
validate () | |
Validate role data. | |
getPresentationTitle () | |
return translated title for autogenerated roles | |
toggleAssignUsersStatus ($a_assign_users) | |
getAssignUsersStatus () | |
_getAssignUsersStatus ($a_role_id) | |
read () | |
loads "role" from database private | |
assignData ($a_data) | |
loads a record "role" from array public | |
update () | |
updates a record "role" and write it into database public | |
create () | |
create | |
setAllowRegister ($a_allow_register) | |
set allow_register of role | |
getAllowRegister () | |
get allow_register | |
setDiskQuota ($a_disk_quota) | |
Sets the minimal disk quota imposed by this role. | |
getDiskQuota () | |
Gets the minimal disk quota imposed by this role. | |
_lookupRegisterAllowed () | |
get all roles that are activated in user registration | |
_lookupAllowRegister ($a_role_id) | |
check whether role is allowed in user registration or not | |
setParent ($a_parent_ref) | |
set reference id of parent object this is neccessary for non RBAC protected objects!!! | |
getParent () | |
get reference id of parent object | |
delete () | |
delete role and all related data | |
getCountMembers () | |
_getTranslation ($a_role_title) | |
_updateAuthMode ($a_roles) | |
_getAuthMode ($a_role_id) | |
__getPermissionDefinitions () | |
isDeletable ($a_role_folder_id) | |
Check whether a role is deletable (non autogenereated role and defined) at this position Does not perform permission checks. | |
changeExistingObjects ($a_start_node, $a_mode, $a_filter, $a_exclusion_filter=array()) | |
Change existing objects. | |
Public Member Functions inherited from ilObject | |
ilObject ($a_id=0, $a_reference=true) | |
Constructor public. | |
withReferences () | |
determines wehter objects are referenced or not (got ref ids or not) | |
read ($a_force_db=false) | |
read object data from db into object | |
getId () | |
get object id public | |
setId ($a_id) | |
set object id public | |
setRefId ($a_id) | |
set reference id public | |
getRefId () | |
get reference id public | |
getType () | |
get object type public | |
setType ($a_type) | |
set object type public | |
getTitle () | |
get object title public | |
getUntranslatedTitle () | |
get untranslated object title public | |
setTitle ($a_title) | |
set object title | |
getDescription () | |
get object description | |
setDescription ($a_desc) | |
set object description | |
getLongDescription () | |
get object long description (stored in object_description) | |
getImportId () | |
get import id | |
setImportId ($a_import_id) | |
set import id | |
_lookupObjIdByImportId ($a_import_id) | |
getOwner () | |
get object owner | |
getOwnerName () | |
_lookupOwnerName ($a_owner_id) | |
lookup owner name for owner id | |
setOwner ($a_owner) | |
set object owner | |
getCreateDate () | |
get create date public | |
getLastUpdateDate () | |
get last update date public | |
getDiskUsage () | |
Gets the disk usage of the object in bytes. | |
setObjDataRecord ($a_record) | |
set object_data record (note: this method should only be called from the ilObjectFactory class) | |
MDUpdateListener ($a_element) | |
Meta data update listener. | |
createMetaData () | |
create meta data entry | |
updateMetaData () | |
update meta data entry | |
deleteMetaData () | |
delete meta data entry | |
updateOwner () | |
update owner of object in db | |
_getIdForImportId ($a_import_id) | |
get current object id for import id (static) | |
_lookupOwner ($a_id) | |
lookup object owner | |
_lookupDescription ($a_id) | |
lookup object description | |
_lookupLastUpdate ($a_id, $a_as_string=false) | |
lookup last update | |
_getLastUpdateOfObjects ($a_objs) | |
Get last update for a set of media objects. | |
_setDeletedDate ($a_ref_id) | |
only called in ilTree::saveSubTree | |
_resetDeletedDate ($a_ref_id) | |
only called in ilObjectGUI::insertSavedNodes | |
_lookupDeletedDate ($a_ref_id) | |
only called in ilObjectGUI::insertSavedNodes | |
_writeTitle ($a_obj_id, $a_title) | |
write title to db (static) | |
_writeDescription ($a_obj_id, $a_desc) | |
write description to db (static) | |
_writeImportId ($a_obj_id, $a_import_id) | |
write import id to db (static) | |
_isInTrash ($a_ref_id) | |
checks wether object is in trash | |
_hasUntrashedReference ($a_obj_id) | |
checks wether an object has at least one reference that is not in trash | |
_lookupObjectId ($a_ref_id) | |
lookup object id | |
_getObjectsDataForType ($a_type, $a_omit_trash=false) | |
get all objects of a certain type | |
putInTree ($a_parent_ref) | |
maybe this method should be in tree object!? | |
setPermissions ($a_parent_ref) | |
set permissions of object | |
createReference () | |
creates reference for object | |
countReferences () | |
count references of object | |
initDefaultRoles () | |
init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type If you want to setup default local roles you MUST overwrite this method in derived object classes (see ilObjForum for an example) public | |
createRoleFolder () | |
creates a local role folder | |
notify ($a_event, $a_ref_id, $a_parent_non_rbac_id, $a_node_id, $a_params=0) | |
notifys an object about an event occured Based on the event passed, each object may decide how it reacts. | |
setRegisterMode ($a_bool) | |
isUserRegistered ($a_user_id=0) | |
requireRegistration () | |
getXMLZip () | |
getHTMLDirectory () | |
cloneObject ($a_target_id, $a_copy_id=0) | |
Clone object permissions, put in tree ... | |
appendCopyInfo ($a_target_id, $a_copy_id) | |
Prepend Copy info if object with same name exists in that container. | |
cloneDependencies ($a_target_id, $a_copy_id) | |
Clone object dependencies. | |
cloneMetaData ($target_obj) | |
Copy meta data. |
Static Public Member Functions | |
static | _getRolesByAuthMode ($a_auth_mode) |
Get roles by auth mode. | |
static | _resetAuthMode ($a_auth_mode) |
Reset auth mode to default. | |
static | isAutoGenerated ($a_role_id) |
Static Public Member Functions inherited from ilObject | |
static | _getAllReferences ($a_id) |
get all reference ids of object | |
static | _lookupTitle ($a_id) |
lookup object title | |
static | _getIdsForTitle ($title, $type= '', $partialmatch=false) |
static | _lookupObjId ($a_id) |
static | _lookupType ($a_id, $a_reference=false) |
lookup object type | |
_exists ($a_id, $a_reference=false) | |
checks if an object exists in object_data | |
static | _getObjectsByType ($a_obj_type="", $a_owner="") |
Get objects by type. | |
static | _prepareCloneSelection ($a_ref_ids, $new_type) |
Prepare copy wizard object selection. | |
static | _getIcon ($a_obj_id="", $a_size="big", $a_type="", $a_offline=false) |
Get icon for repository item. | |
static | collectDeletionDependencies (&$deps, $a_ref_id, $a_obj_id, $a_type, $a_depth=0) |
Collect deletion dependencies. | |
static | getDeletionDependencies ($a_obj_id) |
Get deletion dependencies. |
Data Fields | |
const | MODE_PROTECTED_DELETE_LOCAL_POLICIES = 1 |
const | MODE_PROTECTED_KEEP_LOCAL_POLICIES = 2 |
const | MODE_UNPROTECTED_DELETE_LOCAL_POLICIES = 3 |
const | MODE_UNPROTECTED_KEEP_LOCAL_POLICIES = 4 |
$parent | |
$allow_register | |
$assign_users | |
$disk_quota | |
The disk quota in bytes. | |
Data Fields inherited from ilObject | |
const | TITLE_LENGTH = 128 |
max length of object title | |
$ilias | |
$lng | |
$id | |
$ref_id | |
$type | |
$title | |
$untranslatedTitle | |
$desc | |
$long_desc | |
$owner | |
$create_date | |
$last_update | |
$import_id | |
$register = false | |
$referenced | |
$objectList | |
$max_title | |
$max_desc | |
$add_dots | |
$obj_data_record | |
object_data record |
Protected Member Functions | |
deleteLocalPolicies ($a_start, $a_policies, $a_filter) | |
Delete local policies. | |
adjustPermissions ($a_mode, $a_nodes, $a_policies, $a_filter, $a_exclusion_filter=array()) | |
Adjust permissions. | |
isHandledObjectType ($a_filter, $a_exclusion_filter, $a_type) | |
Check if type is filterer. | |
updateOperationStack (&$a_stack, $a_node) | |
Update operation stack. | |
updatePolicyStack (&$a_stack, $a_node) | |
Update policy stack. | |
createPermissionIntersection ($policy_stack, $a_current_ops, $a_id, $a_type) | |
Create course group permission intersection. |
Class ilObjRole.
Definition at line 15 of file class.ilObjRole.php.
ilObjRole::__getPermissionDefinitions | ( | ) |
Definition at line 527 of file class.ilObjRole.php.
References $ilDB, ilObject\$lng, and ilPlugin\lookupTxt().
ilObjRole::_getAssignUsersStatus | ( | $a_role_id | ) |
Definition at line 84 of file class.ilObjRole.php.
References $ilDB, $query, $res, and $row.
Referenced by ilRbacReview\getGlobalAssignableRoles(), ilObjUserFolderGUI\importUserRoleAssignmentObject(), ilSoapUserAdministration\importUsers(), ilObjUserFolderGUI\importUsersObject(), ilObjUserGUI\initCreate(), and ilSoapUserAdministration\isPermittedRole().
ilObjRole::_getAuthMode | ( | $a_role_id | ) |
Definition at line 475 of file class.ilObjRole.php.
|
static |
Get roles by auth mode.
public
string | auth mode |
Definition at line 494 of file class.ilObjRole.php.
References $ilDB, $query, $res, and $row.
Referenced by ilRadiusSettings\read().
ilObjRole::_getTranslation | ( | $a_role_title | ) |
Definition at line 440 of file class.ilObjRole.php.
References ilObject\$lng.
Referenced by ilCourseEditParticipantsTableGUI\__construct(), ilObjRoleGUI\adoptPermObject(), ilObjectRolePermissionTableGUI\createTitle(), ilObjRoleGUI\editObject2(), ilObjectStatusGUI\getAssignedValidRoles(), ilObjCourse\getLocalCourseRoles(), ilObjGroup\getLocalGroupRoles(), ilObjiLincCourse\getLocalRoles(), ilObjiLincCourse\getMemberRolesTitle(), getPresentationTitle(), ilObjectStatusGUI\getRoleAssignmentInfo(), ilPermission2GUI\initRoleForm(), ilObjiLincCourseGUI\mailMembersObject(), ilObjGroupGUI\mailMembersObject(), ilObjCourseGUI\mailMembersObject(), ilRoleSelectionTableGUI\parse(), ilPermission2GUI\perm(), ilObjRoleGUI\perm2Object(), ilObjRoleTemplateGUI\permObject(), ilObjUserGUI\roleassignmentObject(), ilPermissionGUI\showConfirmBlockRole(), ilSoapRoleObjectXMLWriter\start(), and ilObjRoleFolderGUI\viewObject().
ilObjRole::_lookupAllowRegister | ( | $a_role_id | ) |
check whether role is allowed in user registration or not
int | $a_role_id | role id |
Definition at line 270 of file class.ilObjRole.php.
References $ilDB, $query, and $res.
Referenced by ilAccountRegistrationGUI\__validateRole(), and ilRegistrationSettingsGUI\editRoles().
ilObjRole::_lookupRegisterAllowed | ( | ) |
get all roles that are activated in user registration
public
Definition at line 244 of file class.ilObjRole.php.
References $ilDB, $query, and $res.
Referenced by ilRegistrationSettingsGUI\__prepareAccessLimitationRoleList(), ilRegistrationSettingsGUI\__prepareRoleList(), ilShopUtils\_createRandomUserAccount(), ilUserProfile\addStandardFieldsToForm(), ilObjAuthSettingsGUI\authSettingsObject(), ilRegistrationSettingsGUI\editRoleAccessLimitations(), and ilRegistrationSettingsGUI\saveRoleAccessLimitations().
|
static |
Reset auth mode to default.
public
string | auth mode |
Definition at line 517 of file class.ilObjRole.php.
References $ilDB, $query, and $res.
Referenced by ilRadiusSettings\save().
ilObjRole::_updateAuthMode | ( | $a_roles | ) |
Definition at line 462 of file class.ilObjRole.php.
References $ilDB, $query, and $res.
Referenced by ilRadiusSettings\save(), and ilObjAuthSettingsGUI\updateAuthRolesObject().
|
protected |
Adjust permissions.
int | $a_mode | |
array | $a_nodes | array of nodes |
array | $a_policies | array of object ref ids |
array | $a_exclusion_filter | of object types. |
Definition at line 670 of file class.ilObjRole.php.
References ilRbacLog\add(), createPermissionIntersection(), ilRbacLog\diffFaPa(), ilRbacLog\EDIT_TEMPLATE_EXISTING, ilRbacLog\gatherFaPa(), ilObject\getId(), ilRbacLog\isActive(), isHandledObjectType(), updateOperationStack(), and updatePolicyStack().
Referenced by changeExistingObjects().
ilObjRole::assignData | ( | $a_data | ) |
loads a record "role" from array public
array | roledata |
Definition at line 128 of file class.ilObjRole.php.
References setAllowRegister(), ilObject\setDescription(), setDiskQuota(), ilObject\setTitle(), ilUtil\stripSlashes(), and toggleAssignUsersStatus().
Referenced by read().
ilObjRole::changeExistingObjects | ( | $a_start_node, | |
$a_mode, | |||
$a_filter, | |||
$a_exclusion_filter = array() |
|||
) |
Change existing objects.
int | $a_start_node | |
int | $a_mode | |
array | filter Filter of object types (array('all') => change all objects |
Definition at line 593 of file class.ilObjRole.php.
References adjustPermissions(), deleteLocalPolicies(), and ilObject\getId().
ilObjRole::create | ( | ) |
create
public
Reimplemented from ilObject.
Definition at line 166 of file class.ilObjRole.php.
References ilObject\$id, $ilDB, $query, $res, getAllowRegister(), getAssignUsersStatus(), and getDiskQuota().
|
protected |
Create course group permission intersection.
array | operation stack | |
int | $a_id | |
string | $a_type |
Definition at line 911 of file class.ilObjRole.php.
References $ilDB, $query, $res, $row, ilObject\$type, ilObject\_lookupObjId(), DB_FETCHMODE_OBJECT, ilObject\getId(), GRP_TYPE_CLOSED, GRP_TYPE_OPEN, and ilObjGroup\lookupGroupTye().
Referenced by adjustPermissions().
ilObjRole::delete | ( | ) |
delete role and all related data
public
Reimplemented from ilObject.
Definition at line 318 of file class.ilObjRole.php.
References $GLOBALS, $ilDB, $query, $res, ilLDAPRoleGroupMappingSettings\_deleteByRole(), ilObject\_exists(), ilObject\getId(), and getParent().
|
protected |
Delete local policies.
array | $a_policies | array of object ref ids that define local policies |
Definition at line 636 of file class.ilObjRole.php.
References ilObject\_lookupObjId(), ilObject\_lookupType(), and ilObject\getId().
Referenced by changeExistingObjects().
ilObjRole::getAllowRegister | ( | ) |
get allow_register
public
Definition at line 207 of file class.ilObjRole.php.
Referenced by create(), and ilObjRoleGUI\readRoleProperties().
ilObjRole::getAssignUsersStatus | ( | ) |
Definition at line 79 of file class.ilObjRole.php.
Referenced by create(), ilObjRoleGUI\readRoleProperties(), and update().
ilObjRole::getCountMembers | ( | ) |
Definition at line 433 of file class.ilObjRole.php.
ilObjRole::getDiskQuota | ( | ) |
Gets the minimal disk quota imposed by this role.
Returns the minimal disk quota in bytes. The default value is 0.
public
Definition at line 234 of file class.ilObjRole.php.
References $disk_quota.
Referenced by create(), ilObjRoleGUI\readRoleProperties(), and update().
ilObjRole::getParent | ( | ) |
get reference id of parent object
public
Definition at line 306 of file class.ilObjRole.php.
References $parent.
Referenced by delete().
ilObjRole::getPresentationTitle | ( | ) |
return translated title for autogenerated roles
Reimplemented from ilObject.
Definition at line 70 of file class.ilObjRole.php.
References _getTranslation(), and ilObject\getTitle().
ilObjRole::ilObjRole | ( | $a_id = 0 , |
|
$a_call_by_reference = false |
|||
) |
Constructor public.
integer | reference_id or object_id |
boolean | treat the id as reference_id (true) or object_id (false) |
Definition at line 43 of file class.ilObjRole.php.
References ilObject\ilObject().
|
static |
Definition at line 581 of file class.ilObjRole.php.
References ilObject\_lookupTitle().
Referenced by ilObjRoleGUI\initFormRoleProperties().
ilObjRole::isDeletable | ( | $a_role_folder_id | ) |
Check whether a role is deletable (non autogenereated role and defined) at this position Does not perform permission checks.
Definition at line 564 of file class.ilObjRole.php.
References ilObject\getTitle().
|
protected |
Check if type is filterer.
array | $a_filter | |
string | $a_type |
Definition at line 832 of file class.ilObjRole.php.
Referenced by adjustPermissions().
ilObjRole::read | ( | ) |
loads "role" from database private
Definition at line 101 of file class.ilObjRole.php.
References $data, $ilDB, $query, $res, and assignData().
Referenced by update().
ilObjRole::setAllowRegister | ( | $a_allow_register | ) |
set allow_register of role
public
integer |
Definition at line 191 of file class.ilObjRole.php.
Referenced by assignData(), and ilObjRoleGUI\loadRoleProperties().
ilObjRole::setDiskQuota | ( | $a_disk_quota | ) |
Sets the minimal disk quota imposed by this role.
The minimal disk quota is specified in bytes.
@access public @param integer
Definition at line 220 of file class.ilObjRole.php.
Referenced by assignData(), and ilObjRoleGUI\loadRoleProperties().
ilObjRole::setParent | ( | $a_parent_ref | ) |
set reference id of parent object this is neccessary for non RBAC protected objects!!!
public
integer | ref_id of parent object |
Definition at line 295 of file class.ilObjRole.php.
ilObjRole::toggleAssignUsersStatus | ( | $a_assign_users | ) |
Definition at line 75 of file class.ilObjRole.php.
Referenced by assignData(), and ilObjRoleGUI\loadRoleProperties().
ilObjRole::update | ( | ) |
updates a record "role" and write it into database public
Reimplemented from ilObject.
Definition at line 141 of file class.ilObjRole.php.
References $ilDB, $query, $res, getAssignUsersStatus(), getDiskQuota(), and read().
|
protected |
Update operation stack.
array | $a_stack | |
int | $a_node |
Definition at line 852 of file class.ilObjRole.php.
References ilObject\getId().
Referenced by adjustPermissions().
|
protected |
Update policy stack.
object | $a_node |
Definition at line 882 of file class.ilObjRole.php.
Referenced by adjustPermissions().
ilObjRole::validate | ( | ) |
Validate role data.
Definition at line 54 of file class.ilObjRole.php.
References $ilErr, and ilObject\getTitle().
ilObjRole::$allow_register |
Definition at line 31 of file class.ilObjRole.php.
ilObjRole::$assign_users |
Definition at line 32 of file class.ilObjRole.php.
ilObjRole::$disk_quota |
The disk quota in bytes.
Definition at line 35 of file class.ilObjRole.php.
Referenced by getDiskQuota().
ilObjRole::$parent |
Definition at line 29 of file class.ilObjRole.php.
Referenced by getParent().
const ilObjRole::MODE_PROTECTED_DELETE_LOCAL_POLICIES = 1 |
Definition at line 17 of file class.ilObjRole.php.
Referenced by ilObjRoleGUI\showChangeExistingObjectsConfirmation().
const ilObjRole::MODE_PROTECTED_KEEP_LOCAL_POLICIES = 2 |
Definition at line 18 of file class.ilObjRole.php.
Referenced by ilPermission2GUI\addRole(), ilObjRoleGUI\permSaveObject(), and ilObjRoleGUI\showChangeExistingObjectsConfirmation().
const ilObjRole::MODE_UNPROTECTED_DELETE_LOCAL_POLICIES = 3 |
Definition at line 19 of file class.ilObjRole.php.
Referenced by ilObjRoleGUI\showChangeExistingObjectsConfirmation().
const ilObjRole::MODE_UNPROTECTED_KEEP_LOCAL_POLICIES = 4 |
Definition at line 20 of file class.ilObjRole.php.
Referenced by ilPermission2GUI\addRole(), ilObjRoleGUI\permSaveObject(), and ilObjRoleGUI\showChangeExistingObjectsConfirmation().