ILIAS
Release_4_0_x_branch Revision 61816
|
Public Member Functions | |
ilObjRole ($a_id=0, $a_call_by_reference=false) | |
Constructor public. | |
validate () | |
Validate role data. | |
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) | |
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 | |
getPresentationTitle () | |
get presentation title Normally same as title Overwritten for sessions | |
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) | |
_getAllReferences ($a_id) | |
get all reference ids of object | |
_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 | _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. |
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 | |
$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) | |
Adjust permissions. | |
isHandledObjectType ($a_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 511 of file class.ilObjRole.php.
References $ilDB, ilObject\$lng, and ilPlugin\lookupTxt().
ilObjRole::_getAssignUsersStatus | ( | $a_role_id | ) |
Definition at line 76 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 460 of file class.ilObjRole.php.
|
static |
Get roles by auth mode.
public
string | auth mode |
Definition at line 479 of file class.ilObjRole.php.
References $ilDB, $query, $res, and $row.
Referenced by ilRadiusSettings\read().
ilObjRole::_getTranslation | ( | $a_role_title | ) |
Definition at line 425 of file class.ilObjRole.php.
References ilObject\$lng.
Referenced by ilCourseEditParticipantsTableGUI\__construct(), ilObjRoleGUI\editObject2(), ilObjectStatusGUI\getAssignedValidRoles(), ilObjCourse\getLocalCourseRoles(), ilObjGroup\getLocalGroupRoles(), ilObjiLincCourse\getLocalRoles(), ilObjiLincCourse\getMemberRolesTitle(), ilObjectStatusGUI\getRoleAssignmentInfo(), ilObjiLincCourseGUI\mailMembersObject(), ilObjGroupGUI\mailMembersObject(), ilObjCourseGUI\mailMembersObject(), ilRoleSelectionTableGUI\parse(), ilPermissionGUI\perm(), ilObjRoleTemplateGUI\permObject(), ilObjRoleGUI\permObject(), ilObjUserGUI\roleassignmentObject(), 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 262 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 236 of file class.ilObjRole.php.
References $ilDB, $query, and $res.
Referenced by ilRegistrationSettingsGUI\__prepareAccessLimitationRoleList(), ilRegistrationSettingsGUI\__prepareRoleList(), ilAccountRegistrationGUI\__showRoleSelection(), ilObjAuthSettingsGUI\authSettingsObject(), ilRegistrationSettingsGUI\editRoleAccessLimitations(), and ilRegistrationSettingsGUI\saveRoleAccessLimitations().
|
static |
Reset auth mode to default.
public
string | auth mode |
Definition at line 501 of file class.ilObjRole.php.
References $ilDB, $query, and $res.
Referenced by ilRadiusSettings\save().
ilObjRole::_updateAuthMode | ( | $a_roles | ) |
Definition at line 447 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 |
Definition at line 658 of file class.ilObjRole.php.
References createPermissionIntersection(), ilObject\getId(), isHandledObjectType(), updateOperationStack(), and updatePolicyStack().
Referenced by changeExistingObjects().
ilObjRole::assignData | ( | $a_data | ) |
loads a record "role" from array public
array | roledata |
Definition at line 120 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 | |||
) |
Change existing objects.
int | $a_start_node | |
int | $a_mode | |
array | filter Filter of object types (array('all') => change all objects |
Definition at line 582 of file class.ilObjRole.php.
References adjustPermissions(), deleteLocalPolicies(), and ilObject\getId().
ilObjRole::create | ( | ) |
create
public
Reimplemented from ilObject.
Definition at line 158 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 861 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 310 of file class.ilObjRole.php.
References $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 625 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 199 of file class.ilObjRole.php.
Referenced by create(), and ilObjRoleGUI\readRoleProperties().
ilObjRole::getAssignUsersStatus | ( | ) |
Definition at line 71 of file class.ilObjRole.php.
Referenced by create(), ilObjRoleGUI\readRoleProperties(), and update().
ilObjRole::getCountMembers | ( | ) |
Definition at line 418 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 226 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 298 of file class.ilObjRole.php.
References $parent.
Referenced by delete().
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 44 of file class.ilObjRole.php.
References ilObject\ilObject().
|
static |
Definition at line 570 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 548 of file class.ilObjRole.php.
References ilObject\getId(), and ilObject\getTitle().
|
protected |
Check if type is filterer.
array | $a_filter | |
string | $a_type |
Definition at line 787 of file class.ilObjRole.php.
Referenced by adjustPermissions().
ilObjRole::read | ( | ) |
loads "role" from database private
Definition at line 93 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 183 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 212 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 287 of file class.ilObjRole.php.
ilObjRole::toggleAssignUsersStatus | ( | $a_assign_users | ) |
Definition at line 67 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 133 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 802 of file class.ilObjRole.php.
References ilObject\getId().
Referenced by adjustPermissions().
|
protected |
Update policy stack.
object | $a_node |
Definition at line 832 of file class.ilObjRole.php.
Referenced by adjustPermissions().
ilObjRole::validate | ( | ) |
Validate role data.
Definition at line 55 of file class.ilObjRole.php.
References $ilErr, and ilObject\getTitle().
ilObjRole::$allow_register |
Definition at line 32 of file class.ilObjRole.php.
ilObjRole::$assign_users |
Definition at line 33 of file class.ilObjRole.php.
ilObjRole::$disk_quota |
The disk quota in bytes.
Definition at line 36 of file class.ilObjRole.php.
Referenced by getDiskQuota().
ilObjRole::$parent |
Definition at line 30 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 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 ilObjRoleGUI\permSaveObject(), and ilObjRoleGUI\showChangeExistingObjectsConfirmation().