ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
ilSCORM2004OrganizationHFormGUI Class Reference

This class allows quick editing of a chapter/sco/page hierarchy. More...

+ Inheritance diagram for ilSCORM2004OrganizationHFormGUI:
+ Collaboration diagram for ilSCORM2004OrganizationHFormGUI:

Public Member Functions

 __construct ()
 Constructor. More...
 
 getMenuItems ($a_node, $a_depth, $a_first_child=false, $a_next_sibling=null, $a_childs=null)
 Get menu items. More...
 
 nodeAllowsChilds ($a_node)
 Which nodes allow child nodes? More...
 
 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. More...
 
 getChildCommands ($a_item)
 Get item commands. More...
 
- Public Member Functions inherited from ilHierarchyFormGUI
 __construct ()
 Constructor. More...
 
 setParentCommand ($a_parent_obj, $a_parent_cmd)
 Set parent gui object/cmd. More...
 
 getParentObject ()
 Get Parent object. More...
 
 getParentCommand ()
 Get parent command. More...
 
 setId ($a_id)
 Set Id. More...
 
 getId ()
 Get Id. More...
 
 setTree ($a_tree)
 Set Tree Object. More...
 
 getTree ()
 Get Tree Object. More...
 
 setCurrentTopNodeId ($a_currenttopnodeid)
 Set Current Top Node ID. More...
 
 getCurrentTopNodeId ()
 Get Current Top Node ID. More...
 
 setTitle ($a_title)
 Set Title. More...
 
 getTitle ()
 Get Title. More...
 
 setIcon ($a_icon)
 Set Icon. More...
 
 getIcon ()
 Get Icon. More...
 
 setCheckboxName ($a_checkboxname)
 Set Checkbox Name. More...
 
 getCheckboxName ()
 Get Checkbox Name. More...
 
 setDragIcon ($a_dragicon)
 Set Drag Icon Path. More...
 
 getDragIcon ()
 Get Drag Icon Path. More...
 
 setMaxDepth ($a_maxdepth)
 Set Maximum Depth. More...
 
 getMaxDepth ()
 Get Maximum Depth. More...
 
 setExplorerUpdater ($a_exp_frame, $a_exp_id, $a_exp_target_script)
 Set Explorer Updater. More...
 
 setTriggeredUpdateCommand ($a_triggered_update_command)
 Set Explorer Updater. More...
 
 addHelpItem ($a_text, $a_image="")
 Get all help items. More...
 
 getHelpItems ()
 Get all help items. More...
 
 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. More...
 
 makeDragContent ($a_id, $a_group)
 Makes a node a drag content. More...
 
 addMultiCommand ($a_txt, $a_cmd)
 Add a multi command (for selection of items) More...
 
 addCommand ($a_txt, $a_cmd)
 Add a command. More...
 
 setHighlightedNodes ($a_val)
 Set highlighted nodes. More...
 
 getHighlightedNodes ()
 Get highlighted nodes. More...
 
 setFocusId ($a_val)
 Set focus if. More...
 
 getFocusId ()
 Get focus id. More...
 
 setExpandVariable ($a_val)
 Set expand variable. More...
 
 getExpandVariable ()
 Get expand variable. More...
 
 setExpanded ($a_val)
 Set expanded Array. More...
 
 getExpanded ()
 Get expanded array. More...
 
 updateExpanded ()
 Update expand information in session. More...
 
 setTypeWhiteList ($a_val)
 Set type whitelist. More...
 
 getTypeWhiteList ()
 Get type whitelist. More...
 
 getChilds ($a_node_id=false)
 Get all childs of current node. More...
 
 getContent ()
 Get Form Content. More...
 
 getLegend ()
 Get Legend. More...
 
 getLevelHTML ($a_par_node, $a_depth, &$a_childs)
 Get Form HTML. More...
 
 renderChild ($a_tpl, $a_child, $a_depth, $next_sibling=null)
 Render a single child (including grandchilds) More...
 
 getChildIcon ($a_item)
 Get icon path for an item. More...
 
 getChildIconAlt ($a_item)
 Get icon alt text for an item. More...
 
 getChildCommands ($a_item)
 Get item commands. More...
 
 getChildTitle ($a_child)
 Get child title. More...
 
 getChildInfo ($a_child)
 Get child info. More...
 
 getMenuItems ($a_node, $a_depth, $a_first_child=false, $a_next_sibling=null, $a_childs=null)
 Get menu items for drop area of node. More...
 
 nodeAllowsChilds ($a_node)
 Checks, whether current nodes allows childs at all. More...
 
 manageDragAndDrop ($a_node, $a_depth, $a_first_child=false, $a_next_sibling=null, $a_childs=null)
 Makes nodes drag and drop content and targets. More...
 
 getHTML ()
 Get HTML. More...
 
- Public Member Functions inherited from ilFormGUI
 ilFormGUI ()
 Constructor. More...
 
 setFormAction ($a_formaction)
 Set FormAction. More...
 
 getFormAction ()
 Get FormAction. More...
 
 setTarget ($a_target)
 Set Target. More...
 
 getTarget ()
 Get Target. More...
 
 setMultipart ($a_multipart)
 Set Enctype Multipart/Formdata true/false. More...
 
 getMultipart ()
 Get Enctype Multipart/Formdata true/false. More...
 
 setId ($a_id)
 Set Id. More...
 
 getId ()
 Get Id. More...
 
 setName ($a_name)
 Set Name. More...
 
 getName ()
 Get Name. More...
 
 setKeepOpen ($a_keepopen)
 Set Keep Form Tag Open. More...
 
 getKeepOpen ()
 Get Keep Form Tag Open. More...
 
 setOpenTag ($a_open)
 Enable/Disable Open Form Tag. More...
 
 getOpenTag ()
 Get Open Form Tag Enabled. More...
 
 setCloseTag ($a_val)
 Set close tag. More...
 
 getCloseTag ()
 Get close tag. More...
 
 setPreventDoubleSubmission ($a_val)
 Set prevent double submission. More...
 
 getPreventDoubleSubmission ()
 Get prevent double submission. More...
 
 getHTML ()
 Get HTML. More...
 
 getContent ()
 Get Content. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ilHierarchyFormGUI
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...
 
- Protected Attributes inherited from ilFormGUI
 $formaction
 
 $multipart = false
 
 $keepopen = false
 
 $opentag = true
 
 $id
 
 $name
 
 $prevent_double_submission = false
 

Detailed Description

This class allows quick editing of a chapter/sco/page hierarchy.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 13 of file class.ilSCORM2004OrganizationHFormGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilSCORM2004OrganizationHFormGUI::__construct ( )

Constructor.

Parameters

Definition at line 20 of file class.ilSCORM2004OrganizationHFormGUI.php.

References $lng, ilHierarchyFormGUI\setCheckboxName(), and ilHierarchyFormGUI\setExpandVariable().

21  {
22  global $lng;
23 
24  parent::__construct();
25  $this->setCheckboxName("id");
26  $lng->loadLanguageModule("sahs");
27  $this->setExpandVariable("scexpand");
28  }
setCheckboxName($a_checkboxname)
Set Checkbox Name.
setExpandVariable($a_val)
Set expand variable.
global $lng
Definition: privfeed.php:40
+ Here is the call graph for this function:

Member Function Documentation

◆ getChildCommands()

ilSCORM2004OrganizationHFormGUI::getChildCommands (   $a_item)

Get item commands.

Parameters
arrayitem array
Returns
array array of arrays("text", "link")

Definition at line 352 of file class.ilSCORM2004OrganizationHFormGUI.php.

References $ilCtrl, and $lng.

353  {
354  global $lng, $ilCtrl;
355 
356  $commands = array();
357 //echo "-".$a_item["type"]."-";
358  switch ($a_item["type"])
359  {
360  case "sco":
361  $ilCtrl->setParameterByClass("ilscorm2004scogui", "obj_id",
362  $a_item["node_id"]);
363  $commands[] = array("text" => $lng->txt("edit"),
364  "link" => $ilCtrl->getLinkTargetByClass(array("ilobjscorm2004learningmodulegui",
365  "ilscorm2004scogui"), "showOrganization"));
366  break;
367 
368  case "ass":
369  $ilCtrl->setParameterByClass("ilscorm2004assetgui", "obj_id",
370  $a_item["node_id"]);
371  $commands[] = array("text" => $lng->txt("edit"),
372  "link" => $ilCtrl->getLinkTargetByClass(array("ilobjscorm2004learningmodulegui",
373  "ilscorm2004assetgui"), "showOrganization"));
374  break;
375 
376  case "chap":
377  $ilCtrl->setParameterByClass("ilscorm2004chaptergui", "obj_id",
378  $a_item["node_id"]);
379  $commands[] = array("text" => $lng->txt("edit"),
380  "link" => $ilCtrl->getLinkTargetByClass(array("ilobjscorm2004learningmodulegui",
381  "ilscorm2004chaptergui"), "showOrganization"));
382  break;
383 
384  case "seqc":
385  $ilCtrl->setParameterByClass("ilscorm2004seqchaptergui", "obj_id",
386  $a_item["node_id"]);
387  $commands[] = array("text" => $lng->txt("edit"),
388  "link" => $ilCtrl->getLinkTargetByClass(array("ilobjscorm2004learningmodulegui",
389  "ilscorm2004seqchaptergui"), "showOrganization"));
390  break;
391 
392  case "page":
393  $ilCtrl->setParameterByClass("ilscorm2004pagenodegui", "obj_id",
394  $a_item["node_id"]);
395  $commands[] = array("text" => $lng->txt("edit"),
396  "link" => $ilCtrl->getLinkTargetByClass(array("ilobjscorm2004learningmodulegui",
397  "ilscorm2004pagenodegui"), "edit"));
398  break;
399  }
400 
401  return $commands;
402  }
global $ilCtrl
Definition: ilias.php:18
global $lng
Definition: privfeed.php:40

◆ getMenuItems()

ilSCORM2004OrganizationHFormGUI::getMenuItems (   $a_node,
  $a_depth,
  $a_first_child = false,
  $a_next_sibling = null,
  $a_childs = null 
)

Get menu items.

Definition at line 33 of file class.ilSCORM2004OrganizationHFormGUI.php.

References $ilUser, $lng, and ilPageLayout\activeLayouts().

34  {
35  global $lng, $ilUser;
36 
37  include_once("./Services/Style/classes/class.ilPageLayout.php");
38  $page_layouts = (count(ilPageLayout::activeLayouts()) > 0);
39  $special_pages = (count(ilPageLayout::activeLayouts(true)) > 0);
40 
41  $cmds = array();
42 //echo "+".$a_depth."-";
43  if (!$a_first_child) // drop area of node
44  {
45  // page inserts
46  if ($a_node["type"] == "page" || ($a_node["type"] == "sco" && count($a_childs) == 0) ||
47  ($a_node["type"] == "ass" && count($a_childs) == 0))
48  {
49  if ($a_node["type"] == "sco" || $a_node["type"] == "ass")
50  {
51  $cmds[] = array("text" => $lng->txt("sahs_insert_page"), "cmd" => "insertPage", "multi" => 10,
52  "as_subitem" => true);
53  if ($page_layouts > 0)
54  {
55  $cmds[] = array("text" => $lng->txt("sahs_insert_pagelayout"), "cmd" => "insertTemplateGUI", "multi" => 10,
56  "as_subitem" => true);
57  }
58  if ($special_pages > 0)
59  {
60  $cmds[] = array("text" => $lng->txt("sahs_insert_special_page"), "cmd" => "insertSpecialPage", "multi" => 10,
61  "as_subitem" => true);
62  }
63  if ($ilUser->clipboardHasObjectsOfType("page"))
64  {
65  $cmds[] = array("text" => $lng->txt("sahs_insert_page_from_clip"),
66  "cmd" => "insertPageClip", "as_subitem" => true);
67  }
68  }
69  else
70  {
71  $cmds[] = array("text" => $lng->txt("sahs_insert_page"), "cmd" => "insertPage", "multi" => 10);
72  if ($page_layouts > 0)
73  {
74  $cmds[] = array("text" => $lng->txt("sahs_insert_pagelayout"), "cmd" => "insertTemplateGUI", "multi" => 10);
75  }
76  if ($special_pages > 0)
77  {
78  $cmds[] = array("text" => $lng->txt("sahs_insert_special_page"), "cmd" => "insertSpecialPage", "multi" => 10);
79  }
80 
81  if ($ilUser->clipboardHasObjectsOfType("page"))
82  {
83  $cmds[] = array("text" => $lng->txt("sahs_insert_page_from_clip"),
84  "cmd" => "insertPageClip");
85  }
86  }
87  }
88 
89  // sco/asset inserts... in/after chapters
90  if ($a_node["type"] == "chap" || $a_node["type"] == "seqc")
91  {
92  $cmds[] = array("text" => $lng->txt("sahs_insert_ass"), "cmd" => "insertAsset", "multi" => 10);
93  if (count($a_childs) == 0)
94  {
95  $cmds[] = array("text" => $lng->txt("sahs_insert_ass_inside_chap"), "cmd" => "insertAsset", "multi" => 10,
96  "as_subitem" => true);
97  }
98  $cmds[] = array("text" => $lng->txt("sahs_insert_sco"), "cmd" => "insertSco", "multi" => 10);
99  if (count($a_childs) == 0)
100  {
101  $cmds[] = array("text" => $lng->txt("sahs_insert_sco_inside_chap"), "cmd" => "insertSco", "multi" => 10,
102  "as_subitem" => true);
103  }
104  if ($ilUser->clipboardHasObjectsOfType("sco"))
105  {
106  $cmds[] = array("text" => $lng->txt("sahs_insert_sco_from_clip"),
107  "cmd" => "insertScoClip", "as_subitem" => false);
108  if (count($a_childs) == 0)
109  {
110  $cmds[] = array("text" => $lng->txt("sahs_insert_sco_from_clip_inside_chap"),
111  "cmd" => "insertScoClip", "as_subitem" => true);
112  }
113  }
114  if ($ilUser->clipboardHasObjectsOfType("ass"))
115  {
116  $cmds[] = array("text" => $lng->txt("sahs_insert_ass_from_clip"),
117  "cmd" => "insertAssetClip", "as_subitem" => false);
118  if (count($a_childs) == 0)
119  {
120  $cmds[] = array("text" => $lng->txt("sahs_insert_ass_from_clip_inside_chap"),
121  "cmd" => "insertAssetClip", "as_subitem" => true);
122  }
123  }
124  }
125 
126  // sco/asset inserts... after sco/assets
127  if ($a_node["type"] == "sco" || $a_node["type"] == "ass")
128  {
129  // scos
130  $cmds[] = array("text" => $lng->txt("sahs_insert_sco"), "cmd" => "insertSco", "multi" => 10);
131  if ($ilUser->clipboardHasObjectsOfType("sco"))
132  {
133  $cmds[] = array("text" => $lng->txt("sahs_insert_sco_from_clip"),
134  "cmd" => "insertScoClip");
135  }
136 
137  // assets
138  $cmds[] = array("text" => $lng->txt("sahs_insert_ass"), "cmd" => "insertAsset", "multi" => 10);
139  if ($ilUser->clipboardHasObjectsOfType("ass"))
140  {
141  $cmds[] = array("text" => $lng->txt("sahs_insert_ass_from_clip"),
142  "cmd" => "insertAssetClip");
143  }
144 
145  // chapters
146  if ($a_node["depth"] == 2)
147  {
148  $cmds[] = array("text" => $lng->txt("sahs_insert_chapter"), "cmd" => "insertChapter", "multi" => 10);
149  if ($ilUser->clipboardHasObjectsOfType("chap"))
150  {
151  $cmds[] = array("text" => $lng->txt("sahs_insert_chap_from_clip"),
152  "cmd" => "insertChapterClip");
153  }
154  }
155  }
156  //if ($a_node["type"] == "chap")
157  //{
158  // $cmds[] = array("text" => $lng->txt("sahs_insert_sub_chapter"), "cmd" => "insertSubchapter", "multi" => 10);
159  //}
160 
161  // chapter inserts
162  if ($a_node["type"] == "chap" || $a_node["type"] == "seqc")
163  {
164  $cmds[] = array("text" => $lng->txt("sahs_insert_chapter"), "cmd" => "insertChapter", "multi" => 10);
165  if ($ilUser->clipboardHasObjectsOfType("chap"))
166  {
167  $cmds[] = array("text" => $lng->txt("sahs_insert_chap_from_clip"),
168  "cmd" => "insertChapterClip");
169  }
170 
171  //check if parent chaper has sequencing scenario
172  // $cmds[] = array("text" => $lng->txt("sahs_insert_scenario"), "cmd" => "insertScenarioGUI", "multi" => 0);
173 
174  }
175  }
176  else // drop area before first child of node
177  {
178  if ($a_node["type"] == "" && $a_node["node_id"] == 1) // top node
179  {
180  // scos
181  $cmds[] = array("text" => $lng->txt("sahs_insert_sco"), "cmd" => "insertSco", "multi" => 10);
182  if ($ilUser->clipboardHasObjectsOfType("sco"))
183  {
184  $cmds[] = array("text" => $lng->txt("sahs_insert_sco_from_clip"),
185  "cmd" => "insertScoClip");
186  }
187 
188  // assets
189  $cmds[] = array("text" => $lng->txt("sahs_insert_ass"), "cmd" => "insertAsset", "multi" => 10);
190  if ($ilUser->clipboardHasObjectsOfType("ass"))
191  {
192  $cmds[] = array("text" => $lng->txt("sahs_insert_ass_from_clip"),
193  "cmd" => "insertAssetClip");
194  }
195 
196  // chapters
197  $cmds[] = array("text" => $lng->txt("sahs_insert_chapter"), "cmd" => "insertChapter", "multi" => 10);
198  if ($ilUser->clipboardHasObjectsOfType("chap"))
199  {
200  $cmds[] = array("text" => $lng->txt("sahs_insert_chap_from_clip"),
201  "cmd" => "insertChapterClip");
202  }
203  // $cmds[] = array("text" => $lng->txt("sahs_insert_scenario"), "cmd" => "insertScenarioGUI", "multi" => 0);
204  }
205  if ($a_node["type"] == "chap" || $a_node["type"] == "seqc")
206  {
207  $cmds[] = array("text" => $lng->txt("sahs_insert_sco"), "cmd" => "insertSco", "multi" => 10);
208  $cmds[] = array("text" => $lng->txt("sahs_insert_ass"), "cmd" => "insertAsset", "multi" => 10);
209  if ($ilUser->clipboardHasObjectsOfType("sco"))
210  {
211  $cmds[] = array("text" => $lng->txt("sahs_insert_sco_from_clip"),
212  "cmd" => "insertScoClip");
213  }
214  if ($ilUser->clipboardHasObjectsOfType("ass"))
215  {
216  $cmds[] = array("text" => $lng->txt("sahs_insert_ass_from_clip"),
217  "cmd" => "insertAssetClip");
218  }
219  }
220  if ($a_node["type"] == "sco" || $a_node["type"] == "ass")
221  {
222  $cmds[] = array("text" => $lng->txt("sahs_insert_page"), "cmd" => "insertPage", "multi" => 10);
223  if ($page_layouts > 0)
224  {
225  $cmds[] = array("text" => $lng->txt("sahs_insert_pagelayout"), "cmd" => "insertTemplateGUI", "multi" => 10);
226  }
227  if ($special_pages > 0)
228  {
229  $cmds[] = array("text" => $lng->txt("sahs_insert_special_page"), "cmd" => "insertSpecialPage", "multi" => 10);
230  }
231 
232  if ($ilUser->clipboardHasObjectsOfType("page"))
233  {
234  $cmds[] = array("text" => $lng->txt("sahs_insert_page_from_clip"),
235  "cmd" => "insertPageClip");
236  }
237  }
238 
239 /* if ($a_childs["type"] == "")
240  {
241  $cmds[] = array("text" => "insert Chapter", "cmd" => "insertChapter", "multi" => 10);
242  }*/
243  }
244 
245  return $cmds;
246  }
global $ilUser
Definition: imgupload.php:15
global $lng
Definition: privfeed.php:40
static activeLayouts($a_special_page=false, $a_module=null)
Get active layouts.
+ Here is the call graph for this function:

◆ manageDragAndDrop()

ilSCORM2004OrganizationHFormGUI::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.

Parameters
object$a_nodenode array

Definition at line 265 of file class.ilSCORM2004OrganizationHFormGUI.php.

References $lng, ilHierarchyFormGUI\makeDragContent(), and ilHierarchyFormGUI\makeDragTarget().

266  {
267  global $lng;
268 
269  if ($a_node["type"] == "ass")
270  {
271  $this->makeDragContent($a_node["node_id"], "grp_sco");
272  }
273  else
274  {
275  $this->makeDragContent($a_node["node_id"], "grp_".$a_node["type"]);
276  }
277 
278  if (!$a_first_child_drop_area)
279  {
280  // page targets
281  if ($a_node["type"] == "page" || ($a_node["type"] == "sco" && count($a_childs) == 0)
282  || ($a_node["type"] == "ass" && count($a_childs) == 0))
283  {
284  if ($a_node["type"] == "sco" || $a_node["type"] == "ass")
285  {
286  $this->makeDragTarget($a_node["node_id"], "grp_page", $a_first_child_drop_area,
287  true, "");
288  }
289  else
290  {
291  $this->makeDragTarget($a_node["node_id"], "grp_page", $a_first_child_drop_area,
292  false, "");
293  }
294  }
295 
296  if ($a_node["type"] == "chap" && count($a_childs) == 0)
297  {
298  $this->makeDragTarget($a_node["node_id"], "grp_sco", $a_first_child_drop_area,
299  true, $lng->txt("cont_insert_into_chap"));
300  }
301 
302  // sco targets
303  if ($a_node["type"] == "sco" || $a_node["type"] == "ass" || $a_node["type"] == "chap")
304  {
305  $this->makeDragTarget($a_node["node_id"], "grp_sco", $a_first_child_drop_area,
306  false, $lng->txt("cont_insert_after_".$a_node["type"]));
307  }
308 
309  //if ($a_node["type"] != "pg")
310  //{
311  // $this->makeDragTarget($a_node["node_id"], "grp_st", $a_first_child_drop_area,
312  // true, $lng->txt("cont_insert_as_subchapter"));
313  //}
314 
315  // chapter targets // chapters
316  if ($a_node["depth"] == 2)
317  {
318  $this->makeDragTarget($a_node["node_id"], "grp_chap", $a_first_child_drop_area,
319  false, $lng->txt("sahs_insert_as_chapter"));
320 // $this->makeDragTarget($a_node["node_id"], "grp_sco", $a_first_child_drop_area,
321 // false, $lng->txt("cont_insert_after_chap"));
322  }
323  }
324  else
325  {
326  if ($a_node["type"] == "" && $a_node["node_id"] == 1) // top node
327  {
328  $this->makeDragTarget($a_node["node_id"], "grp_chap", $a_first_child_drop_area,
329  true);
330  $this->makeDragTarget($a_node["node_id"], "grp_sco", $a_first_child_drop_area,
331  true);
332  }
333  if ($a_node["type"] == "chap")
334  {
335  $this->makeDragTarget($a_node["node_id"], "grp_sco", $a_first_child_drop_area,
336  true);
337  }
338  if ($a_node["type"] == "sco" || $a_node["type"] == "ass")
339  {
340  $this->makeDragTarget($a_node["node_id"], "grp_page", $a_first_child_drop_area,
341  true);
342  }
343  }
344  }
makeDragContent($a_id, $a_group)
Makes a node a drag content.
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.
global $lng
Definition: privfeed.php:40
+ Here is the call graph for this function:

◆ nodeAllowsChilds()

ilSCORM2004OrganizationHFormGUI::nodeAllowsChilds (   $a_node)

Which nodes allow child nodes?

Definition at line 251 of file class.ilSCORM2004OrganizationHFormGUI.php.

252  {
253  if ($a_node["type"] == "pg")
254  {
255  return false;
256  }
257  return true;
258  }

The documentation for this class was generated from the following file: