|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Render add new item selector. More...
Collaboration diagram for ilObjectAddNewItemGUI: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 12 of file class.ilObjectAddNewItemGUI.php.
| ilObjectAddNewItemGUI::__construct | ( | $a_parent_ref_id | ) |
Constructor.
| int | $a_parent_ref_id |
Definition at line 27 of file class.ilObjectAddNewItemGUI.php.
References $lng, and ilObjectDefinition\MODE_REPOSITORY.
|
protected |
Get rendered html of sub object list.
Definition at line 273 of file class.ilObjectAddNewItemGUI.php.
References $ilCtrl, $path, $url_creation, ilObject\_getIcon(), ilHelp\getObjCreationTooltipText(), ilUtil\img(), and ilObjectDefinition\MODE_WORKSPACE.
Referenced by render().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Parse creatable sub objects for personal workspace.
Grouping is not supported here, order is alphabetical (!)
Definition at line 80 of file class.ilObjectAddNewItemGUI.php.
References $ilSetting, $lng, $sub_objects, ilObjectDefinition\MODE_WORKSPACE, and ilUtil\sortArray().
Referenced by render().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Parse creatable sub objects for repository incl.
grouping
Definition at line 121 of file class.ilObjectAddNewItemGUI.php.
References $lng, $sub_objects, ilObject\_lookupType(), ilObjRepositorySettings\getDefaultNewItemGrouping(), ilObjRepositorySettings\getNewItemGroups(), ilObjRepositorySettings\getNewItemGroupSubItems(), ilPlugin\lookupTxt(), ilObjRepositorySettings\NEW_ITEM_GROUP_TYPE_GROUP, and ilUtil\sortArray().
Referenced by render().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectAddNewItemGUI::render | ( | ) |
Add new item selection to current page incl.
toolbar (trigger) and overlay
Definition at line 340 of file class.ilObjectAddNewItemGUI.php.
References $lng, $tpl, getHTML(), ilLinkButton\getInstance(), ilObjectDefinition\MODE_WORKSPACE, parsePersonalWorkspace(), parseRepository(), and ilAdvancedSelectionListGUI\STYLE_EMPH.
Here is the call graph for this function:| ilObjectAddNewItemGUI::setAfterCreationCallback | ( | $a_ref_id | ) |
Set after creation callback.
| int | $a_ref_id |
Definition at line 58 of file class.ilObjectAddNewItemGUI.php.
| ilObjectAddNewItemGUI::setCreationUrl | ( | $a_url | ) |
Set (custom) url for object creation.
| string | $a_url |
Definition at line 68 of file class.ilObjectAddNewItemGUI.php.
| ilObjectAddNewItemGUI::setDisabledObjectTypes | ( | array | $a_types | ) |
Set object types which may not be created.
| array | $a_types |
Definition at line 48 of file class.ilObjectAddNewItemGUI.php.
| ilObjectAddNewItemGUI::setMode | ( | $a_mode | ) |
Definition at line 38 of file class.ilObjectAddNewItemGUI.php.
|
protected |
Definition at line 16 of file class.ilObjectAddNewItemGUI.php.
|
protected |
Definition at line 14 of file class.ilObjectAddNewItemGUI.php.
|
protected |
Definition at line 15 of file class.ilObjectAddNewItemGUI.php.
|
protected |
Definition at line 17 of file class.ilObjectAddNewItemGUI.php.
Referenced by parsePersonalWorkspace(), and parseRepository().
|
protected |
Definition at line 19 of file class.ilObjectAddNewItemGUI.php.
Referenced by getHTML().
|
protected |
Definition at line 18 of file class.ilObjectAddNewItemGUI.php.