|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Class ilObjStudyProgrammeTreeGUI Generates the manage view for ilTrainingProgramme-Repository objects. More...
Collaboration diagram for ilObjStudyProgrammeTreeGUI:Public Member Functions | |
| __construct (protected ilGlobalTemplateInterface $tpl, protected ilCtrl $ctrl, protected ilAccess $access, protected ilToolbarGUI $toolbar, protected ilLanguage $lng, protected ilComponentLogger $log, protected ILIAS $ilias, protected ilSetting $ilSetting, protected ilTree $ilTree, protected ilRbacAdmin $rbacadmin, protected ILIAS\HTTP\Wrapper\WrapperFactory $http_wrapper, protected ILIAS\Refinery\Factory $refinery, protected ILIAS\UI\Factory $ui_factory) | |
| setRefId (int $ref_id) | |
| executeCommand () | |
| Execute GUI-commands If there is a async request the response is sent as a json string. More... | |
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... | |
| createNewLeaf () | |
| Creates a new leaf Currently only course references can be created. More... | |
| getContainerSelectionExplorer (bool $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 to 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 (string $permission, int $ref_id=null) | |
| Checks permission of current tree or certain child of it. More... | |
| checkAccessOrFail (string $permission, int $ref_id=null) | |
| Checks permission of a object and throws an exception if they are not granted. More... | |
Protected Attributes | |
| string | $modal_id |
| CSS-ID of the modal windows. More... | |
| ilAsyncOutputHandler | $async_output_handler |
| int | $ref_id |
| Ref-ID of the object. More... | |
| ilObjStudyProgrammeTreeExplorerGUI | $tree |
| ilObjStudyProgramme | $object |
Class ilObjStudyProgrammeTreeGUI Generates the manage view for ilTrainingProgramme-Repository objects.
Handles all the async requests.
Definition at line 28 of file class.ilObjStudyProgrammeTreeGUI.php.
| ilObjStudyProgrammeTreeGUI::__construct | ( | protected ilGlobalTemplateInterface | $tpl, |
| protected ilCtrl | $ctrl, | ||
| protected ilAccess | $access, | ||
| protected ilToolbarGUI | $toolbar, | ||
| protected ilLanguage | $lng, | ||
| protected ilComponentLogger | $log, | ||
| protected ILIAS | $ilias, | ||
| protected ilSetting | $ilSetting, | ||
| protected ilTree | $ilTree, | ||
| protected ilRbacAdmin | $rbacadmin, | ||
| protected ILIAS\HTTP\Wrapper\WrapperFactory | $http_wrapper, | ||
| protected ILIAS\Refinery\Factory | $refinery, | ||
| protected ILIAS\UI\Factory | $ui_factory | ||
| ) |
Definition at line 43 of file class.ilObjStudyProgrammeTreeGUI.php.
References ILIAS\Repository\lng().
Here is the call graph for this function:
|
protected |
Cancel operation.
Definition at line 140 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 498 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.
Definition at line 555 of file class.ilObjStudyProgrammeTreeGUI.php.
References $ref_id, and ILIAS\Repository\access().
Referenced by checkAccessOrFail(), and confirmedDelete().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Checks permission of a object and throws an exception if they are not granted.
| ilException |
Definition at line 568 of file class.ilObjStudyProgrammeTreeGUI.php.
References 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 426 of file class.ilObjStudyProgrammeTreeGUI.php.
References $id, checkAccess(), checkAccessOrFail(), ilRepUtil\deleteObjects(), ilAsyncOutputHandler\encodeAsyncResponse(), ilObjStudyProgramme\getAllChildren(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), 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 322 of file class.ilObjStudyProgrammeTreeGUI.php.
References checkAccessOrFail(), ilAccordionGUI\FIRST_OPEN, getContainerSelectionExplorer(), getCreationForm(), ilUtil\getSystemMessageHTML(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), 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 232 of file class.ilObjStudyProgrammeTreeGUI.php.
References ilObject\_lookupObjectId(), checkAccessOrFail(), ilAsyncOutputHandler\encodeAsyncResponse(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ilContainerReference\TITLE_TYPE_REUSE.
Here is the call graph for this function:
|
protected |
Show to delete confirmation dialog for objects in the tree.
| ilException |
Definition at line 374 of file class.ilObjStudyProgrammeTreeGUI.php.
References ilObject\_getIcon(), ilObject\_lookupObjectId(), ilObject\_lookupType(), checkAccessOrFail(), ILIAS\Repository\ctrl(), ilObjectFactory\getClassByType(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
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 88 of file class.ilObjStudyProgrammeTreeGUI.php.
References ILIAS\Repository\ctrl(), exit, getToolbar(), ilAsyncOutputHandler\handleAsyncOutput(), and initTree().
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 271 of file class.ilObjStudyProgrammeTreeGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\refinery(), ROOT_FOLDER_ID, and ilExplorer\setId().
Referenced by create().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Returns the async creation form for StudyProgrammes.
Definition at line 304 of file class.ilObjStudyProgrammeTreeGUI.php.
References ILIAS\Repository\ctrl().
Referenced by create().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Setup the toolbar.
Definition at line 541 of file class.ilObjStudyProgrammeTreeGUI.php.
References $id, ILIAS\Repository\lng(), ILIAS\Repository\toolbar(), and ILIAS\UI\Implementation\Component\withOnLoadCode().
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 507 of file class.ilObjStudyProgrammeTreeGUI.php.
References ilAsyncContainerSelectionExplorer\addJavascript(), ilAsyncPropertyFormGUI\addJavaScript(), ilAccordionGUI\addJavaScript(), ILIAS\Repository\ctrl(), ilModalGUI\getInstance(), ilAsyncContainerSelectionExplorer\initJs(), ILIAS\Repository\refinery(), 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 72 of file class.ilObjStudyProgrammeTreeGUI.php.
References ILIAS\Repository\ctrl().
Referenced by executeCommand().
Here is the call graph for this function:
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 151 of file class.ilObjStudyProgrammeTreeGUI.php.
References $id, $ref_id, ilContainerSorting\_getInstance(), ilObject\_lookupObjectId(), checkAccessOrFail(), ilAsyncOutputHandler\encodeAsyncResponse(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ilObjectFactoryWrapper\singleton(), and ilUtil\stripSlashes().
Here is the call graph for this function:| ilObjStudyProgrammeTreeGUI::setRefId | ( | int | $ref_id | ) |
Definition at line 63 of file class.ilObjStudyProgrammeTreeGUI.php.
References $ref_id.
|
protected |
Display the tree view.
Definition at line 129 of file class.ilObjStudyProgrammeTreeGUI.php.
References initAsyncUIElements().
Here is the call graph for this function:
|
protected |
Definition at line 34 of file class.ilObjStudyProgrammeTreeGUI.php.
|
protected |
CSS-ID of the modal windows.
Definition at line 33 of file class.ilObjStudyProgrammeTreeGUI.php.
|
protected |
Definition at line 41 of file class.ilObjStudyProgrammeTreeGUI.php.
|
protected |
Ref-ID of the object.
Definition at line 39 of file class.ilObjStudyProgrammeTreeGUI.php.
Referenced by checkAccess(), saveTreeOrder(), and setRefId().
|
protected |
Definition at line 40 of file class.ilObjStudyProgrammeTreeGUI.php.