ILIAS
release_8 Revision v8.19
|
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 (int $parent_ref_id) | |
setMode (int $mode) | |
setDisabledObjectTypes (array $types) | |
Set object types which may not be created. More... | |
setAfterCreationCallback (int $ref_id) | |
Set after creation callback. More... | |
setCreationUrl (string $url) | |
Set (custom) url for object creation. More... | |
render () | |
Add new item selection to current page incl. More... | |
Protected Member Functions | |
parsePersonalWorkspace () | |
Parse creatable sub objects for personal workspace. More... | |
parseRepository () | |
Parse creatable sub objects for repository incl. More... | |
getHTML () | |
Get rendered html of sub object list. More... | |
Protected Attributes | |
ilLanguage | $lng |
ilObjectDefinition | $obj_definition |
ilSetting | $settings |
ilAccessHandler | $access |
ilCtrl | $ctrl |
ilToolbarGUI | $toolbar |
ilGlobalTemplateInterface | $tpl |
int | $parent_ref_id |
int | $mode |
array | $disabled_object_types = [] |
array | $sub_objects = [] |
int | $url_creation_callback = 0 |
string | $url_creation |
ilGroupedListGUI | $gl = null |
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 Render add new item selector
Definition at line 26 of file class.ilObjectAddNewItemGUI.php.
ilObjectAddNewItemGUI::__construct | ( | int | $parent_ref_id | ) |
Definition at line 44 of file class.ilObjectAddNewItemGUI.php.
References $DIC, $parent_ref_id, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ilObjectDefinition\MODE_REPOSITORY, ILIAS\Repository\settings(), and ILIAS\Repository\toolbar().
|
protected |
Get rendered html of sub object list.
Definition at line 259 of file class.ilObjectAddNewItemGUI.php.
References $gl, $path, $type, $url, $url_creation, $url_creation_callback, ilObject\_getIcon(), ilGroupedListGUI\addEntry(), ilGroupedListGUI\addGroupHeader(), ilGroupedListGUI\getHTML(), ilHelp\getObjCreationTooltipText(), ilUtil\img(), ilObjectDefinition\MODE_WORKSPACE, ilGroupedListGUI\nextColumn(), and ilGroupedListGUI\setAsDropDown().
Referenced by render().
|
protected |
Parse creatable sub objects for personal workspace.
Grouping is not supported here, order is alphabetical (!)
Definition at line 97 of file class.ilObjectAddNewItemGUI.php.
References $ilSetting, $lng, $obj_definition, $settings, $sub_objects, $type, ilObjectDefinition\MODE_WORKSPACE, ilArrayUtil\sortArray(), and ilLanguage\txt().
Referenced by render().
|
protected |
Parse creatable sub objects for repository incl.
grouping
Definition at line 133 of file class.ilObjectAddNewItemGUI.php.
References $access, $lng, $obj_definition, $sub_objects, $type, ilObject\_lookupType(), ilObjRepositorySettings\getDefaultNewItemGrouping(), ilObjRepositorySettings\getNewItemGroups(), ilObjRepositorySettings\getNewItemGroupSubItems(), ILIAS\Repository\int(), ilObjectPlugin\lookupTxtById(), ilObjRepositorySettings\NEW_ITEM_GROUP_TYPE_GROUP, ilArrayUtil\sortArray(), and ilLanguage\txt().
Referenced by render().
ilObjectAddNewItemGUI::render | ( | ) |
Add new item selection to current page incl.
toolbar (trigger) and overlay
Definition at line 315 of file class.ilObjectAddNewItemGUI.php.
References getHTML(), ILIAS\Repository\lng(), ilObjectDefinition\MODE_WORKSPACE, parsePersonalWorkspace(), parseRepository(), ilAdvancedSelectionListGUI\STYLE_EMPH, and ILIAS\Repository\toolbar().
Referenced by ilContainerGUI\showPossibleSubObjects(), ilObjFolderGUI\showPossibleSubObjects(), ilObjLearningSequenceGUI\showPossibleSubObjects(), and ilObjCourseGUI\showPossibleSubObjects().
ilObjectAddNewItemGUI::setAfterCreationCallback | ( | int | $ref_id | ) |
Set after creation callback.
Definition at line 79 of file class.ilObjectAddNewItemGUI.php.
References $ref_id.
ilObjectAddNewItemGUI::setCreationUrl | ( | string | $url | ) |
Set (custom) url for object creation.
Definition at line 87 of file class.ilObjectAddNewItemGUI.php.
References $url.
ilObjectAddNewItemGUI::setDisabledObjectTypes | ( | array | $types | ) |
Set object types which may not be created.
Definition at line 71 of file class.ilObjectAddNewItemGUI.php.
ilObjectAddNewItemGUI::setMode | ( | int | $mode | ) |
Definition at line 63 of file class.ilObjectAddNewItemGUI.php.
References $mode.
Referenced by ilObjTalkTemplateAdministrationGUI\showPossibleSubObjects(), and ilObjOrgUnitGUI\showPossibleSubObjects().
|
protected |
Definition at line 31 of file class.ilObjectAddNewItemGUI.php.
Referenced by parseRepository().
|
protected |
Definition at line 32 of file class.ilObjectAddNewItemGUI.php.
|
protected |
Definition at line 38 of file class.ilObjectAddNewItemGUI.php.
|
protected |
Definition at line 42 of file class.ilObjectAddNewItemGUI.php.
Referenced by getHTML().
|
protected |
Definition at line 28 of file class.ilObjectAddNewItemGUI.php.
Referenced by parsePersonalWorkspace(), and parseRepository().
|
protected |
Definition at line 37 of file class.ilObjectAddNewItemGUI.php.
Referenced by setMode().
|
protected |
Definition at line 29 of file class.ilObjectAddNewItemGUI.php.
Referenced by parsePersonalWorkspace(), and parseRepository().
|
protected |
Definition at line 36 of file class.ilObjectAddNewItemGUI.php.
Referenced by __construct().
|
protected |
Definition at line 30 of file class.ilObjectAddNewItemGUI.php.
Referenced by parsePersonalWorkspace().
|
protected |
Definition at line 39 of file class.ilObjectAddNewItemGUI.php.
Referenced by parsePersonalWorkspace(), and parseRepository().
|
protected |
Definition at line 33 of file class.ilObjectAddNewItemGUI.php.
|
protected |
Definition at line 34 of file class.ilObjectAddNewItemGUI.php.
|
protected |
Definition at line 41 of file class.ilObjectAddNewItemGUI.php.
Referenced by getHTML().
|
protected |
Definition at line 40 of file class.ilObjectAddNewItemGUI.php.
Referenced by getHTML().