ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilObjStudyProgrammeTreeGUI Generates the manage view for ilTrainingProgramme-Repository objects. More...
Public Member Functions | |
__construct ($a_ref_id) | |
executeCommand () | |
Execute GUI-commands If there is a async request the response is sent as a json string. More... | |
Data Fields | |
$ctrl | |
$tpl | |
$object | |
$ilias | |
$lng | |
$toolbar | |
Protected Member Functions | |
initTree () | |
Initialize Tree Creates tree instance and set tree configuration. More... | |
view () | |
Display the tree view. More... | |
cancel () | |
Cancel operation. More... | |
saveTreeOrder () | |
Saves tree node order Data is json encoded from the jstree component. More... | |
storeTreeOrder ($nodes, $container_sorting=null, $parent_ref_id=null) | |
Recursive function for saving the tree order. More... | |
createNewLeaf () | |
Creates a new leaf Currently only course references can be created. More... | |
getContainerSelectionExplorer ($convert_to_string=true) | |
Initialize the Course Explorer for creating a leaf. More... | |
getCreationForm () | |
Returns the async creation form for StudyProgrammes. More... | |
create () | |
Generates the modal window content for the creation form of nodes or leafs If there are already StudyProgramme-nodes in the parent, leaf creation is disabled and if there are already leafs, nodes can't be created. More... | |
delete () | |
Show the delete confirmation dialog for objects in the tree. More... | |
confirmedDelete () | |
Deletes a node or a leaf in the tree. More... | |
cancelDelete () | |
Cancel deletion Return a json string for the async handling. More... | |
initAsyncUIElements () | |
Initializes all elements used for async-interaction Adds HTML-skeleton for the bootstrap modal dialog, the notification mechanism and the Selection container. More... | |
getToolbar () | |
Setup the toolbar. More... | |
checkAccess ($permission, $ref_id=null) | |
Checks permission of current tree or certain child of it. More... | |
checkAccessOrFail ($permission, $ref_id=null) | |
Checks permission of a object and throws an exception if they are not granted. More... | |
Protected Attributes | |
$access | |
$locator | |
$log | |
$ref_id | |
$tree | |
$modal_id | |
$async_output_handler | |
Class ilObjStudyProgrammeTreeGUI Generates the manage view for ilTrainingProgramme-Repository objects.
Handles all the async requests.
Definition at line 20 of file class.ilObjStudyProgrammeTreeGUI.php.
ilObjStudyProgrammeTreeGUI::__construct | ( | $a_ref_id | ) |
Definition at line 87 of file class.ilObjStudyProgrammeTreeGUI.php.
References $DIC, $ilCtrl, $ilias, $ilLog, $ilSetting, $lng, $tpl, $tree, and initTree().
|
protected |
Cancel operation.
Definition at line 196 of file class.ilObjStudyProgrammeTreeGUI.php.
References ilAsyncOutputHandler\encodeAsyncResponse().
|
protected |
Cancel deletion Return a json string for the async handling.
Definition at line 510 of file class.ilObjStudyProgrammeTreeGUI.php.
References ilAsyncOutputHandler\encodeAsyncResponse().
|
protected |
Checks permission of current tree or certain child of it.
string | $permission | |
null | $ref_id |
Definition at line 577 of file class.ilObjStudyProgrammeTreeGUI.php.
References $ref_id.
Referenced by checkAccessOrFail(), and confirmedDelete().
|
protected |
Checks permission of a object and throws an exception if they are not granted.
string | $permission | |
null | $ref_id |
ilException |
Definition at line 593 of file class.ilObjStudyProgrammeTreeGUI.php.
References $ref_id, and checkAccess().
Referenced by confirmedDelete(), create(), createNewLeaf(), delete(), and saveTreeOrder().
|
protected |
Deletes a node or a leaf in the tree.
ilException |
Definition at line 450 of file class.ilObjStudyProgrammeTreeGUI.php.
References $_POST, $result, array, checkAccess(), checkAccessOrFail(), ilRepUtil\deleteObjects(), ilAsyncOutputHandler\encodeAsyncResponse(), ilObjStudyProgramme\getAllChildren(), and ilObjectFactoryWrapper\singleton().
|
protected |
Generates the modal window content for the creation form of nodes or leafs If there are already StudyProgramme-nodes in the parent, leaf creation is disabled and if there are already leafs, nodes can't be created.
ilException |
Definition at line 354 of file class.ilObjStudyProgrammeTreeGUI.php.
References $_GET, checkAccessOrFail(), ilAccordionGUI\FIRST_OPEN, ilSetting\get(), getContainerSelectionExplorer(), getCreationForm(), and ilObjectFactoryWrapper\singleton().
|
protected |
Creates a new leaf Currently only course references can be created.
ilException |
Definition at line 273 of file class.ilObjStudyProgrammeTreeGUI.php.
References $_POST, $target_id, ilObject\_lookupObjectId(), array, checkAccessOrFail(), ilAsyncOutputHandler\encodeAsyncResponse(), and ilContainerReference\TITLE_TYPE_REUSE.
|
protected |
Show the delete confirmation dialog for objects in the tree.
ilException |
Definition at line 400 of file class.ilObjStudyProgrammeTreeGUI.php.
References $_GET, $DIC, $ilSetting, $title, ilObject\_getIcon(), ilObject\_lookupObjectId(), ilObject\_lookupType(), array, checkAccessOrFail(), and ilObjectFactory\getClassByType().
ilObjStudyProgrammeTreeGUI::executeCommand | ( | ) |
Execute GUI-commands If there is a async request the response is sent as a json string.
ilException |
Definition at line 140 of file class.ilObjStudyProgrammeTreeGUI.php.
References $cmd, exit, getToolbar(), and ilAsyncOutputHandler\handleAsyncOutput().
|
protected |
Initialize the Course Explorer for creating a leaf.
bool | $convert_to_string | If set to true, the getOutput function is already called |
Definition at line 306 of file class.ilObjStudyProgrammeTreeGUI.php.
References $_GET.
Referenced by create().
|
protected |
Returns the async creation form for StudyProgrammes.
Definition at line 336 of file class.ilObjStudyProgrammeTreeGUI.php.
Referenced by create().
|
protected |
Setup the toolbar.
Definition at line 551 of file class.ilObjStudyProgrammeTreeGUI.php.
References ilLinkButton\getInstance().
Referenced by executeCommand().
|
protected |
Initializes all elements used for async-interaction Adds HTML-skeleton for the bootstrap modal dialog, the notification mechanism and the Selection container.
Definition at line 521 of file class.ilObjStudyProgrammeTreeGUI.php.
References ilAsyncContainerSelectionExplorer\addJavascript(), ilAsyncPropertyFormGUI\addJavaScript(), ilAccordionGUI\addJavaScript(), array, ilModalGUI\getInstance(), and ilModalGUI\TYPE_LARGE.
Referenced by view().
|
protected |
Initialize Tree Creates tree instance and set tree configuration.
Definition at line 124 of file class.ilObjStudyProgrammeTreeGUI.php.
Referenced by __construct().
|
protected |
Saves tree node order Data is json encoded from the jstree component.
ilException |
Definition at line 208 of file class.ilObjStudyProgrammeTreeGUI.php.
References $_POST, array, checkAccessOrFail(), ilAsyncOutputHandler\encodeAsyncResponse(), and storeTreeOrder().
|
protected |
Recursive function for saving the tree order.
[ilObjStudyProgramme] | $nodes | |
ilContainerSorting | null | $container_sorting | |
int | null | $parent_ref_id |
Definition at line 229 of file class.ilObjStudyProgrammeTreeGUI.php.
References $DIC, $tree, ilContainerSorting\_getInstance(), ilObject\_lookupObjectId(), array, and ilObjectFactoryWrapper\singleton().
Referenced by saveTreeOrder().
|
protected |
Display the tree view.
Definition at line 182 of file class.ilObjStudyProgrammeTreeGUI.php.
References $output, and initAsyncUIElements().
|
protected |
Definition at line 34 of file class.ilObjStudyProgrammeTreeGUI.php.
|
protected |
Definition at line 80 of file class.ilObjStudyProgrammeTreeGUI.php.
ilObjStudyProgrammeTreeGUI::$ctrl |
Definition at line 24 of file class.ilObjStudyProgrammeTreeGUI.php.
ilObjStudyProgrammeTreeGUI::$ilias |
Definition at line 53 of file class.ilObjStudyProgrammeTreeGUI.php.
Referenced by __construct().
ilObjStudyProgrammeTreeGUI::$lng |
Definition at line 58 of file class.ilObjStudyProgrammeTreeGUI.php.
Referenced by __construct().
|
protected |
Definition at line 43 of file class.ilObjStudyProgrammeTreeGUI.php.
|
protected |
Definition at line 48 of file class.ilObjStudyProgrammeTreeGUI.php.
|
protected |
Definition at line 75 of file class.ilObjStudyProgrammeTreeGUI.php.
ilObjStudyProgrammeTreeGUI::$object |
Definition at line 39 of file class.ilObjStudyProgrammeTreeGUI.php.
|
protected |
Definition at line 64 of file class.ilObjStudyProgrammeTreeGUI.php.
Referenced by checkAccess(), and checkAccessOrFail().
ilObjStudyProgrammeTreeGUI::$toolbar |
Definition at line 85 of file class.ilObjStudyProgrammeTreeGUI.php.
ilObjStudyProgrammeTreeGUI::$tpl |
Definition at line 29 of file class.ilObjStudyProgrammeTreeGUI.php.
Referenced by __construct().
|
protected |
Definition at line 69 of file class.ilObjStudyProgrammeTreeGUI.php.
Referenced by __construct(), and storeTreeOrder().