ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Render add new item selector. More...
Public Member Functions | |
__construct ($a_parent_ref_id) | |
Constructor. More... | |
setMode ($a_mode) | |
setDisabledObjectTypes (array $a_types) | |
Set object types which may not be created. More... | |
setAfterCreationCallback ($a_ref_id) | |
Set after creation callback. More... | |
setCreationUrl ($a_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 | |
$mode | |
$parent_ref_id | |
$disabled_object_types | |
$sub_objects | |
$url_creation_callback | |
$url_creation | |
Render add new item selector.
Definition at line 13 of file class.ilObjectAddNewItemGUI.php.
ilObjectAddNewItemGUI::__construct | ( | $a_parent_ref_id | ) |
Constructor.
int | $a_parent_ref_id |
Definition at line 28 of file class.ilObjectAddNewItemGUI.php.
References $lng, and ilObjectDefinition\MODE_REPOSITORY.
|
protected |
Get rendered html of sub object list.
Definition at line 274 of file class.ilObjectAddNewItemGUI.php.
References $ilCtrl, $path, $url, $url_creation, ilObject\_getIcon(), ilHelp\getObjCreationTooltipText(), ilUtil\img(), and ilObjectDefinition\MODE_WORKSPACE.
Referenced by render().
|
protected |
Parse creatable sub objects for personal workspace.
Grouping is not supported here, order is alphabetical (!)
Definition at line 81 of file class.ilObjectAddNewItemGUI.php.
References $ilSetting, $lng, $sub_objects, array, ilObjectDefinition\MODE_WORKSPACE, and ilUtil\sortArray().
Referenced by render().
|
protected |
Parse creatable sub objects for repository incl.
grouping
Definition at line 122 of file class.ilObjectAddNewItemGUI.php.
References $lng, $sub_objects, $title, ilObject\_lookupType(), array, ilObjRepositorySettings\getDefaultNewItemGrouping(), ilObjRepositorySettings\getNewItemGroups(), ilObjRepositorySettings\getNewItemGroupSubItems(), ilObjectPlugin\lookupTxtById(), ilObjRepositorySettings\NEW_ITEM_GROUP_TYPE_GROUP, and ilUtil\sortArray().
Referenced by render().
ilObjectAddNewItemGUI::render | ( | ) |
Add new item selection to current page incl.
toolbar (trigger) and overlay
Definition at line 341 of file class.ilObjectAddNewItemGUI.php.
References $lng, $tpl, getHTML(), ilLinkButton\getInstance(), ilObjectDefinition\MODE_WORKSPACE, parsePersonalWorkspace(), parseRepository(), and ilAdvancedSelectionListGUI\STYLE_EMPH.
Referenced by ilContainerGUI\showPossibleSubObjects().
ilObjectAddNewItemGUI::setAfterCreationCallback | ( | $a_ref_id | ) |
Set after creation callback.
int | $a_ref_id |
Definition at line 59 of file class.ilObjectAddNewItemGUI.php.
ilObjectAddNewItemGUI::setCreationUrl | ( | $a_url | ) |
Set (custom) url for object creation.
string | $a_url |
Definition at line 69 of file class.ilObjectAddNewItemGUI.php.
ilObjectAddNewItemGUI::setDisabledObjectTypes | ( | array | $a_types | ) |
Set object types which may not be created.
array | $a_types |
Definition at line 49 of file class.ilObjectAddNewItemGUI.php.
ilObjectAddNewItemGUI::setMode | ( | $a_mode | ) |
Definition at line 39 of file class.ilObjectAddNewItemGUI.php.
Referenced by ilObjOrgUnitGUI\showPossibleSubObjects().
|
protected |
Definition at line 17 of file class.ilObjectAddNewItemGUI.php.
|
protected |
Definition at line 15 of file class.ilObjectAddNewItemGUI.php.
|
protected |
Definition at line 16 of file class.ilObjectAddNewItemGUI.php.
|
protected |
Definition at line 18 of file class.ilObjectAddNewItemGUI.php.
Referenced by parsePersonalWorkspace(), and parseRepository().
|
protected |
Definition at line 20 of file class.ilObjectAddNewItemGUI.php.
Referenced by getHTML().
|
protected |
Definition at line 19 of file class.ilObjectAddNewItemGUI.php.