ILIAS
Release_4_4_x_branch Revision 61816
|
Render add new item selector. More...
Public Member Functions | |
__construct ($a_parent_ref_id) | |
Constructor. | |
setMode ($a_mode) | |
setDisabledObjectTypes (array $a_types) | |
Set object types which may not be created. | |
setAfterCreationCallback ($a_ref_id) | |
Set after creation callback. | |
setCreationUrl ($a_url) | |
Set (custom) url for object creation. | |
render () | |
Add new item selection to current page incl. |
Protected Member Functions | |
parsePersonalWorkspace () | |
Parse creatable sub objects for personal workspace. | |
parseRepository () | |
Parse creatable sub objects for repository incl. | |
getHTML () | |
Get rendered html of sub object list. |
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.
|
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().
|
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().
ilObjectAddNewItemGUI::render | ( | ) |
Add new item selection to current page incl.
toolbar (trigger) and overlay
Definition at line 338 of file class.ilObjectAddNewItemGUI.php.
References $lng, $tpl, ilObjectDefinition\MODE_WORKSPACE, parsePersonalWorkspace(), and parseRepository().
Referenced by ilContainerGUI\showPossibleSubObjects().
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.
Referenced by ilObjOrgUnitGUI\showPossibleSubObjects().
|
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.