ILIAS
Release_4_2_x_branch Revision 61807
|
Class ilObjRoleGUI. More...
Public Member Functions | |
__construct ($a_data, $a_id, $a_call_by_reference=false, $a_prepare_output=true) | |
Constructor public. | |
& | executeCommand () |
execute command | |
getParentRefId () | |
Get ref id of current object (not role folder id) | |
getParentObjId () | |
Get obj_id of current object. | |
getParentType () | |
get type of current object (not role folder) | |
setBackTarget ($a_text, $a_link) | |
set back tab target | |
getBackTarget () | |
getAdminTabs (&$tabs_gui) | |
admin and normal tabs are equal for roles | |
listDesktopItemsObject () | |
askDeleteDesktopItemObject () | |
deleteDesktopItemsObject () | |
selectDesktopItemObject () | |
assignDesktopItemObject () | |
createObject () | |
Only called from administration -> role folder ? Otherwise this check access is wrong. | |
editObject () | |
Edit role properties. | |
editObject2 () | |
edit object | |
saveObject () | |
Save new role. | |
updateObject () | |
Save role settings. | |
perm2Object () | |
display permission settings template | |
permSaveObject ($a_show_admin_permissions=false) | |
save permissions | |
adoptPermSaveObject () | |
copy permissions from role | |
assignSaveObject () | |
wrapper for renamed function | |
addUserObject ($a_user_ids) | |
Assign user (callback from ilRepositorySearchGUI) | |
deassignUserObject () | |
de-assign users from role | |
updateObject2 () | |
update role object | |
userassignmentObject () | |
display user assignment panel | |
__showAssignedUsersTable ($a_result_set, $a_user_ids=NULL) | |
& | __initTableGUI () |
__setTableGUIBasicData (&$tbl, &$result_set, $from="") | |
standard implementation for tables use 'from' variable use different initial setting of table | |
searchUserFormObject () | |
__unsetSessionVariables () | |
cancelObject () | |
cancelObject is called when an operation is canceled, method links back public | |
searchObject () | |
__search ($a_search_string, $a_search_for) | |
__showSearchUserTable ($a_result_set, $a_user_ids=NULL, $a_cmd="search") | |
__showSearchRoleTable ($a_result_set, $a_role_ids=NULL) | |
__showSearchGroupTable ($a_result_set, $a_grp_ids=NULL) | |
listUsersRoleObject () | |
listUsersGroupObject () | |
__formatPath ($a_path_arr) | |
__prepareOutput () | |
__setHeader () | |
__setLocator () | |
addAdminLocatorItems () | |
should be overwritten to add object specific items (repository items are preloaded) | |
showUpperIcon () | |
getTabs (&$tabs_gui) | |
get tabs abstract method. | |
mailToRoleObject () | |
checkAccess ($a_perm_global, $a_perm_obj= '') | |
Public Member Functions inherited from ilObjectGUI | |
ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true) | |
Constructor public. | |
withReferences () | |
determines wether objects are referenced or not (got ref ids or not) | |
setCreationMode ($a_mode=true) | |
if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui | |
getCreationMode () | |
get creation mode | |
getHTML () | |
undeleteObject () | |
Get objects back from trash. | |
confirmedDeleteObject () | |
confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled | |
cancelDeleteObject () | |
cancel deletion of object | |
removeFromSystemObject () | |
remove objects from trash bin and all entries therefore every object needs a specific deleteObject() method | |
cancelObject ($in_rep=false) | |
cancel action and go back to previous page public | |
cancelCreation () | |
cancel create action and go back to repository parent | |
getFormAction ($a_cmd, $a_formaction="") | |
get form action for command (command is method name without "Object", e.g. | |
isVisible ($a_ref_id, $a_type) | |
viewObject () | |
list childs of current object | |
deleteObject ($a_error=false) | |
Display deletion confirmation screen. | |
trashObject () | |
Show trash content of object. | |
getTemplateFile ($a_cmd, $a_type="") | |
get a template blockfile format: tpl. | |
cloneAllObject () | |
Clone single (not container object) Method is overwritten in ilContainerGUI. | |
copyWizardHasOptions ($a_mode) | |
Check if there is any modules specific option. |
Data Fields | |
const | MODE_GLOBAL_UPDATE = 1 |
const | MODE_GLOBAL_CREATE = 2 |
const | MODE_LOCAL_UPDATE = 3 |
const | MODE_LOCAL_CREATE = 4 |
$type | |
$rolf_ref_id | |
$ctrl | |
Data Fields inherited from ilObjectGUI | |
const | COPY_WIZARD_NEEDS_PAGE = 1 |
$ilias | |
$objDefinition | |
$tpl | |
$tree | |
$lng | |
$data | |
$object | |
$ref_id | |
$obj_id | |
$maxcount | |
$formaction | |
$return_location | |
$target_frame | |
$tab_target_script | |
$actions | |
$sub_objects | |
$omit_locator = false | |
const | CFORM_NEW = 1 |
const | CFORM_IMPORT = 2 |
const | CFORM_CLONE = 3 |
Protected Member Functions | |
getContainerType () | |
Get type of role container. | |
showDefaultPermissionSettings () | |
check if default permissions are shown or not | |
initFormRoleProperties ($a_mode) | |
Create role prperty form. | |
loadRoleProperties (ilObjRole $role) | |
Store form input in role object. | |
readRoleProperties (ilObjRole $role) | |
Read role properties and write them to form. | |
checkDuplicate ($a_role_id=0) | |
Check if role with same name already exists in this folder. | |
permObject ($a_show_admin_permissions=false) | |
Show template permissions. | |
adminPermObject () | |
Show administration permissions. | |
adminPermSaveObject () | |
Save admin permissions. | |
adoptPermObject () | |
confirmDeleteRoleObject () | |
Show delete confirmation screen. | |
performDeleteRoleObject () | |
Delete role. | |
isChangeExistingObjectsConfirmationRequired () | |
Check if a confirmation about further settings is required or not. | |
showChangeExistingObjectsConfirmation () | |
Show confirmation screen. | |
changeExistingObjectsObject () | |
Change existing objects. | |
setSubTabs ($a_tab) | |
Set sub tabs. | |
Protected Member Functions inherited from ilObjectGUI | |
assignObject () | |
prepareOutput () | |
prepare output | |
setTitleAndDescription () | |
called by prepare output | |
initHeaderAction ($a_sub_type=null, $a_sub_id=null) | |
Add header action menu. | |
insertHeaderAction ($a_list_gui) | |
Insert header action into main template. | |
addHeaderAction () | |
Add header action menu. | |
redrawHeaderActionObject () | |
Ajax call: redraw action header only. | |
setTabs () | |
set admin tabs public | |
setAdminTabs () | |
set admin tabs public | |
setLocator () | |
set Locator | |
addLocatorItems () | |
should be overwritten to add object specific items (repository items are preloaded) | |
omitLocator ($a_omit=true) | |
initCreationForms ($a_new_type) | |
Init creation froms. | |
getCreationFormsHTML (array $a_forms) | |
Get HTML for creation forms (accordion) | |
initCreateForm ($a_new_type) | |
Init object creation form. | |
initDidacticTemplate (ilPropertyFormGUI $form) | |
Show didactic template types. | |
addDidacticTemplateOptions (array &$a_options) | |
Add custom templates. | |
getDidacticTemplateVar ($a_type) | |
Get didactic template setting from creation screen. | |
putObjectInTree (ilObject $a_obj, $a_parent_node_id=null) | |
Add object to tree at given position. | |
afterSave (ilObject $a_new_object) | |
Post (successful) object creation hook. | |
initEditForm () | |
Init object edit form. | |
initEditCustomForm (ilPropertyFormGUI $a_form) | |
Add custom fields to update form. | |
getEditFormValues () | |
Get values for edit form. | |
getEditFormCustomValues (array &$a_values) | |
Add values to custom edit fields. | |
updateCustom (ilPropertyFormGUI $a_form) | |
Insert custom update form values into object. | |
afterUpdate () | |
Post (successful) object update hook. | |
initImportForm ($a_new_type) | |
Init object import form. | |
importFileObject ($parent_id=null) | |
Import. | |
afterImport (ilObject $a_new_object) | |
Post (successful) object import hook. | |
setFormAction ($a_cmd, $a_formaction) | |
set specific form action for command | |
getReturnLocation ($a_cmd, $a_location="") | |
get return location for command (command is method name without "Object", e.g. | |
setReturnLocation ($a_cmd, $a_location) | |
set specific return location for command | |
getTargetFrame ($a_cmd, $a_target_frame="") | |
get target frame for command (command is method name without "Object", e.g. | |
setTargetFrame ($a_cmd, $a_target_frame) | |
set specific target frame for command | |
showPossibleSubObjects () | |
show possible subobjects (pulldown menu) | |
getTitlesByRefId ($a_ref_ids) | |
get Titles of objects this method is used for error messages in methods cut/copy/paste | |
__showButton ($a_cmd, $a_text, $a_target= '') | |
hitsperpageObject () | |
__showClipboardTable ($a_result_set, $a_from="") | |
redirectToRefId ($a_ref_id, $a_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 $_GET["ref_id"] value | |
fillCloneTemplate ($a_tpl_varname, $a_type) | |
Fill object clone template This method can be called from any object GUI class that wants to offer object cloning. | |
getCenterColumnHTML () | |
Get center column. | |
getRightColumnHTML () | |
Display right column. | |
setColumnSettings ($column_gui) | |
May be overwritten in subclasses. | |
checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null) | |
Check permission and redirect on error. | |
checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null) | |
Check permission. |
Protected Attributes | |
$obj_ref_id = 0 | |
$obj_obj_id = 0 | |
$obj_obj_type = '' | |
$container_type = '' |
Class ilObjRoleGUI.
ilObjRoleGUI: ilRepositorySearchGUI
Definition at line 19 of file class.ilObjRoleGUI.php.
ilObjRoleGUI::__construct | ( | $a_data, | |
$a_id, | |||
$a_call_by_reference = false , |
|||
$a_prepare_output = true |
|||
) |
Constructor public.
Definition at line 52 of file class.ilObjRoleGUI.php.
References $_GET, ilObjectGUI\$lng, ilObjectGUI\$tree, ilObject\_lookupObjId(), ilObject\_lookupType(), getParentObjId(), getParentRefId(), and ilObjectGUI\ilObjectGUI().
ilObjRoleGUI::__formatPath | ( | $a_path_arr | ) |
Definition at line 2529 of file class.ilObjRoleGUI.php.
References ilObjectGUI\$data, and $path.
Referenced by listDesktopItemsObject().
& ilObjRoleGUI::__initTableGUI | ( | ) |
Reimplemented from ilObjectGUI.
Definition at line 1968 of file class.ilObjRoleGUI.php.
Referenced by __showAssignedUsersTable(), __showSearchGroupTable(), __showSearchRoleTable(), and __showSearchUserTable().
ilObjRoleGUI::__prepareOutput | ( | ) |
Definition at line 2551 of file class.ilObjRoleGUI.php.
References __setHeader(), ilUtil\infoPanel(), and ilUtil\sendInfo().
ilObjRoleGUI::__search | ( | $a_search_string, | |
$a_search_for | |||
) |
Definition at line 2195 of file class.ilObjRoleGUI.php.
References $_SESSION, ilUtil\sendInfo(), and ilUtil\stripSlashes().
Referenced by searchObject().
ilObjRoleGUI::__setHeader | ( | ) |
Definition at line 2574 of file class.ilObjRoleGUI.php.
References ilUtil\getImagePath(), and getTabs().
Referenced by __prepareOutput().
ilObjRoleGUI::__setLocator | ( | ) |
Definition at line 2589 of file class.ilObjRoleGUI.php.
References $row, and ilObjectGUI\$tree.
ilObjRoleGUI::__setTableGUIBasicData | ( | & | $tbl, |
& | $result_set, | ||
$a_from = "" |
|||
) |
standard implementation for tables use 'from' variable use different initial setting of table
Reimplemented from ilObjectGUI.
Definition at line 1975 of file class.ilObjRoleGUI.php.
References $_GET.
Referenced by __showAssignedUsersTable(), __showSearchGroupTable(), __showSearchRoleTable(), and __showSearchUserTable().
ilObjRoleGUI::__showAssignedUsersTable | ( | $a_result_set, | |
$a_user_ids = NULL |
|||
) |
Definition at line 1901 of file class.ilObjRoleGUI.php.
References ilObjectGUI\$actions, ilObjectGUI\$tpl, __initTableGUI(), __setTableGUIBasicData(), ilObjectGUI\__showButton(), ilUtil\array_php2js(), and ilUtil\getImagePath().
ilObjRoleGUI::__showSearchGroupTable | ( | $a_result_set, | |
$a_grp_ids = NULL |
|||
) |
Definition at line 2349 of file class.ilObjRoleGUI.php.
References $_GET, ilObjectGUI\$tpl, __initTableGUI(), __setTableGUIBasicData(), ilUtil\array_php2js(), and ilUtil\getImagePath().
Referenced by searchObject().
ilObjRoleGUI::__showSearchRoleTable | ( | $a_result_set, | |
$a_role_ids = NULL |
|||
) |
Definition at line 2289 of file class.ilObjRoleGUI.php.
References ilObjectGUI\$tpl, __initTableGUI(), __setTableGUIBasicData(), ilUtil\array_php2js(), and ilUtil\getImagePath().
Referenced by searchObject().
ilObjRoleGUI::__showSearchUserTable | ( | $a_result_set, | |
$a_user_ids = NULL , |
|||
$a_cmd = "search" |
|||
) |
Definition at line 2220 of file class.ilObjRoleGUI.php.
References ilObjectGUI\$tpl, __initTableGUI(), __setTableGUIBasicData(), ilUtil\array_php2js(), and ilUtil\getImagePath().
Referenced by listUsersGroupObject(), listUsersRoleObject(), and searchObject().
ilObjRoleGUI::__unsetSessionVariables | ( | ) |
Definition at line 2041 of file class.ilObjRoleGUI.php.
References $_SESSION.
Referenced by searchUserFormObject().
ilObjRoleGUI::addAdminLocatorItems | ( | ) |
should be overwritten to add object specific items (repository items are preloaded)
Reimplemented from ilObjectGUI.
Definition at line 2635 of file class.ilObjRoleGUI.php.
References $_GET, ilFrameTargetInfo\_getFrame(), and ilObject\_lookupObjId().
ilObjRoleGUI::addUserObject | ( | $a_user_ids | ) |
Assign user (callback from ilRepositorySearchGUI)
array | $a_user_ids | Array of user ids |
Definition at line 1632 of file class.ilObjRoleGUI.php.
References $GLOBALS, $rolf_ref_id, checkAccess(), ilUtil\sendFailure(), ilUtil\sendInfo(), and ilUtil\sendSuccess().
|
protected |
Show administration permissions.
Definition at line 936 of file class.ilObjRoleGUI.php.
References permObject().
|
protected |
Save admin permissions.
Definition at line 945 of file class.ilObjRoleGUI.php.
References permSaveObject().
|
protected |
Definition at line 1282 of file class.ilObjRoleGUI.php.
References ilObjectGUI\$tpl, ilObjRole\_getTranslation(), ilUtil\_sortIds(), and ilUtil\formRadioButton().
Referenced by adoptPermSaveObject().
ilObjRoleGUI::adoptPermSaveObject | ( | ) |
copy permissions from role
public
Definition at line 1571 of file class.ilObjRoleGUI.php.
References $_POST, $rolf_ref_id, ilObjectGUI\$tree, adoptPermObject(), checkAccess(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilObjRoleGUI::askDeleteDesktopItemObject | ( | ) |
Definition at line 262 of file class.ilObjRoleGUI.php.
References $_POST, $_SESSION, checkAccess(), ilUtil\getImagePath(), ilObjectFactory\getInstanceByRefId(), ilRoleDesktopItem\getItem(), listDesktopItemsObject(), ilUtil\sendFailure(), ilUtil\sendQuestion(), ilUtil\switchColor(), and USER_FOLDER_ID.
ilObjRoleGUI::assignDesktopItemObject | ( | ) |
Definition at line 397 of file class.ilObjRoleGUI.php.
References $_GET, ilObject\_lookupType(), ilRoleDesktopItem\add(), selectDesktopItemObject(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and USER_FOLDER_ID.
ilObjRoleGUI::assignSaveObject | ( | ) |
wrapper for renamed function
public
Definition at line 1620 of file class.ilObjRoleGUI.php.
ilObjRoleGUI::cancelObject | ( | ) |
cancelObject is called when an operation is canceled, method links back public
Definition at line 2056 of file class.ilObjRoleGUI.php.
References $_GET.
|
protected |
Change existing objects.
Definition at line 2898 of file class.ilObjRoleGUI.php.
References $_POST, ilObjectGUI\$tree, ilUtil\sendSuccess(), and ilUtil\stripSlashes().
ilObjRoleGUI::checkAccess | ( | $a_perm_global, | |
$a_perm_obj = '' |
|||
) |
Definition at line 2781 of file class.ilObjRoleGUI.php.
Referenced by addUserObject(), adoptPermSaveObject(), askDeleteDesktopItemObject(), confirmDeleteRoleObject(), deassignUserObject(), deleteDesktopItemsObject(), editObject(), editObject2(), getTabs(), performDeleteRoleObject(), perm2Object(), permObject(), permSaveObject(), searchObject(), searchUserFormObject(), updateObject2(), and userassignmentObject().
|
protected |
Check if role with same name already exists in this folder.
Definition at line 740 of file class.ilObjRoleGUI.php.
References $title, and ilObject\_lookupTitle().
Referenced by saveObject(), and updateObject().
|
protected |
Show delete confirmation screen.
Definition at line 1351 of file class.ilObjRoleGUI.php.
References $ilErr, checkAccess(), ilUtil\getImagePath(), and ilUtil\sendQuestion().
ilObjRoleGUI::createObject | ( | ) |
Only called from administration -> role folder ? Otherwise this check access is wrong.
Reimplemented from ilObjectGUI.
Definition at line 560 of file class.ilObjRoleGUI.php.
References $ilErr, and initFormRoleProperties().
ilObjRoleGUI::deassignUserObject | ( | ) |
de-assign users from role
public
Definition at line 1684 of file class.ilObjRoleGUI.php.
References $_GET, $_POST, checkAccess(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilObjRoleGUI::deleteDesktopItemsObject | ( | ) |
Definition at line 323 of file class.ilObjRoleGUI.php.
References $_SESSION, checkAccess(), ilRoleDesktopItem\delete(), listDesktopItemsObject(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and USER_FOLDER_ID.
ilObjRoleGUI::editObject | ( | ) |
Edit role properties.
Reimplemented from ilObjectGUI.
Definition at line 577 of file class.ilObjRoleGUI.php.
References $ilErr, $ilSetting, checkAccess(), initFormRoleProperties(), and readRoleProperties().
ilObjRoleGUI::editObject2 | ( | ) |
edit object
public
Definition at line 595 of file class.ilObjRoleGUI.php.
References $_SESSION, $ilSetting, ilFormat\_getSizeMagnitude(), ilObjRole\_getTranslation(), ilDiskQuotaActivationChecker\_isActive(), checkAccess(), ilObjectGUI\getTargetFrame(), ilObjectGUI\getTemplateFile(), ilUtil\prepareFormOutput(), and ilUtil\stripSlashes().
& ilObjRoleGUI::executeCommand | ( | ) |
execute command
Reimplemented from ilObjectGUI.
Definition at line 82 of file class.ilObjRoleGUI.php.
References $cmd, $ret, ilObjectGUI\prepareOutput(), and showDefaultPermissionSettings().
ilObjRoleGUI::getAdminTabs | ( | & | $tabs_gui | ) |
admin and normal tabs are equal for roles
Reimplemented from ilObjectGUI.
Definition at line 170 of file class.ilObjRoleGUI.php.
References getTabs().
ilObjRoleGUI::getBackTarget | ( | ) |
Definition at line 162 of file class.ilObjRoleGUI.php.
Referenced by performDeleteRoleObject().
|
protected |
Get type of role container.
Definition at line 179 of file class.ilObjRoleGUI.php.
References $container_type.
Referenced by showDefaultPermissionSettings().
ilObjRoleGUI::getParentObjId | ( | ) |
Get obj_id of current object.
Definition at line 139 of file class.ilObjRoleGUI.php.
References $obj_obj_id.
Referenced by __construct().
ilObjRoleGUI::getParentRefId | ( | ) |
Get ref id of current object (not role folder id)
Definition at line 130 of file class.ilObjRoleGUI.php.
References $obj_ref_id.
Referenced by __construct(), and permObject().
ilObjRoleGUI::getParentType | ( | ) |
get type of current object (not role folder)
Definition at line 148 of file class.ilObjRoleGUI.php.
References $obj_obj_type.
Referenced by permObject(), and permSaveObject().
ilObjRoleGUI::getTabs | ( | & | $tabs_gui | ) |
get tabs abstract method.
overwrite in derived GUI class of your object type public
object | instance of ilTabsGUI |
Reimplemented from ilObjectGUI.
Definition at line 2690 of file class.ilObjRoleGUI.php.
References $_GET, checkAccess(), and showDefaultPermissionSettings().
Referenced by __setHeader(), and getAdminTabs().
|
protected |
Create role prperty form.
int | $a_mode |
Definition at line 432 of file class.ilObjRoleGUI.php.
References $title, ilDiskQuotaActivationChecker\_isActive(), ilObjRole\isAutoGenerated(), ilFormPropertyGUI\setDisabled(), ilNumberInputGUI\setMinValue(), and ilCheckboxInputGUI\setValue().
Referenced by createObject(), editObject(), saveObject(), and updateObject().
|
protected |
Check if a confirmation about further settings is required or not.
Definition at line 2801 of file class.ilObjRoleGUI.php.
References $_POST.
Referenced by permSaveObject().
ilObjRoleGUI::listDesktopItemsObject | ( | ) |
Definition at line 196 of file class.ilObjRoleGUI.php.
References $rolf_ref_id, ilObjectGUI\$tree, __formatPath(), ilObjectGUI\__showButton(), ilUtil\getImagePath(), ilObjectFactory\getInstanceByRefId(), ilUtil\sendInfo(), ilUtil\switchColor(), and USER_FOLDER_ID.
Referenced by askDeleteDesktopItemObject(), deleteDesktopItemsObject(), and selectDesktopItemObject().
ilObjRoleGUI::listUsersGroupObject | ( | ) |
Definition at line 2463 of file class.ilObjRoleGUI.php.
References $_POST, $_SESSION, ilObjectGUI\$tree, ilObjectGUI\__showButton(), __showSearchUserTable(), ilUtil\formCheckbox(), ilObjectFactory\getInstanceByObjId(), ilObjectFactory\getInstanceByRefId(), searchObject(), and ilUtil\sendFailure().
ilObjRoleGUI::listUsersRoleObject | ( | ) |
Definition at line 2408 of file class.ilObjRoleGUI.php.
References $_POST, $_SESSION, ilObjectGUI\__showButton(), __showSearchUserTable(), ilUtil\formCheckbox(), ilObjectFactory\getInstanceByObjId(), searchObject(), and ilUtil\sendFailure().
|
protected |
Store form input in role object.
object | $role |
Definition at line 518 of file class.ilObjRoleGUI.php.
References ilFormat\_getSizeMagnitude(), ilObjRole\setAllowRegister(), ilObject\setDescription(), ilObjRole\setDiskQuota(), ilObject\setTitle(), and ilObjRole\toggleAssignUsersStatus().
Referenced by saveObject(), and updateObject().
ilObjRoleGUI::mailToRoleObject | ( | ) |
Definition at line 2762 of file class.ilObjRoleGUI.php.
References $_SESSION, ilObject\_getIdsForTitle(), ilMailFormCall\_getRedirectTarget(), and ilUtil\redirect().
|
protected |
Delete role.
Definition at line 1392 of file class.ilObjRoleGUI.php.
References $_GET, $ilErr, checkAccess(), getBackTarget(), ilUtil\redirect(), and ilUtil\sendSuccess().
ilObjRoleGUI::perm2Object | ( | ) |
display permission settings template
public
Definition at line 955 of file class.ilObjRoleGUI.php.
References ilObjectGUI\$objDefinition, $rolf_ref_id, $title, ilObjectGUI\$tree, ilObjRole\_getTranslation(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilUtil\array_php2js(), checkAccess(), ilUtil\getImagePath(), ilPlugin\lookupTxt(), and ilUtil\sortArray().
|
protected |
Show template permissions.
Definition at line 794 of file class.ilObjRoleGUI.php.
References $ilErr, ilObjectGUI\$objDefinition, $rolf_ref_id, ilTable2GUI\addMultiCommand(), checkAccess(), ilAccordionGUI\FORCE_ALL_OPEN, getParentRefId(), getParentType(), ilPlugin\lookupTxt(), ilObjectRoleTemplatePermissionTableGUI\parse(), setSubTabs(), and ilUtil\sortArray().
Referenced by adminPermObject().
ilObjRoleGUI::permSaveObject | ( | $a_show_admin_permissions = false | ) |
save permissions
public
Definition at line 1421 of file class.ilObjRoleGUI.php.
References $_POST, ilObjectGUI\$objDefinition, $rolf_ref_id, ilObjectGUI\$tree, ilRbacLog\add(), checkAccess(), ilRbacLog\diffTemplate(), ilRbacLog\EDIT_TEMPLATE, ilRbacLog\gatherTemplate(), getParentType(), ilRbacLog\isActive(), isChangeExistingObjectsConfirmationRequired(), ilObjRole\MODE_PROTECTED_KEEP_LOCAL_POLICIES, ilObjRole\MODE_UNPROTECTED_KEEP_LOCAL_POLICIES, ilUtil\sendSuccess(), showChangeExistingObjectsConfirmation(), and ilUtil\tf2yn().
Referenced by adminPermSaveObject().
|
protected |
Read role properties and write them to form.
object | $role |
Definition at line 533 of file class.ilObjRoleGUI.php.
References ilObjectGUI\$data, ilFormat\_getSizeMagnitude(), ilDiskQuotaActivationChecker\_isActive(), ilObjRole\getAllowRegister(), ilObjRole\getAssignUsersStatus(), ilObject\getDescription(), ilObjRole\getDiskQuota(), ilObject\getId(), and ilObject\getTitle().
Referenced by editObject().
ilObjRoleGUI::saveObject | ( | ) |
Save new role.
Reimplemented from ilObjectGUI.
Definition at line 710 of file class.ilObjRoleGUI.php.
References $rolf_ref_id, checkDuplicate(), initFormRoleProperties(), loadRoleProperties(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilObjRoleGUI::searchObject | ( | ) |
Definition at line 2068 of file class.ilObjRoleGUI.php.
References $_POST, $_SESSION, $result, ilObjectGUI\$tree, __search(), ilObjectGUI\__showButton(), __showSearchGroupTable(), __showSearchRoleTable(), __showSearchUserTable(), checkAccess(), ilUtil\formCheckbox(), ilObjectFactory\getInstanceByObjId(), ilObjectFactory\getInstanceByRefId(), searchUserFormObject(), ilUtil\sendFailure(), ilUtil\sendInfo(), and ilUtil\stripSlashes().
Referenced by listUsersGroupObject(), and listUsersRoleObject().
ilObjRoleGUI::searchUserFormObject | ( | ) |
Definition at line 2005 of file class.ilObjRoleGUI.php.
References $_POST, $_SESSION, __unsetSessionVariables(), checkAccess(), and ilUtil\formRadioButton().
Referenced by searchObject().
ilObjRoleGUI::selectDesktopItemObject | ( | ) |
Definition at line 363 of file class.ilObjRoleGUI.php.
References $_GET, ilObjectGUI\$tree, ilObjectGUI\__showButton(), listDesktopItemsObject(), ilUtil\sendFailure(), ilUtil\sendInfo(), and USER_FOLDER_ID.
Referenced by assignDesktopItemObject().
ilObjRoleGUI::setBackTarget | ( | $a_text, | |
$a_link | |||
) |
set back tab target
Definition at line 156 of file class.ilObjRoleGUI.php.
|
protected |
Set sub tabs.
object | $a_tab |
Definition at line 2915 of file class.ilObjRoleGUI.php.
Referenced by permObject().
|
protected |
Show confirmation screen.
Definition at line 2829 of file class.ilObjRoleGUI.php.
References $_POST, ilObjRole\MODE_PROTECTED_DELETE_LOCAL_POLICIES, ilObjRole\MODE_PROTECTED_KEEP_LOCAL_POLICIES, ilObjRole\MODE_UNPROTECTED_DELETE_LOCAL_POLICIES, ilObjRole\MODE_UNPROTECTED_KEEP_LOCAL_POLICIES, ilRadioGroupInputGUI\setValue(), and ilRadioOption\setValue().
Referenced by permSaveObject().
|
protected |
check if default permissions are shown or not
Definition at line 188 of file class.ilObjRoleGUI.php.
References ilObjectGUI\$objDefinition, and getContainerType().
Referenced by executeCommand(), and getTabs().
ilObjRoleGUI::showUpperIcon | ( | ) |
Reimplemented from ilObjectGUI.
Definition at line 2662 of file class.ilObjRoleGUI.php.
References $_GET, ilObjectGUI\$objDefinition, ilObjectGUI\$tpl, and ilObjectGUI\$tree.
ilObjRoleGUI::updateObject | ( | ) |
Save role settings.
Reimplemented from ilObjectGUI.
Definition at line 765 of file class.ilObjRoleGUI.php.
References checkDuplicate(), initFormRoleProperties(), loadRoleProperties(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilObjRoleGUI::updateObject2 | ( | ) |
update role object
public
Definition at line 1756 of file class.ilObjRoleGUI.php.
References $_POST, ilObjectGUI\$tree, ilFormat\_getSizeMagnitude(), ilDiskQuotaActivationChecker\_isActive(), checkAccess(), ilUtil\sendSuccess(), ilUtil\stripSlashes(), and ilUtil\tf2yn().
ilObjRoleGUI::userassignmentObject | ( | ) |
display user assignment panel
Definition at line 1841 of file class.ilObjRoleGUI.php.
References ilObjectGUI\$lng, checkAccess(), and ilRepositorySearchGUI\fillAutoCompleteToolbar().
|
protected |
Definition at line 43 of file class.ilObjRoleGUI.php.
Referenced by getContainerType().
ilObjRoleGUI::$ctrl |
Definition at line 46 of file class.ilObjRoleGUI.php.
|
protected |
Definition at line 41 of file class.ilObjRoleGUI.php.
Referenced by getParentObjId().
|
protected |
Definition at line 42 of file class.ilObjRoleGUI.php.
Referenced by getParentType().
|
protected |
Definition at line 40 of file class.ilObjRoleGUI.php.
Referenced by getParentRefId().
ilObjRoleGUI::$rolf_ref_id |
Definition at line 38 of file class.ilObjRoleGUI.php.
Referenced by addUserObject(), adoptPermSaveObject(), listDesktopItemsObject(), perm2Object(), permObject(), permSaveObject(), and saveObject().
ilObjRoleGUI::$type |
Definition at line 31 of file class.ilObjRoleGUI.php.
const ilObjRoleGUI::MODE_GLOBAL_CREATE = 2 |
Definition at line 22 of file class.ilObjRoleGUI.php.
const ilObjRoleGUI::MODE_GLOBAL_UPDATE = 1 |
Definition at line 21 of file class.ilObjRoleGUI.php.
const ilObjRoleGUI::MODE_LOCAL_CREATE = 4 |
Definition at line 24 of file class.ilObjRoleGUI.php.
const ilObjRoleGUI::MODE_LOCAL_UPDATE = 3 |
Definition at line 23 of file class.ilObjRoleGUI.php.