|
ILIAS
release_8 Revision v8.24
|
This class represents a hierarchical form. More...
Inheritance diagram for ilHierarchyFormGUI:
Collaboration diagram for ilHierarchyFormGUI:Public Member Functions | |
| __construct () | |
| setParentCommand (object $a_parent_obj, string $a_parent_cmd) | |
| getParentObject () | |
| getParentCommand () | |
| setId (string $a_id) | |
| getId () | |
| setTree (ilTree $a_tree) | |
| getTree () | |
| setCurrentTopNodeId (int $a_currenttopnodeid) | |
| getCurrentTopNodeId () | |
| setTitle (string $a_title) | |
| getTitle () | |
| setIcon (string $a_icon) | |
| getIcon () | |
| setCheckboxName (string $a_checkboxname) | |
| getCheckboxName () | |
| setDragIcon (string $a_dragicon) | |
| getDragIcon () | |
| setMaxDepth (int $a_maxdepth) | |
| getMaxDepth () | |
| setExplorerUpdater (string $a_exp_frame, string $a_exp_id, string $a_exp_target_script) | |
| setTriggeredUpdateCommand (string $a_triggered_update_command) | |
| addHelpItem (string $a_text, string $a_image="") | |
| getHelpItems () | |
| makeDragTarget (string $a_id, string $a_group, bool $a_first_child_drop_area=false, bool $a_as_subitem=false, string $a_diss_text="") | |
| makeDragContent (string $a_id, string $a_group) | |
| addMultiCommand (string $a_txt, string $a_cmd) | |
| addCommand (string $a_txt, string $a_cmd) | |
| setHighlightedNodes (array $a_val) | |
| getHighlightedNodes () | |
| setFocusId (string $a_val) | |
| getFocusId () | |
| setExpandVariable (string $a_val) | |
| getExpandVariable () | |
| setExpanded (array $a_val) | |
| getExpanded () | |
| updateExpanded () | |
| setTypeWhiteList (array $a_val) | |
| getTypeWhiteList () | |
| getChilds (?int $a_node_id=null) | |
| Get all childs of current node. More... | |
| getContent () | |
| getLegend () | |
| getLevelHTML (array $a_par_node, int $a_depth, array &$a_childs) | |
| renderChild (ilTemplate $a_tpl, array $a_child, int $a_depth, ?array $next_sibling=null) | |
| Render a single child (including grandchilds) More... | |
| getChildIcon (array $a_item) | |
| getChildIconAlt (array $a_item) | |
| getChildCommands (array $a_item) | |
| getChildTitle (array $a_child) | |
| getChildInfo (array $a_child) | |
| getMenuItems (array $a_node, int $a_depth, bool $a_first_child=false, ?array $a_next_sibling=null, ?array $a_childs=null) | |
| Get menu items for drop area of node. More... | |
| nodeAllowsChilds (array $a_node) | |
| Checks, whether current nodes allows childs at all. More... | |
| manageDragAndDrop (array $a_node, int $a_depth, bool $a_first_child=false, ?array $a_next_sibling=null, ?array $a_childs=null) | |
| Makes nodes drag and drop content and targets. More... | |
| getHTML () | |
Public Member Functions inherited from ilFormGUI | |
| setFormAction (string $a_formaction) | |
| getFormAction () | |
| setTarget (string $a_target) | |
| getTarget () | |
| setMultipart (bool $a_multipart) | |
| getMultipart () | |
| setId (string $a_id) | |
| getId () | |
| setName (string $a_name) | |
| getName () | |
| setKeepOpen (bool $a_keepopen) | |
| getKeepOpen () | |
| setOpenTag (bool $a_open) | |
| getOpenTag () | |
| setCloseTag (bool $a_val) | |
| getCloseTag () | |
| setPreventDoubleSubmission (bool $a_val) | |
| getPreventDoubleSubmission () | |
| getHTML () | |
| getContent () | |
Static Public Member Functions | |
| static | getPostMulti () |
| Get multi number of _POST input. More... | |
| static | getPostNodeId () |
| Get node ID of _POST input. More... | |
| static | getPostFirstChild () |
| Should node be inserted as first child of target node (true) or as successor (false) More... | |
| static | getPostFields () |
Protected Member Functions | |
| str ($key) | |
Static Protected Member Functions | |
| static | _str ($key) |
Protected Attributes | |
| ilGlobalTemplateInterface | $main_tpl |
| string | $exp_target_script = "" |
| string | $icon = "" |
| string | $exp_id = "" |
| ilLanguage | $lng |
| ilCtrl | $ctrl |
| string | $expand_variable = "" |
| array | $white_list = null |
| array | $highlighted_nodes = [] |
| string | $focus_id = "" |
| string | $exp_frame = "" |
| string | $triggered_update_command = "" |
| array | $drag_target = [] |
| array | $drag_content = [] |
| object | $parent_obj |
| string | $parent_cmd = "" |
| ilTree | $tree |
| int | $currenttopnodeid = 0 |
| string | $title = "" |
| string | $checkboxname = "" |
| string | $dragicon = "" |
| int | $maxdepth = 0 |
| array | $help_items = [] |
| array | $diss_menues = [] |
| array | $multi_commands = [] |
| array | $commands = [] |
| array | $expanded = [] |
| HTTP Services | $http |
| Refinery Factory | $refinery |
Protected Attributes inherited from ilFormGUI | |
| string | $formaction = "" |
| bool | $multipart = false |
| bool | $keepopen = false |
| bool | $opentag = true |
| string | $id = '' |
| string | $name = '' |
| string | $target = '' |
| bool | $prevent_double_submission = false |
This class represents a hierarchical form.
These forms are used for quick editing, where each node is represented by it's title.
Definition at line 30 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::__construct | ( | ) |
Definition at line 63 of file class.ilHierarchyFormGUI.php.
References $DIC, $lng, ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ilYuiUtil\initDragDrop(), ILIAS\Repository\lng(), ilLanguage\loadLanguageModule(), ILIAS\Repository\refinery(), and setCheckboxName().
Here is the call graph for this function:
|
staticprotected |
Definition at line 312 of file class.ilHierarchyFormGUI.php.
References $DIC, ILIAS\LTI\ToolProvider\$key, and ilUtil\stripSlashes().
Here is the call graph for this function:| ilHierarchyFormGUI::addCommand | ( | string | $a_txt, |
| string | $a_cmd | ||
| ) |
Definition at line 259 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::addHelpItem | ( | string | $a_text, |
| string | $a_image = "" |
||
| ) |
Definition at line 206 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::addMultiCommand | ( | string | $a_txt, |
| string | $a_cmd | ||
| ) |
Definition at line 252 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::getCheckboxName | ( | ) |
Definition at line 165 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::getChildCommands | ( | array | $a_item | ) |
Reimplemented in ilChapterHierarchyFormGUI.
Definition at line 871 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::getChildIcon | ( | array | $a_item | ) |
Reimplemented in ilChapterHierarchyFormGUI.
Definition at line 859 of file class.ilHierarchyFormGUI.php.
References ilUtil\getImagePath().
Here is the call graph for this function:| ilHierarchyFormGUI::getChildIconAlt | ( | array | $a_item | ) |
Reimplemented in ilChapterHierarchyFormGUI.
Definition at line 864 of file class.ilHierarchyFormGUI.php.
References $lng.
| ilHierarchyFormGUI::getChildInfo | ( | array | $a_child | ) |
Reimplemented in ilChapterHierarchyFormGUI.
Definition at line 881 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::getChilds | ( | ?int | $a_node_id = null | ) |
Get all childs of current node.
Standard implementation uses tree object.
Definition at line 382 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::getChildTitle | ( | array | $a_child | ) |
Reimplemented in ilChapterHierarchyFormGUI.
Definition at line 876 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::getContent | ( | ) |
Reimplemented from ilFormGUI.
Definition at line 403 of file class.ilHierarchyFormGUI.php.
References $lng, and ilUtil\getImagePath().
Here is the call graph for this function:| ilHierarchyFormGUI::getCurrentTopNodeId | ( | ) |
Definition at line 135 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::getDragIcon | ( | ) |
Definition at line 175 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::getExpanded | ( | ) |
Definition at line 302 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::getExpandVariable | ( | ) |
Definition at line 292 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::getFocusId | ( | ) |
Definition at line 282 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::getHelpItems | ( | ) |
Definition at line 214 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::getHighlightedNodes | ( | ) |
Definition at line 272 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::getHTML | ( | ) |
Reimplemented from ilFormGUI.
Definition at line 955 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::getIcon | ( | ) |
Definition at line 155 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::getId | ( | ) |
Reimplemented from ilFormGUI.
Definition at line 115 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::getLegend | ( | ) |
Definition at line 556 of file class.ilHierarchyFormGUI.php.
References $lng, ilGlyphGUI\ADD, ilGlyphGUI\DRAG, and ilGlyphGUI\get().
Here is the call graph for this function:| ilHierarchyFormGUI::getLevelHTML | ( | array | $a_par_node, |
| int | $a_depth, | ||
| array & | $a_childs | ||
| ) |
Definition at line 597 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::getMaxDepth | ( | ) |
Definition at line 185 of file class.ilHierarchyFormGUI.php.
Referenced by ilChapterHierarchyFormGUI\getMenuItems(), and ilChapterHierarchyFormGUI\manageDragAndDrop().
Here is the caller graph for this function:| ilHierarchyFormGUI::getMenuItems | ( | array | $a_node, |
| int | $a_depth, | ||
| bool | $a_first_child = false, |
||
| ?array | $a_next_sibling = null, |
||
| ?array | $a_childs = null |
||
| ) |
Get menu items for drop area of node.
This function will be most likely overwritten by sub class
| array | $a_node | node array ("title", "node_id", "type") |
| bool | $a_first_child | if false, the menu of the drop area right after the node (same level) is set if true, the menu of the drop area before the first child (if nodes are allowed) of the node is set |
Reimplemented in ilChapterHierarchyFormGUI.
Definition at line 896 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::getParentCommand | ( | ) |
Definition at line 102 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::getParentObject | ( | ) |
Definition at line 97 of file class.ilHierarchyFormGUI.php.
|
static |
Definition at line 960 of file class.ilHierarchyFormGUI.php.
|
static |
Should node be inserted as first child of target node (true) or as successor (false)
Definition at line 950 of file class.ilHierarchyFormGUI.php.
Referenced by ilObjContentObjectGUI\insertChapter(), ilObjContentObjectGUI\insertChapterClip(), ilStructureObjectGUI\insertPage(), ilStructureObjectGUI\insertPageClip(), and ilStructureObjectGUI\insertTemplate().
Here is the caller graph for this function:
|
static |
Get multi number of _POST input.
Definition at line 934 of file class.ilHierarchyFormGUI.php.
Referenced by ilObjContentObjectGUI\insertChapter(), ilStructureObjectGUI\insertPage(), and ilStructureObjectGUI\insertTemplate().
Here is the caller graph for this function:
|
static |
Get node ID of _POST input.
Definition at line 942 of file class.ilHierarchyFormGUI.php.
Referenced by ilObjContentObjectGUI\insertChapter(), ilObjContentObjectGUI\insertChapterClip(), ilStructureObjectGUI\insertPage(), ilStructureObjectGUI\insertPageClip(), and ilStructureObjectGUI\insertTemplate().
Here is the caller graph for this function:| ilHierarchyFormGUI::getTitle | ( | ) |
Definition at line 145 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::getTree | ( | ) |
Definition at line 125 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::getTypeWhiteList | ( | ) |
Definition at line 373 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::makeDragContent | ( | string | $a_id, |
| string | $a_group | ||
| ) |
Definition at line 242 of file class.ilHierarchyFormGUI.php.
Referenced by ilChapterHierarchyFormGUI\manageDragAndDrop().
Here is the caller graph for this function:| ilHierarchyFormGUI::makeDragTarget | ( | string | $a_id, |
| string | $a_group, | ||
| bool | $a_first_child_drop_area = false, |
||
| bool | $a_as_subitem = false, |
||
| string | $a_diss_text = "" |
||
| ) |
Definition at line 220 of file class.ilHierarchyFormGUI.php.
Referenced by ilChapterHierarchyFormGUI\manageDragAndDrop().
Here is the caller graph for this function:| ilHierarchyFormGUI::manageDragAndDrop | ( | array | $a_node, |
| int | $a_depth, | ||
| bool | $a_first_child = false, |
||
| ?array | $a_next_sibling = null, |
||
| ?array | $a_childs = null |
||
| ) |
Makes nodes drag and drop content and targets.
Must be overwritten to support drag and drop.
| array | $a_node | node array |
Reimplemented in ilChapterHierarchyFormGUI.
Definition at line 920 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::nodeAllowsChilds | ( | array | $a_node | ) |
Checks, whether current nodes allows childs at all.
Should be overwritten.
Reimplemented in ilChapterHierarchyFormGUI.
Definition at line 910 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::renderChild | ( | ilTemplate | $a_tpl, |
| array | $a_child, | ||
| int | $a_depth, | ||
| ?array | $next_sibling = null |
||
| ) |
Render a single child (including grandchilds)
Definition at line 694 of file class.ilHierarchyFormGUI.php.
References $i, ilUtil\getImagePath(), ilTemplate\parseCurrentBlock(), ilLegacyFormElementsUtil\prepareFormOutput(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().
Here is the call graph for this function:| ilHierarchyFormGUI::setCheckboxName | ( | string | $a_checkboxname | ) |
Definition at line 160 of file class.ilHierarchyFormGUI.php.
Referenced by __construct(), and ilChapterHierarchyFormGUI\__construct().
Here is the caller graph for this function:| ilHierarchyFormGUI::setCurrentTopNodeId | ( | int | $a_currenttopnodeid | ) |
Definition at line 130 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::setDragIcon | ( | string | $a_dragicon | ) |
Definition at line 170 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::setExpanded | ( | array | $a_val | ) |
Definition at line 297 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::setExpandVariable | ( | string | $a_val | ) |
Definition at line 287 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::setExplorerUpdater | ( | string | $a_exp_frame, |
| string | $a_exp_id, | ||
| string | $a_exp_target_script | ||
| ) |
Definition at line 190 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::setFocusId | ( | string | $a_val | ) |
Definition at line 277 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::setHighlightedNodes | ( | array | $a_val | ) |
Definition at line 266 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::setIcon | ( | string | $a_icon | ) |
Definition at line 150 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::setId | ( | string | $a_id | ) |
| ilException |
Reimplemented from ilFormGUI.
Definition at line 110 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::setMaxDepth | ( | int | $a_maxdepth | ) |
Definition at line 180 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::setParentCommand | ( | object | $a_parent_obj, |
| string | $a_parent_cmd | ||
| ) |
Definition at line 89 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::setTitle | ( | string | $a_title | ) |
Definition at line 140 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::setTree | ( | ilTree | $a_tree | ) |
Definition at line 120 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::setTriggeredUpdateCommand | ( | string | $a_triggered_update_command | ) |
Definition at line 200 of file class.ilHierarchyFormGUI.php.
| ilHierarchyFormGUI::setTypeWhiteList | ( | array | $a_val | ) |
Definition at line 368 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 307 of file class.ilHierarchyFormGUI.php.
References ILIAS\LTI\ToolProvider\$key.
| ilHierarchyFormGUI::updateExpanded | ( | ) |
Definition at line 332 of file class.ilHierarchyFormGUI.php.
References ILIAS\LTI\ToolProvider\$key, ilSession\get(), ilSession\set(), and ILIAS\Repository\str().
Here is the call graph for this function:
|
protected |
Definition at line 51 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 57 of file class.ilHierarchyFormGUI.php.
Referenced by ilChapterHierarchyFormGUI\getChildCommands().
|
protected |
Definition at line 37 of file class.ilHierarchyFormGUI.php.
Referenced by ilChapterHierarchyFormGUI\getChildCommands().
|
protected |
Definition at line 49 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 55 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 45 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 44 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 52 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 42 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 35 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 33 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 38 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 58 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 41 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 54 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 40 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 59 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 34 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 36 of file class.ilHierarchyFormGUI.php.
Referenced by __construct(), ilChapterHierarchyFormGUI\getChildCommands(), ilChapterHierarchyFormGUI\getChildIconAlt(), ilChapterHierarchyFormGUI\getMenuItems(), and ilChapterHierarchyFormGUI\manageDragAndDrop().
|
protected |
Definition at line 32 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 53 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 56 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 47 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 46 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 60 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 50 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 48 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 43 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 39 of file class.ilHierarchyFormGUI.php.