ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilObjRoleTemplateGUI. More...
Public Member Functions | |
__construct ($a_data, $a_id, $a_call_by_reference) | |
Constructor. More... | |
executeCommand () | |
execute command More... | |
createObject (ilPropertyFormGUI $form=null) | |
create new role definition template More... | |
editObject (ilPropertyFormGUI $form=null) | |
Create new object. More... | |
updateObject () | |
update role template object More... | |
saveObject () | |
save a new role template object More... | |
adoptPermSaveObject () | |
adopting permission setting from other roles/role templates More... | |
getAdminTabs () | |
admin and normal tabs are equal for roles More... | |
cancelObject () | |
cancelObject is called when an operation is canceled, method links back @access public More... | |
![]() | |
executeCommand () | |
execute command More... | |
withReferences () | |
determines wether objects are referenced or not (got ref ids or not) More... | |
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 More... | |
getCreationMode () | |
get creation mode More... | |
prepareOutput ($a_show_subobjects=true) | |
prepare output More... | |
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... | |
cancelDeleteObject () | |
cancel deletion of object More... | |
cancelObject () | |
cancel action and go back to previous page @access public More... | |
createObject () | |
create new object form More... | |
cancelCreation () | |
cancel create action and go back to repository parent More... | |
saveObject () | |
save object More... | |
getDidacticTemplateVar ($a_type) | |
Get didactic template setting from creation screen. More... | |
putObjectInTree (ilObject $a_obj, $a_parent_node_id=null) | |
Add object to tree at given position. More... | |
editObject () | |
edit object More... | |
addExternalEditFormCustom (ilPropertyFormGUI $a_form) | |
updateObject () | |
updates object entry in object_data More... | |
getFormAction ($a_cmd, $a_formaction="") | |
get form action for command (command is method name without "Object", e.g. More... | |
isVisible ($a_ref_id, $a_type) | |
viewObject () | |
viewObject container presentation for "administration -> repository, trash, permissions" More... | |
deleteObject ($a_error=false) | |
Display deletion confirmation screen. More... | |
cloneAllObject () | |
Clone single (not container object) Method is overwritten in ilContainerGUI. More... | |
redirectAfterCreation () | |
Redirect after creation, see https://docu.ilias.de/goto_docu_wiki_wpage_5035_1357.html. More... | |
addToDeskObject () | |
@inheritDoc More... | |
removeFromDeskObject () | |
@inheritDoc More... | |
![]() | |
callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb) | |
Data Fields | |
const | FORM_MODE_EDIT = 1 |
const | FORM_MODE_CREATE = 2 |
$type | |
$rolf_ref_id | |
![]() | |
const | ALLOWED_TAGS_IN_TITLE_AND_DESCRIPTION |
const | COPY_WIZARD_NEEDS_PAGE = 1 |
$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 | ||||
initFormRoleTemplate ($a_mode=self::FORM_MODE_CREATE) | ||||
Init create form. More... | ||||
getTabs () | ||||
get tabs abstract method.@abstract overwrite in derived GUI class of your object type @access public
| ||||
addAdminLocatorItems ($a_do_not_add_object=false) | ||||
should be overwritten to add object specific items (repository items are preloaded)
| ||||
![]() | ||||
getObjectService () | ||||
Get object service. More... | ||||
assignObject () | ||||
setTitleAndDescription () | ||||
called by prepare output More... | ||||
initHeaderAction ($a_sub_type=null, $a_sub_id=null) | ||||
Add header action menu. More... | ||||
insertHeaderAction ($a_list_gui) | ||||
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 @access public More... | ||||
setAdminTabs () | ||||
set admin tabs @access public More... | ||||
setLocator () | ||||
set Locator More... | ||||
addLocatorItems () | ||||
should be overwritten to add object specific items (repository items are preloaded) More... | ||||
omitLocator ($a_omit=true) | ||||
addAdminLocatorItems ($a_do_not_add_object=false) | ||||
should be overwritten to add object specific items (repository items are preloaded) More... | ||||
initCreationForms ($a_new_type) | ||||
Init creation froms. More... | ||||
getCreationFormsHTML (array $a_forms) | ||||
Get HTML for creation forms (accordion) More... | ||||
initCreateForm ($a_new_type) | ||||
Init object creation form. More... | ||||
initDidacticTemplate (ilPropertyFormGUI $form) | ||||
Show didactic template types. More... | ||||
addDidacticTemplateOptions (array &$a_options) | ||||
Add custom templates. More... | ||||
afterSave (ilObject $a_new_object) | ||||
Post (successful) object creation hook. More... | ||||
initEditForm () | ||||
Init object edit form. More... | ||||
initEditCustomForm (ilPropertyFormGUI $a_form) | ||||
Add custom fields to update form. More... | ||||
getEditFormValues () | ||||
Get values for edit form. More... | ||||
getEditFormCustomValues (array &$a_values) | ||||
Add values to custom edit fields. More... | ||||
validateCustom (ilPropertyFormGUI $a_form) | ||||
Validate custom values (if not possible with checkInput()) More... | ||||
updateCustom (ilPropertyFormGUI $a_form) | ||||
Insert custom update form values into object. More... | ||||
afterUpdate () | ||||
Post (successful) object update hook. More... | ||||
initImportForm ($a_new_type) | ||||
Init object import form. More... | ||||
importFileObject ($parent_id=null, $a_catch_errors=true) | ||||
Import. More... | ||||
afterImport (ilObject $a_new_object) | ||||
Post (successful) object import hook. More... | ||||
setFormAction ($a_cmd, $a_formaction) | ||||
set specific form action for command More... | ||||
getReturnLocation ($a_cmd, $a_location="") | ||||
get return location for command (command is method name without "Object", e.g. More... | ||||
setReturnLocation ($a_cmd, $a_location) | ||||
set specific return location for command More... | ||||
getTargetFrame ($a_cmd, $a_target_frame="") | ||||
get target frame for command (command is method name without "Object", e.g. More... | ||||
setTargetFrame ($a_cmd, $a_target_frame) | ||||
set specific target frame for command More... | ||||
showPossibleSubObjects () | ||||
show possible subobjects (pulldown menu) More... | ||||
getTemplateFile ($a_cmd, $a_type="") | ||||
get a template blockfile format: tpl. More... | ||||
getTabs () | ||||
get tabs abstract method. More... | ||||
__showButton ($a_cmd, $a_text, $a_target='') | ||||
hitsperpageObject () | ||||
& | __initTableGUI () | |||
__setTableGUIBasicData (&$tbl, &$result_set, $a_from="") | ||||
standard implementation for tables use 'from' variable use different initial setting of table More... | ||||
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 More... | ||||
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. More... | ||||
getCenterColumnHTML () | ||||
Get center column. More... | ||||
getRightColumnHTML () | ||||
Display right column. More... | ||||
setColumnSettings (ilColumnGUI $column_gui) | ||||
May be overwritten in subclasses. More... | ||||
checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null) | ||||
Check permission and redirect on error. More... | ||||
checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null) | ||||
Check permission. More... | ||||
enableDragDropFileUpload () | ||||
Enables the file upload into this object by dropping files. More... | ||||
handleAutoRating (ilObject $a_new_obj) | ||||
Activate rating automatically if parent container setting. More... | ||||
Additional Inherited Members | |
![]() | |
static | _gotoRepositoryRoot ($a_raise_error=false) |
Goto repository root. More... | |
static | _gotoRepositoryNode ($a_ref_id, $a_cmd="frameset") |
Goto repository root. More... | |
![]() | |
const | UPLOAD_TYPE_LOCAL = 1 |
const | UPLOAD_TYPE_UPLOAD_DIRECTORY = 2 |
$ilErr | |
$locator | |
$user | |
$access | |
$rbacsystem | |
$settings | |
$rbacreview | |
$toolbar | |
$tmp_import_dir | |
$tabs_gui = null | |
$ctrl | |
$object_service | |
$favourites | |
$request | |
Class ilObjRoleTemplateGUI.
@ilCtrl_Calls ilObjRoleTemplateGUI:
Definition at line 18 of file class.ilObjRoleTemplateGUI.php.
ilObjRoleTemplateGUI::__construct | ( | $a_data, | |
$a_id, | |||
$a_call_by_reference | |||
) |
Constructor.
@access public
Definition at line 41 of file class.ilObjRoleTemplateGUI.php.
References $DIC, ilObjectGUI\$lng, ilObjectGUI\$ref_id, and ILIAS\GlobalScreen\Provider\__construct().
|
protected |
should be overwritten to add object specific items (repository items are preloaded)
bool | $a_do_not_add_object |
Reimplemented from ilObjectGUI.
Definition at line 486 of file class.ilObjRoleTemplateGUI.php.
References $_GET, $DIC, ilObjRole\_getTranslation(), ilObject\_lookupObjId(), and ilObject\_lookupType().
ilObjRoleTemplateGUI::adoptPermSaveObject | ( | ) |
adopting permission setting from other roles/role templates
@access public
Definition at line 406 of file class.ilObjRoleTemplateGUI.php.
References $_POST, $DIC, ilObjectGUI\$rbacreview, ilObjectGUI\$rbacsystem, and ilUtil\sendFailure().
ilObjRoleTemplateGUI::cancelObject | ( | ) |
cancelObject is called when an operation is canceled, method links back @access public
Reimplemented from ilObjectGUI.
Definition at line 476 of file class.ilObjRoleTemplateGUI.php.
ilObjRoleTemplateGUI::createObject | ( | ilPropertyFormGUI | $form = null | ) |
create new role definition template
@access public
Definition at line 149 of file class.ilObjRoleTemplateGUI.php.
References $DIC, ilObjectGUI\$rbacsystem, and initFormRoleTemplate().
ilObjRoleTemplateGUI::editObject | ( | ilPropertyFormGUI | $form = null | ) |
Create new object.
Definition at line 168 of file class.ilObjRoleTemplateGUI.php.
References $DIC, $GLOBALS, ilObjectGUI\$rbacsystem, and initFormRoleTemplate().
ilObjRoleTemplateGUI::executeCommand | ( | ) |
execute command
Reimplemented from ilObjectGUI.
Definition at line 55 of file class.ilObjRoleTemplateGUI.php.
References $DIC, ilObjectGUI\$rbacsystem, and ilObjectGUI\prepareOutput().
ilObjRoleTemplateGUI::getAdminTabs | ( | ) |
admin and normal tabs are equal for roles
Reimplemented from ilObjectGUI.
Definition at line 441 of file class.ilObjRoleTemplateGUI.php.
References getTabs().
|
protected |
get tabs abstract method.@abstract overwrite in derived GUI class of your object type @access public
object | instance of ilTabsGUI |
Reimplemented from ilObjectGUI.
Definition at line 449 of file class.ilObjRoleTemplateGUI.php.
References $DIC, and ilObjectGUI\$rbacsystem.
Referenced by getAdminTabs().
|
protected |
Init create form.
bool | creation mode |
Definition at line 85 of file class.ilObjRoleTemplateGUI.php.
References $GLOBALS, ilObjRole\_getTranslation(), ilObject\_lookupType(), and IL_INST_ID.
Referenced by createObject(), editObject(), saveObject(), and updateObject().
ilObjRoleTemplateGUI::saveObject | ( | ) |
save a new role template object
@access public
Reimplemented from ilObjectGUI.
Definition at line 231 of file class.ilObjRoleTemplateGUI.php.
References $DIC, ilObjectGUI\$rbacreview, ilObjectGUI\$rbacsystem, ilObjectGUI\createObject(), and initFormRoleTemplate().
ilObjRoleTemplateGUI::updateObject | ( | ) |
update role template object
@access public
Reimplemented from ilObjectGUI.
Definition at line 191 of file class.ilObjRoleTemplateGUI.php.
References $DIC, ilObjectGUI\$rbacreview, ilObjectGUI\$rbacsystem, ilObjectGUI\editObject(), and initFormRoleTemplate().
ilObjRoleTemplateGUI::$rolf_ref_id |
Definition at line 35 of file class.ilObjRoleTemplateGUI.php.
ilObjRoleTemplateGUI::$type |
Definition at line 28 of file class.ilObjRoleTemplateGUI.php.
const ilObjRoleTemplateGUI::FORM_MODE_CREATE = 2 |
Definition at line 21 of file class.ilObjRoleTemplateGUI.php.
const ilObjRoleTemplateGUI::FORM_MODE_EDIT = 1 |
Definition at line 20 of file class.ilObjRoleTemplateGUI.php.