|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilObjStudyProgrammeTreeGUI Generates the manage view for ilTrainingProgramme-Repository objects. More...
Collaboration diagram for ilObjStudyProgrammeTreeGUI: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().
Here is the call graph for this function:
|
protected |
Cancel operation.
Definition at line 196 of file class.ilObjStudyProgrammeTreeGUI.php.
References ilAsyncOutputHandler\encodeAsyncResponse().
Here is the call graph for this function:
|
protected |
Cancel deletion Return a json string for the async handling.
Definition at line 510 of file class.ilObjStudyProgrammeTreeGUI.php.
References ilAsyncOutputHandler\encodeAsyncResponse().
Here is the call graph for this function:
|
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().
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Deletes a node or a leaf in the tree.
| ilException |
Definition at line 450 of file class.ilObjStudyProgrammeTreeGUI.php.
References $_POST, $result, checkAccess(), checkAccessOrFail(), ilRepUtil\deleteObjects(), ilAsyncOutputHandler\encodeAsyncResponse(), ilObjStudyProgramme\getAllChildren(), and ilObjectFactoryWrapper\singleton().
Here is the call graph for this function:
|
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, getContainerSelectionExplorer(), getCreationForm(), and ilObjectFactoryWrapper\singleton().
Here is the call graph for this function:
|
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(), checkAccessOrFail(), ilAsyncOutputHandler\encodeAsyncResponse(), and ilContainerReference\TITLE_TYPE_REUSE.
Here is the call graph for this function:
|
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(), checkAccessOrFail(), and ilObjectFactory\getClassByType().
Here is the call graph for this function:| 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().
Here is the call graph for this function:
|
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().
Here is the caller graph for this function:
|
protected |
Returns the async creation form for StudyProgrammes.
Definition at line 336 of file class.ilObjStudyProgrammeTreeGUI.php.
Referenced by create().
Here is the caller graph for this function:
|
protected |
Setup the toolbar.
Definition at line 551 of file class.ilObjStudyProgrammeTreeGUI.php.
References ilLinkButton\getInstance().
Referenced by executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 ilAsyncPropertyFormGUI\addJavaScript(), ilAsyncContainerSelectionExplorer\addJavascript(), ilAccordionGUI\addJavaScript(), ilModalGUI\getInstance(), and ilModalGUI\TYPE_LARGE.
Referenced by view().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Initialize Tree Creates tree instance and set tree configuration.
Definition at line 124 of file class.ilObjStudyProgrammeTreeGUI.php.
Referenced by __construct().
Here is the caller graph for this function:
|
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, checkAccessOrFail(), ilAsyncOutputHandler\encodeAsyncResponse(), and storeTreeOrder().
Here is the call graph for this function:
|
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(), ilObjectFactoryWrapper\singleton(), and storeTreeOrder().
Referenced by saveTreeOrder(), and storeTreeOrder().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Display the tree view.
Definition at line 182 of file class.ilObjStudyProgrammeTreeGUI.php.
References $output, and initAsyncUIElements().
Here is the call graph for this function:
|
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().