ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
Class ilObjRoleGUI. More...
Public Member Functions | |
executeCommand () | |
getParentRefId () | |
Get ref id of current object (not role folder id) More... | |
getParentObjId () | |
Get obj_id of current object. More... | |
getParentType () | |
get type of current object (not role folder) More... | |
getAdminTabs () | |
admin and normal tabs are equal for roles More... | |
createObject () | |
editObject () | |
saveObject () | |
Save new role. More... | |
updateObject () | |
Save role settings. More... | |
permSaveObject (bool $a_show_admin_permissions=false) | |
save permissions public More... | |
adoptPermSaveObject () | |
addUserObject (array $a_user_ids) | |
deassignUserObject () | |
userassignmentObject () | |
display user assignment panel More... | |
mailToRoleObject () | |
checkAccess (string $a_perm_global, string $a_perm_obj='') | |
![]() | |
getRefId () | |
setAdminMode (string $mode) | |
getAdminMode () | |
getObject () | |
executeCommand () | |
withReferences () | |
determines whether objects are referenced or not (got ref ids or not) More... | |
setCreationMode (bool $mode=true) | |
If true, a creation screen is displayed the current [ref_id] does belong to the parent class The mode is determined in ilRepositoryGUI. More... | |
getCreationMode () | |
prepareOutput (bool $show_sub_objects=true) | |
getAdminTabs () | |
administration tabs show only permissions and trash folder More... | |
getHTML () | |
confirmedDeleteObject () | |
confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More... | |
cancelObject () | |
cancel action and go back to previous page More... | |
createObject () | |
create new object form More... | |
editAvailabilityPeriodObject () | |
saveAvailabilityPeriodObject () | |
cancelCreation () | |
cancel create action and go back to repository parent More... | |
saveObject () | |
getDidacticTemplateVar (string $type) | |
Get didactic template setting from creation screen. More... | |
putObjectInTree (ilObject $obj, ?int $parent_node_id=null) | |
Add object to tree at given position. More... | |
editObject () | |
addExternalEditFormCustom (ilPropertyFormGUI $form) | |
updateObject () | |
updates object entry in object_data More... | |
getFormAction (string $cmd, string $default_form_action="") | |
Get form action for command (command is method name without "Object", e.g. More... | |
isVisible (int $ref_id, string $type) | |
viewObject () | |
viewObject container presentation for "administration -> repository, trash, permissions" More... | |
deleteObject (bool $error=false) | |
Display deletion confirmation screen. More... | |
setColumnSettings (ilColumnGUI $column_gui) | |
addToDeskObject () | |
removeFromDeskObject () | |
![]() | |
callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb) | |
Protected Member Functions | |
getRoleId () | |
initParentRefId () | |
retrieveTemplatePermissionsFromPost () | |
getContainerType () | |
Get type of role container. More... | |
showDefaultPermissionSettings () | |
check if default permissions are shown or not More... | |
getRoleForm (bool $is_role_creation_form=false) | |
permObject (bool $a_show_admin_permissions=false) | |
adminPermObject () | |
adminPermSaveObject () | |
adoptPermObject () | |
confirmDeleteRoleObject () | |
Show delete confirmation screen. More... | |
performDeleteRoleObject () | |
Delete role. More... | |
addAdminLocatorItems (bool $do_not_add_object=false) | |
getTabs () | |
isChangeExistingObjectsConfirmationRequired () | |
Check if a confirmation about further settings is required or not. More... | |
showChangeExistingObjectsConfirmation (bool $recursive, array $recursive_list) | |
Show confirmation screen. More... | |
changeExistingObjectsObject () | |
setSubTabs ($a_tab) | |
addToClipboardObject () | |
Add selected users to user clipboard. More... | |
addLocatorItems () | |
ensureRoleAccessForContext () | |
Ensure access to role for ref_id. More... | |
![]() | |
getObjectService () | |
assignObject () | |
setTitleAndDescription () | |
createActionDispatcherGUI () | |
initHeaderAction (?string $sub_type=null, ?int $sub_id=null) | |
Add header action menu. More... | |
insertHeaderAction (?ilObjectListGUI $list_gui=null) | |
Insert header action into main template. More... | |
addHeaderAction () | |
Add header action menu. More... | |
redrawHeaderActionObject () | |
Ajax call: redraw action header only. More... | |
setTabs () | |
set admin tabs More... | |
setAdminTabs () | |
set admin tabs More... | |
setLocator () | |
addLocatorItems () | |
should be overwritten to add object specific items (repository items are preloaded) More... | |
omitLocator (bool $omit=true) | |
addAdminLocatorItems (bool $do_not_add_object=false) | |
should be overwritten to add object specific items (repository items are preloaded) More... | |
getCreationFormsHTML (StandardForm|ilPropertyFormGUI|array $form) | |
getTitleForCreationFormPage () | |
getCreationFormTitle () | |
initCreateForm (string $new_type) | |
didacticTemplatesToForm () | |
initDidacticTemplate (ilPropertyFormGUI $form) | |
retrieveAdditionalDidacticTemplateOptions () | |
addAdoptContentLinkToToolbar () | |
addImportButtonToToolbar () | |
addAvailabilityPeriodButtonToToolbar (ilToolbarGUI $toolbar) | |
parseDidacticTemplateVar (string $var, string $type) | |
afterSave (ilObject $new_object) | |
Post (successful) object creation hook. More... | |
initEditForm () | |
initEditCustomForm (ilPropertyFormGUI $a_form) | |
Add custom fields to update form. More... | |
getEditFormValues () | |
getEditFormCustomValues (array &$a_values) | |
Add values to custom edit fields. More... | |
validateCustom (ilPropertyFormGUI $form) | |
Validate custom values (if not possible with checkInput()) More... | |
updateCustom (ilPropertyFormGUI $form) | |
Insert custom update form values into object. More... | |
afterUpdate () | |
Post (successful) object update hook. More... | |
routeImportCmdObject () | |
importFile (string $file_to_import, string $path_to_uploaded_file_in_temp_dir) | |
deleteUploadedImportFile (string $path_to_uploaded_file_in_temp_dir) | |
afterImport (ilObject $new_object) | |
Post (successful) object import hook. More... | |
setFormAction (string $cmd, string $form_action) | |
getReturnLocation (string $cmd, string $default_location="") | |
Get return location for command (command is method name without "Object", e.g. More... | |
setReturnLocation (string $cmd, string $location) | |
set specific return location for command More... | |
getTargetFrame (string $cmd, string $default_target_frame="") | |
get target frame for command (command is method name without "Object", e.g. More... | |
setTargetFrame (string $cmd, string $target_frame) | |
Set specific target frame for command. More... | |
showPossibleSubObjects () | |
show possible sub objects (pull down menu) More... | |
getTabs () | |
overwrite in derived GUI class of your object type More... | |
redirectToRefId (int $ref_id, string $cmd="") | |
redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current ["ref_id"] value of the request More... | |
getCenterColumnHTML () | |
Get center column. More... | |
getRightColumnHTML () | |
Display right column. More... | |
checkPermission (string $perm, string $cmd="", string $type="", ?int $ref_id=null) | |
checkPermissionBool (string $perm, string $cmd="", string $type="", ?int $ref_id=null) | |
enableDragDropFileUpload () | |
Enables the file upload into this object by dropping files. More... | |
getCreatableObjectTypes () | |
buildAddNewItemElements (array $subtypes, string $create_target_class=ilRepositoryGUI::class, ?int $redirect_target_ref_id=null,) | |
buildGroup (string $create_target_class, array $obj_types_in_group, string $title, array $subtypes) | |
Private Member Functions | |
buildEditPage (?StandardForm $form=null) | |
buildConfirmationModal () | |
Private Attributes | |
const | FORM_KEY_TITLE = 'title' |
const | FORM_KEY_DESCRIPTION = 'description' |
const | FORM_KEY_ILIAS_ID = 'ilias_id' |
const | FORM_KEY_ON_REGISTRATION_FORM = 'on_registration_form' |
const | FORM_KEY_ALLOW_LOCAL_USER_ASSIGNMENT = 'allow_local_user_assignment' |
const | FORM_KEY_PROTECT = 'protect' |
ilLogger | $logger |
GlobalHttpState | $http |
Additional Inherited Members | |
![]() | |
static | _gotoRepositoryRoot (bool $raise_error=false) |
Goto repository root. More... | |
static | _gotoRepositoryNode (int $ref_id, string $cmd="") |
static | _gotoSharedWorkspaceNode (int $wsp_id) |
![]() | |
const | ADMIN_MODE_NONE = "" |
const | ADMIN_MODE_SETTINGS = "settings" |
const | ADMIN_MODE_REPOSITORY = "repository" |
const | UPLOAD_TYPE_LOCAL = 1 |
const | UPLOAD_TYPE_UPLOAD_DIRECTORY = 2 |
const | CFORM_NEW = 1 |
const | CFORM_IMPORT = 2 |
const | CFORM_CLONE = 3 |
const | SUPPORTED_IMPORT_MIME_TYPES = [MimeType::APPLICATION__ZIP, MimeType::APPLICATION__X_ZIP_COMPRESSED] |
Class ilObjRoleGUI.
Definition at line 36 of file class.ilObjRoleGUI.php.
|
protected |
Definition at line 995 of file class.ilObjRoleGUI.php.
References ilObjRole\_getTranslation(), ILIAS\Repository\ctrl(), ilObjectGUI\getAdminMode(), ILIAS\Repository\lng(), ILIAS\Repository\locator(), and ILIAS\Repository\object().
|
protected |
Definition at line 1267 of file class.ilObjRoleGUI.php.
References ilObjRole\_getTranslation(), ILIAS\Repository\ctrl(), ilObjectGUI\getAdminMode(), getRoleId(), ILIAS\Repository\locator(), and ILIAS\Repository\object().
|
protected |
Add selected users to user clipboard.
Definition at line 1240 of file class.ilObjRoleGUI.php.
References ILIAS\Repository\ctrl(), ilUserClipboard\getInstance(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ILIAS\Repository\user().
ilObjRoleGUI::addUserObject | ( | array | $a_user_ids | ) |
int[] |
Definition at line 805 of file class.ilObjRoleGUI.php.
References $obj_ref_id, $user_id, ANONYMOUS_USER_ID, checkAccess(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\object(), and ROLE_FOLDER_ID.
|
protected |
Definition at line 533 of file class.ilObjRoleGUI.php.
References permObject().
|
protected |
Definition at line 538 of file class.ilObjRoleGUI.php.
References permSaveObject().
|
protected |
Definition at line 543 of file class.ilObjRoleGUI.php.
References ilObjectGUI\$id, ilObjRole\_getTranslation(), ilUtil\_sortIds(), ILIAS\Repository\lng(), ILIAS\Repository\object(), and SYSTEM_ROLE_ID.
Referenced by adoptPermSaveObject().
ilObjRoleGUI::adoptPermSaveObject | ( | ) |
Definition at line 756 of file class.ilObjRoleGUI.php.
References ilObjectGUI\$access, $obj_ref_id, ilObjRole\_getTranslation(), ilObject\_lookupTitle(), adoptPermObject(), checkAccess(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\object(), and ILIAS\Repository\refinery().
|
private |
Definition at line 1320 of file class.ilObjRoleGUI.php.
References $message, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\object().
Referenced by buildEditPage(), and permObject().
|
private |
Definition at line 411 of file class.ilObjRoleGUI.php.
References $obj_ref_id, buildConfirmationModal(), ILIAS\Repository\ctrl(), getRoleForm(), ILIAS\Repository\lng(), ILIAS\Repository\object(), SYSTEM_ROLE_ID, and ILIAS\Repository\toolbar().
Referenced by editObject(), and updateObject().
|
protected |
Definition at line 1191 of file class.ilObjRoleGUI.php.
References $obj_ref_id, ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ROLE_FOLDER_ID, and ROOT_FOLDER_ID.
ilObjRoleGUI::checkAccess | ( | string | $a_perm_global, |
string | $a_perm_obj = '' |
||
) |
Definition at line 1101 of file class.ilObjRoleGUI.php.
References ILIAS\Repository\access(), and ROLE_FOLDER_ID.
Referenced by addUserObject(), adoptPermSaveObject(), confirmDeleteRoleObject(), deassignUserObject(), editObject(), getTabs(), performDeleteRoleObject(), permObject(), permSaveObject(), and userassignmentObject().
|
protected |
Show delete confirmation screen.
Definition at line 578 of file class.ilObjRoleGUI.php.
References ilObjRole\_getTranslation(), checkAccess(), ILIAS\Repository\ctrl(), ilUtil\getImagePath(), ILIAS\Repository\lng(), and ILIAS\Repository\object().
ilObjRoleGUI::createObject | ( | ) |
Definition at line 301 of file class.ilObjRoleGUI.php.
References ILIAS\Repository\ctrl(), getRoleForm(), and ILIAS\Repository\lng().
ilObjRoleGUI::deassignUserObject | ( | ) |
Definition at line 849 of file class.ilObjRoleGUI.php.
References ilObjectGUI\$user, checkAccess(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ILIAS\Repository\refinery(), SYSTEM_ROLE_ID, and SYSTEM_USER_ID.
ilObjRoleGUI::editObject | ( | ) |
Definition at line 323 of file class.ilObjRoleGUI.php.
References buildEditPage(), checkAccess(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
|
protected |
Ensure access to role for ref_id.
ilObjectException |
Definition at line 1292 of file class.ilObjRoleGUI.php.
References Vendor\Package\$e, $obj_ref_id, ILIAS\Repository\lng(), ILIAS\Repository\logger(), ILIAS\Repository\object(), and ROLE_FOLDER_ID.
Referenced by executeCommand().
ilObjRoleGUI::executeCommand | ( | ) |
Definition at line 87 of file class.ilObjRoleGUI.php.
References $obj_ref_id, ILIAS\Repository\access(), ilExportOptions\allocateExportId(), ILIAS\Repository\ctrl(), ensureRoleAccessForContext(), ilExportOptions\KEY_ROOT, ILIAS\Repository\lng(), ilExportOptions\newInstance(), ILIAS\Repository\object(), ilObjectGUI\prepareOutput(), and showDefaultPermissionSettings().
ilObjRoleGUI::getAdminTabs | ( | ) |
admin and normal tabs are equal for roles
Definition at line 214 of file class.ilObjRoleGUI.php.
References getTabs().
|
protected |
Get type of role container.
Definition at line 222 of file class.ilObjRoleGUI.php.
References $container_type.
Referenced by showDefaultPermissionSettings().
ilObjRoleGUI::getParentObjId | ( | ) |
Get obj_id of current object.
Definition at line 198 of file class.ilObjRoleGUI.php.
References $obj_obj_id.
ilObjRoleGUI::getParentRefId | ( | ) |
Get ref id of current object (not role folder id)
Definition at line 190 of file class.ilObjRoleGUI.php.
References $obj_ref_id.
Referenced by permObject().
ilObjRoleGUI::getParentType | ( | ) |
get type of current object (not role folder)
Definition at line 206 of file class.ilObjRoleGUI.php.
References $obj_obj_type.
Referenced by permObject(), and permSaveObject().
|
protected |
Definition at line 236 of file class.ilObjRoleGUI.php.
References ILIAS\UI\Implementation\Component\Input\$inputs, ILIAS\Repository\ctrl(), IL_INST_ID, ILIAS\Repository\lng(), ILIAS\Repository\object(), ILIAS\Repository\refinery(), ROLE_FOLDER_ID, and ILIAS\UI\Implementation\Component\Input\withValue().
Referenced by buildEditPage(), createObject(), saveObject(), and updateObject().
|
protected |
Definition at line 148 of file class.ilObjRoleGUI.php.
References $role_id.
Referenced by addLocatorItems().
|
protected |
Definition at line 1016 of file class.ilObjRoleGUI.php.
References ANONYMOUS_ROLE_ID, checkAccess(), ILIAS\Repository\ctrl(), ilObjectGUI\getAdminMode(), ILIAS\Repository\help(), ILIAS\Repository\lng(), ILIAS\Repository\object(), and showDefaultPermissionSettings().
Referenced by getAdminTabs().
|
protected |
Definition at line 153 of file class.ilObjRoleGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
|
protected |
Check if a confirmation about further settings is required or not.
Definition at line 1115 of file class.ilObjRoleGUI.php.
Referenced by permSaveObject().
ilObjRoleGUI::mailToRoleObject | ( | ) |
Definition at line 1086 of file class.ilObjRoleGUI.php.
References ilObject\_getIdsForTitle(), ilSession\get(), ilMailFormCall\getRedirectTarget(), ILIAS\Repository\object(), ilUtil\redirect(), and ilSession\set().
|
protected |
Delete role.
Definition at line 612 of file class.ilObjRoleGUI.php.
References checkAccess(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
|
protected |
Definition at line 438 of file class.ilObjRoleGUI.php.
References $obj_ref_id, ilTable2GUI\addMultiCommand(), buildConfirmationModal(), checkAccess(), ILIAS\Repository\ctrl(), ilAccordionGUI\FORCE_ALL_OPEN, getParentRefId(), getParentType(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ilObjectRoleTemplatePermissionTableGUI\parse(), ROLE_FOLDER_ID, setSubTabs(), SYSTEM_ROLE_ID, and ILIAS\Repository\toolbar().
Referenced by adminPermObject().
ilObjRoleGUI::permSaveObject | ( | bool | $a_show_admin_permissions = false | ) |
save permissions public
Definition at line 630 of file class.ilObjRoleGUI.php.
References $obj_ref_id, ilRbacLog\add(), checkAccess(), ILIAS\Repository\ctrl(), ilRbacLog\diffTemplate(), ilRbacLog\EDIT_TEMPLATE, ilRbacLog\gatherTemplate(), getParentType(), ILIAS\FileDelivery\http(), ilRbacLog\isActive(), isChangeExistingObjectsConfirmationRequired(), ILIAS\Repository\lng(), ilObjRole\MODE_PROTECTED_KEEP_LOCAL_POLICIES, ilObjRole\MODE_UNPROTECTED_KEEP_LOCAL_POLICIES, ILIAS\Repository\object(), ILIAS\Repository\refinery(), retrieveTemplatePermissionsFromPost(), ROLE_FOLDER_ID, ROOT_FOLDER_ID, showChangeExistingObjectsConfirmation(), and ilUtil\tf2yn().
Referenced by adminPermSaveObject().
|
protected |
Definition at line 170 of file class.ilObjRoleGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by permSaveObject().
ilObjRoleGUI::saveObject | ( | ) |
Save new role.
Definition at line 338 of file class.ilObjRoleGUI.php.
References ilObjectGUI\$data, $obj_ref_id, ILIAS\Repository\ctrl(), getRoleForm(), ILIAS\Repository\lng(), and null.
|
protected |
Definition at line 1219 of file class.ilObjRoleGUI.php.
References ILIAS\Repository\ctrl(), and ROLE_FOLDER_ID.
Referenced by permObject().
|
protected |
Show confirmation screen.
string[] | $recursive_list |
Definition at line 1133 of file class.ilObjRoleGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ilObjRole\MODE_PROTECTED_DELETE_LOCAL_POLICIES, ilObjRole\MODE_PROTECTED_KEEP_LOCAL_POLICIES, ilObjRole\MODE_UNPROTECTED_DELETE_LOCAL_POLICIES, ilObjRole\MODE_UNPROTECTED_KEEP_LOCAL_POLICIES, ILIAS\Repository\refinery(), ilRadioGroupInputGUI\setValue(), and ilRadioOption\setValue().
Referenced by permSaveObject().
|
protected |
check if default permissions are shown or not
Definition at line 230 of file class.ilObjRoleGUI.php.
References getContainerType().
Referenced by executeCommand(), and getTabs().
ilObjRoleGUI::updateObject | ( | ) |
Save role settings.
Definition at line 379 of file class.ilObjRoleGUI.php.
References ilObjectGUI\$data, buildEditPage(), ILIAS\Repository\ctrl(), getRoleForm(), ILIAS\Repository\lng(), null, and ILIAS\Repository\object().
ilObjRoleGUI::userassignmentObject | ( | ) |
display user assignment panel
Definition at line 926 of file class.ilObjRoleGUI.php.
References ilSecuritySettings\_getInstance(), checkAccess(), ILIAS\Repository\ctrl(), ilRepositorySearchGUI\fillAutoCompleteToolbar(), ilObjectGUI\getAdminMode(), ILIAS\Repository\lng(), ILIAS\Repository\object(), SYSTEM_ROLE_ID, and ILIAS\Repository\user().
|
protected |
Definition at line 48 of file class.ilObjRoleGUI.php.
Referenced by getContainerType().
|
protected |
Definition at line 50 of file class.ilObjRoleGUI.php.
|
private |
Definition at line 52 of file class.ilObjRoleGUI.php.
|
private |
Definition at line 51 of file class.ilObjRoleGUI.php.
|
protected |
Definition at line 46 of file class.ilObjRoleGUI.php.
Referenced by getParentObjId().
|
protected |
Definition at line 47 of file class.ilObjRoleGUI.php.
Referenced by getParentType().
|
protected |
Definition at line 45 of file class.ilObjRoleGUI.php.
Referenced by addUserObject(), adoptPermSaveObject(), buildEditPage(), changeExistingObjectsObject(), ensureRoleAccessForContext(), executeCommand(), getParentRefId(), permObject(), permSaveObject(), and saveObject().
|
protected |
Definition at line 53 of file class.ilObjRoleGUI.php.
|
protected |
Definition at line 49 of file class.ilObjRoleGUI.php.
Referenced by getRoleId().
|
protected |
Definition at line 54 of file class.ilObjRoleGUI.php.
|
protected |
Definition at line 55 of file class.ilObjRoleGUI.php.
|
private |
Definition at line 42 of file class.ilObjRoleGUI.php.
|
private |
Definition at line 39 of file class.ilObjRoleGUI.php.
|
private |
Definition at line 40 of file class.ilObjRoleGUI.php.
|
private |
Definition at line 41 of file class.ilObjRoleGUI.php.
|
private |
Definition at line 43 of file class.ilObjRoleGUI.php.
|
private |
Definition at line 38 of file class.ilObjRoleGUI.php.