ILIAS
Release_3_10_x_branch Revision 61812
|
This class represents a hierarchical form. More...
Public Member Functions | |
__construct ($a_lm_type) | |
Constructor. | |
getMenuItems ($a_node, $a_depth, $a_first_child=false, $a_next_sibling=null, $a_childs) | |
Get menu items. | |
nodeAllowsChilds ($a_node) | |
Which nodes allow child nodes? | |
manageDragAndDrop ($a_node, $a_depth, $a_first_child_drop_area=false, $a_next_sibling=null, $a_childs=null) | |
Makes nodes drag and drop content and targets. | |
getChildIcon ($a_item) | |
Get icon path for an item. | |
getChildIconAlt ($a_item) | |
Get icon alt text. | |
getChildCommands ($a_item) | |
Get item commands. | |
Public Member Functions inherited from ilHierarchyFormGUI | |
__construct () | |
Constructor. | |
setId ($a_id) | |
Set Id. | |
getId () | |
Get Id. | |
setTree ($a_tree) | |
Set Tree Object. | |
getTree () | |
Get Tree Object. | |
setCurrentTopNodeId ($a_currenttopnodeid) | |
Set Current Top Node ID. | |
getCurrentTopNodeId () | |
Get Current Top Node ID. | |
setTitle ($a_title) | |
Set Title. | |
getTitle () | |
Get Title. | |
setIcon ($a_icon) | |
Set Icon. | |
getIcon () | |
Get Icon. | |
setCheckboxName ($a_checkboxname) | |
Set Checkbox Name. | |
getCheckboxName () | |
Get Checkbox Name. | |
setDragIcon ($a_dragicon) | |
Set Drag Icon Path. | |
getDragIcon () | |
Get Drag Icon Path. | |
setMaxDepth ($a_maxdepth) | |
Set Maximum Depth. | |
getMaxDepth () | |
Get Maximum Depth. | |
setExplorerUpdater ($a_exp_frame, $a_exp_id, $a_exp_target_script) | |
Set Explorer Updater. | |
addHelpItem ($a_text, $a_image="") | |
Get all help items. | |
getHelpItems () | |
Get all help items. | |
makeDragTarget ($a_id, $a_group, $a_first_child_drop_area=false, $a_as_subitem=false, $a_diss_text="") | |
Makes a nodes (following droparea) a drag target. | |
makeDragContent ($a_id, $a_group) | |
Makes a node a drag content. | |
addMultiCommand ($a_txt, $a_cmd) | |
Add a multi command (for selection of items) | |
addCommand ($a_txt, $a_cmd) | |
Add a command. | |
getChilds ($a_node_id=false) | |
Get all childs of current node. | |
getContent () | |
Get Form Content. | |
getLevelHTML ($a_par_node, $a_depth, &$a_childs) | |
Get Form HTML. | |
renderChild ($a_tpl, $a_child, $a_depth, $next_sibling=null) | |
Render a single child (including grandchilds) | |
Public Member Functions inherited from ilFormGUI | |
ilFormGUI () | |
Constructor. | |
setFormAction ($a_formaction) | |
Set FormAction. | |
getFormAction () | |
Get FormAction. | |
setTarget ($a_target) | |
Set Target. | |
getTarget () | |
Get Target. | |
setMultipart ($a_multipart) | |
Set Enctype Multipart/Formdata true/false. | |
getMultipart () | |
Get Enctype Multipart/Formdata true/false. | |
setKeepOpen ($a_keepopen) | |
Set Keep Form Tag Open. | |
getKeepOpen () | |
Get Keep Form Tag Open. | |
getHTML () | |
Get HTML. |
Additional Inherited Members | |
Static Public Member Functions inherited from ilHierarchyFormGUI | |
static | getPostMulti () |
Get multi number of _POST input. | |
static | getPostNodeId () |
Get node ID of _POST input. | |
static | getPostFirstChild () |
Should node be inserted as first child of target node (true) or as successor (false) | |
Protected Attributes inherited from ilFormGUI | |
$formaction | |
$multipart = false | |
$keepopen = 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 34 of file class.ilChapterHierarchyFormGUI.php.
ilChapterHierarchyFormGUI::__construct | ( | $a_lm_type | ) |
Constructor.
Definition at line 41 of file class.ilChapterHierarchyFormGUI.php.
References ilHierarchyFormGUI\__construct(), and ilHierarchyFormGUI\setCheckboxName().
ilChapterHierarchyFormGUI::getChildCommands | ( | $a_item | ) |
Get item commands.
array | item array |
Reimplemented from ilHierarchyFormGUI.
Definition at line 269 of file class.ilChapterHierarchyFormGUI.php.
ilChapterHierarchyFormGUI::getChildIcon | ( | $a_item | ) |
Get icon path for an item.
array | itema array |
Reimplemented from ilHierarchyFormGUI.
Definition at line 205 of file class.ilChapterHierarchyFormGUI.php.
References ilLMObject\_lookupActive(), ilPageObject\_lookupContainsDeactivatedElements(), and ilUtil\getImagePath().
ilChapterHierarchyFormGUI::getChildIconAlt | ( | $a_item | ) |
Get icon alt text.
array | itema array |
Reimplemented from ilHierarchyFormGUI.
Definition at line 236 of file class.ilChapterHierarchyFormGUI.php.
References $lng, ilLMObject\_lookupActive(), ilPageObject\_lookupContainsDeactivatedElements(), and ilUtil\getImagePath().
ilChapterHierarchyFormGUI::getMenuItems | ( | $a_node, | |
$a_depth, | |||
$a_first_child = false , |
|||
$a_next_sibling = null , |
|||
$a_childs | |||
) |
Get menu items.
Reimplemented from ilHierarchyFormGUI.
Definition at line 52 of file class.ilChapterHierarchyFormGUI.php.
References $lng, and ilHierarchyFormGUI\getMaxDepth().
ilChapterHierarchyFormGUI::manageDragAndDrop | ( | $a_node, | |
$a_depth, | |||
$a_first_child_drop_area = false , |
|||
$a_next_sibling = null , |
|||
$a_childs = null |
|||
) |
Makes nodes drag and drop content and targets.
object | $a_node | node array |
Reimplemented from ilHierarchyFormGUI.
Definition at line 149 of file class.ilChapterHierarchyFormGUI.php.
References $lng, ilHierarchyFormGUI\getMaxDepth(), ilHierarchyFormGUI\makeDragContent(), and ilHierarchyFormGUI\makeDragTarget().
ilChapterHierarchyFormGUI::nodeAllowsChilds | ( | $a_node | ) |
Which nodes allow child nodes?
Reimplemented from ilHierarchyFormGUI.
Definition at line 135 of file class.ilChapterHierarchyFormGUI.php.