ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 88 of file class.ilObjStudyProgrammeTreeGUI.php.
References $DIC, $ilCtrl, $ilias, $ilLog, $ilSetting, $lng, $tpl, $tree, and initTree().
|
protected |
Cancel operation.
Definition at line 200 of file class.ilObjStudyProgrammeTreeGUI.php.
References ilAsyncOutputHandler\encodeAsyncResponse().
|
protected |
Cancel deletion Return a json string for the async handling.
Definition at line 527 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 597 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 614 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 466 of file class.ilObjStudyProgrammeTreeGUI.php.
References $_POST, $id, $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 365 of file class.ilObjStudyProgrammeTreeGUI.php.
References $_GET, checkAccessOrFail(), ilAccordionGUI\FIRST_OPEN, getContainerSelectionExplorer(), getCreationForm(), and ilObjectFactoryWrapper\singleton().
|
protected |
Creates a new leaf Currently only course references can be created.
ilException |
Definition at line 280 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 412 of file class.ilObjStudyProgrammeTreeGUI.php.
References $_GET, $DIC, $ilSetting, $title, $type, 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 143 of file class.ilObjStudyProgrammeTreeGUI.php.
References 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 314 of file class.ilObjStudyProgrammeTreeGUI.php.
References $_GET.
Referenced by create().
|
protected |
Returns the async creation form for StudyProgrammes.
Definition at line 346 of file class.ilObjStudyProgrammeTreeGUI.php.
Referenced by create().
|
protected |
Setup the toolbar.
Definition at line 570 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 539 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 126 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 213 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 235 of file class.ilObjStudyProgrammeTreeGUI.php.
References $DIC, $id, $tree, ilContainerSorting\_getInstance(), ilObject\_lookupObjectId(), array, and ilObjectFactoryWrapper\singleton().
Referenced by saveTreeOrder().
|
protected |
Display the tree view.
Definition at line 186 of file class.ilObjStudyProgrammeTreeGUI.php.
References $output, and initAsyncUIElements().
|
protected |
Definition at line 35 of file class.ilObjStudyProgrammeTreeGUI.php.
|
protected |
Definition at line 81 of file class.ilObjStudyProgrammeTreeGUI.php.
ilObjStudyProgrammeTreeGUI::$ctrl |
Definition at line 25 of file class.ilObjStudyProgrammeTreeGUI.php.
ilObjStudyProgrammeTreeGUI::$ilias |
Definition at line 54 of file class.ilObjStudyProgrammeTreeGUI.php.
Referenced by __construct().
ilObjStudyProgrammeTreeGUI::$lng |
Definition at line 59 of file class.ilObjStudyProgrammeTreeGUI.php.
Referenced by __construct().
|
protected |
Definition at line 44 of file class.ilObjStudyProgrammeTreeGUI.php.
|
protected |
Definition at line 49 of file class.ilObjStudyProgrammeTreeGUI.php.
|
protected |
Definition at line 76 of file class.ilObjStudyProgrammeTreeGUI.php.
ilObjStudyProgrammeTreeGUI::$object |
Definition at line 40 of file class.ilObjStudyProgrammeTreeGUI.php.
|
protected |
Definition at line 65 of file class.ilObjStudyProgrammeTreeGUI.php.
Referenced by checkAccess(), and checkAccessOrFail().
ilObjStudyProgrammeTreeGUI::$toolbar |
Definition at line 86 of file class.ilObjStudyProgrammeTreeGUI.php.
ilObjStudyProgrammeTreeGUI::$tpl |
Definition at line 30 of file class.ilObjStudyProgrammeTreeGUI.php.
Referenced by __construct().
|
protected |
Definition at line 70 of file class.ilObjStudyProgrammeTreeGUI.php.
Referenced by __construct(), and storeTreeOrder().