ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 | |
$lng | |
$obj_definition | |
$settings | |
$access | |
$ctrl | |
$toolbar | |
$tpl | |
$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 63 of file class.ilObjectAddNewItemGUI.php.
References $DIC, $lng, ilObjectDefinition\MODE_REPOSITORY, and settings().
|
protected |
Get rendered html of sub object list.
Definition at line 292 of file class.ilObjectAddNewItemGUI.php.
References $ctrl, $ilCtrl, $path, $type, $url, $url_creation, $url_creation_callback, 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 125 of file class.ilObjectAddNewItemGUI.php.
References $ilSetting, $lng, $obj_definition, $settings, $sub_objects, $type, array, ilObjectDefinition\MODE_WORKSPACE, and ilUtil\sortArray().
Referenced by render().
|
protected |
Parse creatable sub objects for repository incl.
grouping
Definition at line 165 of file class.ilObjectAddNewItemGUI.php.
References $access, $lng, $obj_definition, $sub_objects, $title, $type, 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 363 of file class.ilObjectAddNewItemGUI.php.
References $lng, $toolbar, $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 103 of file class.ilObjectAddNewItemGUI.php.
ilObjectAddNewItemGUI::setCreationUrl | ( | $a_url | ) |
Set (custom) url for object creation.
string | $a_url |
Definition at line 113 of file class.ilObjectAddNewItemGUI.php.
ilObjectAddNewItemGUI::setDisabledObjectTypes | ( | array | $a_types | ) |
Set object types which may not be created.
array | $a_types |
Definition at line 93 of file class.ilObjectAddNewItemGUI.php.
ilObjectAddNewItemGUI::setMode | ( | $a_mode | ) |
Definition at line 83 of file class.ilObjectAddNewItemGUI.php.
Referenced by ilObjOrgUnitGUI\showPossibleSubObjects().
|
protected |
Definition at line 33 of file class.ilObjectAddNewItemGUI.php.
Referenced by parseRepository().
|
protected |
Definition at line 38 of file class.ilObjectAddNewItemGUI.php.
Referenced by getHTML().
|
protected |
Definition at line 52 of file class.ilObjectAddNewItemGUI.php.
|
protected |
Definition at line 18 of file class.ilObjectAddNewItemGUI.php.
Referenced by __construct(), parsePersonalWorkspace(), parseRepository(), and render().
|
protected |
Definition at line 50 of file class.ilObjectAddNewItemGUI.php.
|
protected |
Definition at line 23 of file class.ilObjectAddNewItemGUI.php.
Referenced by parsePersonalWorkspace(), and parseRepository().
|
protected |
Definition at line 51 of file class.ilObjectAddNewItemGUI.php.
|
protected |
Definition at line 28 of file class.ilObjectAddNewItemGUI.php.
Referenced by parsePersonalWorkspace().
|
protected |
Definition at line 53 of file class.ilObjectAddNewItemGUI.php.
Referenced by parsePersonalWorkspace(), and parseRepository().
|
protected |
Definition at line 43 of file class.ilObjectAddNewItemGUI.php.
Referenced by render().
|
protected |
Definition at line 48 of file class.ilObjectAddNewItemGUI.php.
Referenced by render().
|
protected |
Definition at line 55 of file class.ilObjectAddNewItemGUI.php.
Referenced by getHTML().
|
protected |
Definition at line 54 of file class.ilObjectAddNewItemGUI.php.
Referenced by getHTML().