ILIAS
release_8 Revision v8.19
|
This class represents a hierarchical form. More...
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 () | |
![]() | |
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 |
![]() | |
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, ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ilYuiUtil\initDragDrop(), ILIAS\Repository\lng(), ilLanguage\loadLanguageModule(), ILIAS\Repository\refinery(), and setCheckboxName().
|
staticprotected |
Definition at line 312 of file class.ilHierarchyFormGUI.php.
References $DIC, ILIAS\LTI\ToolProvider\$key, and ilUtil\stripSlashes().
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.
References $checkboxname.
Referenced by renderChild().
ilHierarchyFormGUI::getChildCommands | ( | array | $a_item | ) |
Definition at line 871 of file class.ilHierarchyFormGUI.php.
Referenced by renderChild().
ilHierarchyFormGUI::getChildIcon | ( | array | $a_item | ) |
Definition at line 859 of file class.ilHierarchyFormGUI.php.
References ilUtil\getImagePath().
Referenced by renderChild().
ilHierarchyFormGUI::getChildIconAlt | ( | array | $a_item | ) |
Definition at line 864 of file class.ilHierarchyFormGUI.php.
References $lng, and ilLanguage\txt().
Referenced by renderChild().
ilHierarchyFormGUI::getChildInfo | ( | array | $a_child | ) |
Definition at line 881 of file class.ilHierarchyFormGUI.php.
Referenced by renderChild().
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.
References getCurrentTopNodeId(), and getTree().
Referenced by getLevelHTML().
ilHierarchyFormGUI::getChildTitle | ( | array | $a_child | ) |
Definition at line 876 of file class.ilHierarchyFormGUI.php.
Referenced by renderChild().
ilHierarchyFormGUI::getContent | ( | ) |
Definition at line 403 of file class.ilHierarchyFormGUI.php.
References $lng, getCurrentTopNodeId(), getExpandVariable(), ilUtil\getImagePath(), getLevelHTML(), getTitle(), getTree(), ilLanguage\txt(), and updateExpanded().
ilHierarchyFormGUI::getCurrentTopNodeId | ( | ) |
Definition at line 135 of file class.ilHierarchyFormGUI.php.
References $currenttopnodeid.
Referenced by getChilds(), and getContent().
ilHierarchyFormGUI::getDragIcon | ( | ) |
Definition at line 175 of file class.ilHierarchyFormGUI.php.
References $dragicon.
Referenced by getLegend().
ilHierarchyFormGUI::getExpanded | ( | ) |
Definition at line 302 of file class.ilHierarchyFormGUI.php.
References $expanded.
Referenced by renderChild().
ilHierarchyFormGUI::getExpandVariable | ( | ) |
Definition at line 292 of file class.ilHierarchyFormGUI.php.
References $expand_variable.
Referenced by getContent(), renderChild(), and updateExpanded().
ilHierarchyFormGUI::getFocusId | ( | ) |
Definition at line 282 of file class.ilHierarchyFormGUI.php.
References $focus_id.
Referenced by renderChild().
ilHierarchyFormGUI::getHelpItems | ( | ) |
Definition at line 214 of file class.ilHierarchyFormGUI.php.
References $help_items.
Referenced by getLegend().
ilHierarchyFormGUI::getHighlightedNodes | ( | ) |
Definition at line 272 of file class.ilHierarchyFormGUI.php.
References $highlighted_nodes.
Referenced by renderChild().
ilHierarchyFormGUI::getHTML | ( | ) |
Definition at line 955 of file class.ilHierarchyFormGUI.php.
References getLegend().
ilHierarchyFormGUI::getIcon | ( | ) |
ilHierarchyFormGUI::getId | ( | ) |
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, ilGlyphGUI\get(), getDragIcon(), getHelpItems(), and ilLanguage\txt().
Referenced by getHTML().
ilHierarchyFormGUI::getLevelHTML | ( | array | $a_par_node, |
int | $a_depth, | ||
array & | $a_childs | ||
) |
Definition at line 597 of file class.ilHierarchyFormGUI.php.
References $i, $lng, getChilds(), ilUtil\getImagePath(), getMaxDepth(), getMenuItems(), manageDragAndDrop(), nodeAllowsChilds(), renderChild(), and ilLanguage\txt().
Referenced by getContent(), and renderChild().
ilHierarchyFormGUI::getMaxDepth | ( | ) |
Definition at line 185 of file class.ilHierarchyFormGUI.php.
References $maxdepth.
Referenced by getLevelHTML(), ilChapterHierarchyFormGUI\getMenuItems(), and ilChapterHierarchyFormGUI\manageDragAndDrop().
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 |
Definition at line 896 of file class.ilHierarchyFormGUI.php.
Referenced by getLevelHTML(), and renderChild().
ilHierarchyFormGUI::getParentCommand | ( | ) |
Definition at line 102 of file class.ilHierarchyFormGUI.php.
References $parent_cmd.
Referenced by renderChild().
ilHierarchyFormGUI::getParentObject | ( | ) |
Definition at line 97 of file class.ilHierarchyFormGUI.php.
References $parent_obj.
Referenced by renderChild().
|
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 ilStructureObjectGUI\insertChapter(), ilObjContentObjectGUI\insertChapter(), ilStructureObjectGUI\insertChapterClip(), ilObjContentObjectGUI\insertChapterClip(), ilStructureObjectGUI\insertPage(), ilStructureObjectGUI\insertPageClip(), and ilStructureObjectGUI\insertTemplate().
|
static |
Get multi number of _POST input.
Definition at line 934 of file class.ilHierarchyFormGUI.php.
Referenced by ilStructureObjectGUI\insertChapter(), ilObjContentObjectGUI\insertChapter(), ilStructureObjectGUI\insertPage(), and ilStructureObjectGUI\insertTemplate().
|
static |
Get node ID of _POST input.
Definition at line 942 of file class.ilHierarchyFormGUI.php.
Referenced by ilStructureObjectGUI\insertChapter(), ilObjContentObjectGUI\insertChapter(), ilStructureObjectGUI\insertChapterClip(), ilObjContentObjectGUI\insertChapterClip(), ilStructureObjectGUI\insertPage(), ilStructureObjectGUI\insertPageClip(), and ilStructureObjectGUI\insertTemplate().
ilHierarchyFormGUI::getTitle | ( | ) |
Definition at line 145 of file class.ilHierarchyFormGUI.php.
References $title.
Referenced by getContent().
ilHierarchyFormGUI::getTree | ( | ) |
Definition at line 125 of file class.ilHierarchyFormGUI.php.
References $tree.
Referenced by getChilds(), getContent(), and updateExpanded().
ilHierarchyFormGUI::getTypeWhiteList | ( | ) |
ilHierarchyFormGUI::makeDragContent | ( | string | $a_id, |
string | $a_group | ||
) |
Definition at line 242 of file class.ilHierarchyFormGUI.php.
Referenced by ilChapterHierarchyFormGUI\manageDragAndDrop().
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().
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 |
Definition at line 920 of file class.ilHierarchyFormGUI.php.
Referenced by getLevelHTML(), and renderChild().
ilHierarchyFormGUI::nodeAllowsChilds | ( | array | $a_node | ) |
Checks, whether current nodes allows childs at all.
Should be overwritten.
Definition at line 910 of file class.ilHierarchyFormGUI.php.
Referenced by getLevelHTML().
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 $ctrl, $i, getCheckboxName(), getChildCommands(), getChildIcon(), getChildIconAlt(), getChildInfo(), getChildTitle(), getExpanded(), getExpandVariable(), getFocusId(), getHighlightedNodes(), ilUtil\getImagePath(), getLevelHTML(), getMenuItems(), getParentCommand(), getParentObject(), manageDragAndDrop(), ilTemplate\parseCurrentBlock(), ilLegacyFormElementsUtil\prepareFormOutput(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by getLevelHTML().
ilHierarchyFormGUI::setCheckboxName | ( | string | $a_checkboxname | ) |
Definition at line 160 of file class.ilHierarchyFormGUI.php.
Referenced by ilChapterHierarchyFormGUI\__construct(), and __construct().
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.
Referenced by updateExpanded().
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 |
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.
Referenced by updateExpanded().
ilHierarchyFormGUI::updateExpanded | ( | ) |
Definition at line 332 of file class.ilHierarchyFormGUI.php.
References ILIAS\LTI\ToolProvider\$key, ilSession\get(), getExpandVariable(), getTree(), ilSession\set(), setExpanded(), and str().
Referenced by getContent().
|
protected |
Definition at line 51 of file class.ilHierarchyFormGUI.php.
Referenced by getCheckboxName().
|
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(), and renderChild().
|
protected |
Definition at line 49 of file class.ilHierarchyFormGUI.php.
Referenced by getCurrentTopNodeId().
|
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.
Referenced by getDragIcon().
|
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.
Referenced by getExpandVariable().
|
protected |
Definition at line 58 of file class.ilHierarchyFormGUI.php.
Referenced by getExpanded().
|
protected |
Definition at line 41 of file class.ilHierarchyFormGUI.php.
Referenced by getFocusId().
|
protected |
Definition at line 54 of file class.ilHierarchyFormGUI.php.
Referenced by getHelpItems().
|
protected |
Definition at line 40 of file class.ilHierarchyFormGUI.php.
Referenced by getHighlightedNodes().
|
protected |
Definition at line 59 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 34 of file class.ilHierarchyFormGUI.php.
Referenced by getIcon().
|
protected |
Definition at line 36 of file class.ilHierarchyFormGUI.php.
Referenced by ilChapterHierarchyFormGUI\getChildCommands(), ilChapterHierarchyFormGUI\getChildIconAlt(), getChildIconAlt(), getContent(), getLegend(), getLevelHTML(), 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.
Referenced by getMaxDepth().
|
protected |
Definition at line 56 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 47 of file class.ilHierarchyFormGUI.php.
Referenced by getParentCommand().
|
protected |
Definition at line 46 of file class.ilHierarchyFormGUI.php.
Referenced by getParentObject().
|
protected |
Definition at line 60 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 50 of file class.ilHierarchyFormGUI.php.
Referenced by getTitle().
|
protected |
Definition at line 48 of file class.ilHierarchyFormGUI.php.
Referenced by getTree().
|
protected |
Definition at line 43 of file class.ilHierarchyFormGUI.php.
|
protected |
Definition at line 39 of file class.ilHierarchyFormGUI.php.
Referenced by getTypeWhiteList().