ILIAS
release_8 Revision v8.23
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (ilGlobalTemplateInterface $tpl, ilCtrl $ilCtrl, ilAccess $ilAccess, ilToolbarGUI $ilToolbar, ilLanguage $lng, ilComponentLogger $ilLog, ILIAS $ilias, ilSetting $ilSetting, ilTree $ilTree, ilRbacAdmin $rbacadmin, ILIAS\HTTP\Wrapper\WrapperFactory $http_wrapper, ILIAS\Refinery\Factory $refinery) | |
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 | |
ilGlobalTemplateInterface | $tpl |
ilCtrl | $ctrl |
ilAccessHandler | $access |
ilToolbarGUI | $toolbar |
ilLanguage | $lng |
ilComponentLogger | $log |
Ilias | $ilias |
ilSetting | $ilSetting |
ilTree | $ilTree |
ilRbacAdmin | $rbacadmin |
ILIAS HTTP Wrapper WrapperFactory | $http_wrapper |
ILIAS Refinery Factory | $refinery |
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 |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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 | ( | ilGlobalTemplateInterface | $tpl, |
ilCtrl | $ilCtrl, | ||
ilAccess | $ilAccess, | ||
ilToolbarGUI | $ilToolbar, | ||
ilLanguage | $lng, | ||
ilComponentLogger | $ilLog, | ||
ILIAS | $ilias, | ||
ilSetting | $ilSetting, | ||
ilTree | $ilTree, | ||
ilRbacAdmin | $rbacadmin, | ||
ILIAS\HTTP\Wrapper\WrapperFactory | $http_wrapper, | ||
ILIAS\Refinery\Factory | $refinery | ||
) |
Definition at line 56 of file class.ilObjStudyProgrammeTreeGUI.php.
References $http_wrapper, $ilias, $ilSetting, $ilTree, $lng, $rbacadmin, $refinery, $tpl, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ilLanguage\loadLanguageModule(), ILIAS\Repository\refinery(), and ILIAS\Repository\toolbar().
|
protected |
Cancel operation.
Definition at line 166 of file class.ilObjStudyProgrammeTreeGUI.php.
References ilAsyncOutputHandler\encodeAsyncResponse().
|
protected |
Cancel deletion Return a json string for the async handling.
Definition at line 525 of file class.ilObjStudyProgrammeTreeGUI.php.
References ilAsyncOutputHandler\encodeAsyncResponse().
|
protected |
Checks permission of current tree or certain child of it.
Definition at line 589 of file class.ilObjStudyProgrammeTreeGUI.php.
References $ref_id, and ILIAS\Repository\access().
Referenced by checkAccessOrFail(), and confirmedDelete().
|
protected |
Checks permission of a object and throws an exception if they are not granted.
ilException |
Definition at line 602 of file class.ilObjStudyProgrammeTreeGUI.php.
References checkAccess().
Referenced by confirmedDelete(), create(), createNewLeaf(), delete(), and saveTreeOrder().
|
protected |
Deletes a node or a leaf in the tree.
ilException |
Definition at line 452 of file class.ilObjStudyProgrammeTreeGUI.php.
References $id, checkAccess(), checkAccessOrFail(), ilRepUtil\deleteObjects(), ilAsyncOutputHandler\encodeAsyncResponse(), ilObjStudyProgramme\getAllChildren(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), 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 348 of file class.ilObjStudyProgrammeTreeGUI.php.
References checkAccessOrFail(), ilAccordionGUI\FIRST_OPEN, getContainerSelectionExplorer(), getCreationForm(), ilUtil\getSystemMessageHTML(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ilObjectFactoryWrapper\singleton().
|
protected |
Creates a new leaf Currently only course references can be created.
ilException |
Definition at line 258 of file class.ilObjStudyProgrammeTreeGUI.php.
References $target_id, ilObject\_lookupObjectId(), checkAccessOrFail(), ilAsyncOutputHandler\encodeAsyncResponse(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ilContainerReference\TITLE_TYPE_REUSE.
|
protected |
Show to delete confirmation dialog for objects in the tree.
ilException |
Definition at line 400 of file class.ilObjStudyProgrammeTreeGUI.php.
References $type, ilObject\_getIcon(), ilObject\_lookupObjectId(), ilObject\_lookupType(), checkAccessOrFail(), ILIAS\Repository\ctrl(), ilObjectFactory\getClassByType(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
ilObjStudyProgrammeTreeGUI::executeCommand | ( | ) |
Execute GUI-commands If there is a async request the response is sent as a json string.
ilException |
Definition at line 114 of file class.ilObjStudyProgrammeTreeGUI.php.
References ILIAS\Repository\ctrl(), exit, getToolbar(), ilAsyncOutputHandler\handleAsyncOutput(), and initTree().
|
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 297 of file class.ilObjStudyProgrammeTreeGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\refinery(), ROOT_FOLDER_ID, and ilExplorer\setId().
Referenced by create().
|
protected |
Returns the async creation form for StudyProgrammes.
Definition at line 330 of file class.ilObjStudyProgrammeTreeGUI.php.
References ILIAS\Repository\ctrl().
Referenced by create().
|
protected |
Setup the toolbar.
Definition at line 568 of file class.ilObjStudyProgrammeTreeGUI.php.
References ilLinkButton\getInstance(), and ILIAS\Repository\toolbar().
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 534 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().
|
protected |
Initialize Tree Creates tree instance and set tree configuration.
Definition at line 98 of file class.ilObjStudyProgrammeTreeGUI.php.
References ILIAS\Repository\ctrl().
Referenced by executeCommand().
|
protected |
Saves tree node order Data is json encoded from the jstree component.
ilException |
Definition at line 177 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().
ilObjStudyProgrammeTreeGUI::setRefId | ( | int | $ref_id | ) |
Definition at line 89 of file class.ilObjStudyProgrammeTreeGUI.php.
References $ref_id.
|
protected |
Display the tree view.
Definition at line 155 of file class.ilObjStudyProgrammeTreeGUI.php.
References initAsyncUIElements().
|
protected |
Definition at line 32 of file class.ilObjStudyProgrammeTreeGUI.php.
|
protected |
Definition at line 47 of file class.ilObjStudyProgrammeTreeGUI.php.
|
protected |
Definition at line 31 of file class.ilObjStudyProgrammeTreeGUI.php.
|
protected |
Definition at line 40 of file class.ilObjStudyProgrammeTreeGUI.php.
Referenced by __construct().
|
protected |
Definition at line 36 of file class.ilObjStudyProgrammeTreeGUI.php.
Referenced by __construct().
|
protected |
Definition at line 37 of file class.ilObjStudyProgrammeTreeGUI.php.
Referenced by __construct().
|
protected |
Definition at line 38 of file class.ilObjStudyProgrammeTreeGUI.php.
Referenced by __construct().
|
protected |
Definition at line 34 of file class.ilObjStudyProgrammeTreeGUI.php.
Referenced by __construct().
|
protected |
Definition at line 35 of file class.ilObjStudyProgrammeTreeGUI.php.
|
protected |
CSS-ID of the modal windows.
Definition at line 46 of file class.ilObjStudyProgrammeTreeGUI.php.
|
protected |
Definition at line 54 of file class.ilObjStudyProgrammeTreeGUI.php.
|
protected |
Definition at line 39 of file class.ilObjStudyProgrammeTreeGUI.php.
Referenced by __construct().
|
protected |
Ref-ID of the object.
Definition at line 52 of file class.ilObjStudyProgrammeTreeGUI.php.
Referenced by checkAccess(), saveTreeOrder(), and setRefId().
|
protected |
Definition at line 41 of file class.ilObjStudyProgrammeTreeGUI.php.
Referenced by __construct().
|
protected |
Definition at line 33 of file class.ilObjStudyProgrammeTreeGUI.php.
|
protected |
Definition at line 30 of file class.ilObjStudyProgrammeTreeGUI.php.
Referenced by __construct().
|
protected |
Definition at line 53 of file class.ilObjStudyProgrammeTreeGUI.php.