ILIAS
Release_4_4_x_branch Revision 61816
|
This class represents a hierarchical form. More...
Public Member Functions | |
__construct ($a_lm_type, $a_lang="-") | |
Constructor. | |
getChildTitle ($a_child) | |
Get child title. | |
getChildInfo ($a_child) | |
Get child info. | |
getMenuItems ($a_node, $a_depth, $a_first_child=false, $a_next_sibling=null, $a_childs=null) | |
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. | |
setParentCommand ($a_parent_obj, $a_parent_cmd) | |
Set parent gui object/cmd. | |
getParentObject () | |
Get Parent object. | |
getParentCommand () | |
Get parent command. | |
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. | |
setTriggeredUpdateCommand ($a_triggered_update_command) | |
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. | |
setHighlightedNodes ($a_val) | |
Set highlighted nodes. | |
getHighlightedNodes () | |
Get highlighted nodes. | |
setFocusId ($a_val) | |
Set focus if. | |
getFocusId () | |
Get focus id. | |
setExpandVariable ($a_val) | |
Set expand variable. | |
getExpandVariable () | |
Get expand variable. | |
setExpanded ($a_val) | |
Set expanded Array. | |
getExpanded () | |
Get expanded array. | |
updateExpanded () | |
Update expand information in session. | |
setTypeWhiteList ($a_val) | |
Set type whitelist. | |
getTypeWhiteList () | |
Get type whitelist. | |
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. | |
setName ($a_name) | |
Set Name. | |
getName () | |
Get Name. | |
setKeepOpen ($a_keepopen) | |
Set Keep Form Tag Open. | |
getKeepOpen () | |
Get Keep Form Tag Open. | |
setOpenTag ($a_open) | |
Enable/Disable Open Form Tag. | |
getOpenTag () | |
Get Open Form Tag Enabled. | |
setCloseTag ($a_val) | |
Set close tag. | |
getCloseTag () | |
Get close tag. | |
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 | |
$opentag = true | |
$id | |
$name |
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 16 of file class.ilChapterHierarchyFormGUI.php.
ilChapterHierarchyFormGUI::__construct | ( | $a_lm_type, | |
$a_lang = "-" |
|||
) |
Constructor.
Definition at line 23 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 301 of file class.ilChapterHierarchyFormGUI.php.
ilChapterHierarchyFormGUI::getChildIcon | ( | $a_item | ) |
Get icon path for an item.
array | itema array |
Reimplemented from ilHierarchyFormGUI.
Definition at line 221 of file class.ilChapterHierarchyFormGUI.php.
References $img, ilPageObject\_isScheduledActivation(), ilPageObject\_lookupActive(), ilPageObject\_lookupContainsDeactivatedElements(), and ilUtil\getImagePath().
ilChapterHierarchyFormGUI::getChildIconAlt | ( | $a_item | ) |
Get icon alt text.
array | itema array |
Reimplemented from ilHierarchyFormGUI.
Definition at line 266 of file class.ilChapterHierarchyFormGUI.php.
References $lng, ilPageObject\_lookupActive(), ilPageObject\_lookupContainsDeactivatedElements(), and ilUtil\getImagePath().
ilChapterHierarchyFormGUI::getChildInfo | ( | $a_child | ) |
Get child info.
array | $a_child | node array |
Reimplemented from ilHierarchyFormGUI.
Definition at line 56 of file class.ilChapterHierarchyFormGUI.php.
ilChapterHierarchyFormGUI::getChildTitle | ( | $a_child | ) |
Get child title.
@return |
Reimplemented from ilHierarchyFormGUI.
Definition at line 40 of file class.ilChapterHierarchyFormGUI.php.
ilChapterHierarchyFormGUI::getMenuItems | ( | $a_node, | |
$a_depth, | |||
$a_first_child = false , |
|||
$a_next_sibling = null , |
|||
$a_childs = null |
|||
) |
Get menu items.
Reimplemented from ilHierarchyFormGUI.
Definition at line 68 of file class.ilChapterHierarchyFormGUI.php.
References $ilUser, $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 165 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 151 of file class.ilChapterHierarchyFormGUI.php.