ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilStructureObject Class Reference

Class ilStructreObject. More...

+ Inheritance diagram for ilStructureObject:
+ Collaboration diagram for ilStructureObject:

Public Member Functions

 __construct (&$a_content_obj, $a_id=0)
 Constructor public. More...
 
 create ($a_upload=false)
 
 delete ($a_delete_meta_data=true)
 Delete Chapter. More...
 
 copy ($a_target_lm)
 copy chapter More...
 
 exportXML (&$a_xml_writer, $a_inst, &$expLog)
 export object to xml (see ilias_co.dtd) More...
 
 exportXMLMetaData (&$a_xml_writer)
 export structure objects meta data to xml (see ilias_co.dtd) More...
 
 modifyExportIdentifier ($a_tag, $a_param, $a_value)
 
 exportXMLPageObjects (&$a_xml_writer, $a_inst=0)
 export page objects of structure object (see ilias_co.dtd) More...
 
 exportXMLStructureObjects (&$a_xml_writer, $a_inst, &$expLog)
 export (sub)structure objects of structure object (see ilias_co.dtd) More...
 
 exportFO (&$a_xml_writer)
 export object to fo More...
 
 exportFOPageObjects (&$a_xml_writer)
 export page objects of structure object (see ilias_co.dtd) More...
 
- Public Member Functions inherited from ilLMObject
 __construct ($a_content_obj, $a_id=0)
 
 MDUpdateListener ($a_element)
 Meta data update listener. More...
 
 createMetaData ()
 create meta data entry More...
 
 updateMetaData ()
 update meta data entry More...
 
 deleteMetaData ()
 delete meta data entry More...
 
 setDataRecord ($a_record)
 this method should only be called by class ilLMObjectFactory More...
 
 read ()
 
 setTitle ($a_title)
 set title of lm object More...
 
 getTitle ()
 get title of lm object More...
 
 setDescription ($a_description)
 
 getDescription ()
 
 setType ($a_type)
 
 getType ()
 
 setLMId ($a_lm_id)
 
 getLMId ()
 
 setContentObject (&$a_content_obj)
 
getContentObject ()
 
 setId ($a_id)
 
 getId ()
 
 getImportId ()
 
 setImportId ($a_id)
 
 setLayout ($a_val)
 Set layout. More...
 
 getLayout ()
 Get layout. More...
 
 create ($a_upload=false)
 
 update ()
 update complete object More...
 
 delete ($a_delete_meta_data=true)
 delete lm object data More...
 
 existsExportID ($a_lm_id, $a_exp_id, $a_type="pg")
 Does export ID exist in lm? More...
 
 getExportIDInfo ($a_lm_id, $a_exp_id, $a_type="pg")
 Does export ID exist in lm? More...
 

Static Public Member Functions

static _getPresentationTitle ($a_st_id, $a_mode=IL_CHAPTER_TITLE, $a_include_numbers=false, $a_time_scheduled_activation=false, $a_force_content=false, $a_lm_id=0, $a_lang="-")
 get presentation title More...
 
static getChapterList ($a_lm_id)
 export (sub)structure objects of structure object (see ilias_co.dtd) More...
 
- Static Public Member Functions inherited from ilLMObject
static _lookupNID ($a_lm_id, $a_lm_obj_id, $a_type)
 lookup named identifier (ILIAS_NID) More...
 
static preloadDataByLM ($a_lm_id)
 Preload data records by lm. More...
 
static _lookupTitle ($a_obj_id)
 Lookup title. More...
 
static _lookupType ($a_obj_id, $a_lm_id=0)
 Lookup type. More...
 
static _writeTitle ($a_obj_id, $a_title)
 
static _writeImportId ($a_id, $a_import_id)
 write import id to db (static) More...
 
static _writePublicAccessStatus ($a_pages, $a_cont_obj_id)
 update public access flags in lm_data for all pages of a content object More...
 
static _isPagePublic ($a_node_id, $a_check_public_mode=false)
 
static _getIdForImportId ($a_import_id)
 get current object id for import id (static) More...
 
static _getAllObjectsForImportId ($a_import_id, $a_in_lm=0)
 Get all items for an import ID. More...
 
static _exists ($a_id)
 checks wether a lm content object with specified id exists or not More...
 
static getObjectList ($lm_id, $type="")
 static More...
 
static _deleteAllObjectData (&$a_cobj)
 delete all objects of content object (digi book / learning module) More...
 
static _lookupContObjID ($a_id)
 get learning module / digibook id for lm object More...
 
static putInTree ($a_obj, $a_parent_id="", $a_target_node_id="")
 put this object into content object tree More...
 
static getTree ($a_cont_obj_id)
 Get learningmodule tree. More...
 
static clipboardCut ($a_cont_obj_id, $a_ids)
 Copy a set of chapters/pages into the clipboard. More...
 
static clipboardCopy ($a_cont_obj_id, $a_ids)
 Copy a set of chapters/pages into the clipboard. More...
 
static pasteTree ($a_target_lm, $a_item_id, $a_parent_id, $a_target, $a_insert_time, &$a_copied_nodes, $a_as_copy=false, $a_source_lm=null)
 Paste item (tree) from clipboard to current lm. More...
 
static saveTitles ($a_lm, $a_titles, $a_lang="-")
 Save titles for lm objects. More...
 
static updateInternalLinks ($a_copied_nodes, $a_parent_type="lm")
 Update internal links, after multiple pages have been copied. More...
 
static uniqueTypesCheck ($a_items)
 Check for unique types (all pages or all chapters) More...
 
static writeLayout ($a_obj_id, $a_layout, $a_lm=null)
 Write layout setting. More...
 
static lookupLayout ($a_obj_id)
 Lookup type. More...
 
static getPagesOfChapter ($a_lm_id, $a_chap_id)
 Get pages of chapter. More...
 
static _getAllLMObjectsOfLM ($a_lm_id, $a_type="")
 Get all objects of learning module. More...
 
static saveExportId ($a_lm_id, $a_lmobj_id, $a_exp_id, $a_type="pg")
 Save export id. More...
 
static getExportId ($a_lm_id, $a_lmobj_id, $a_type="pg")
 Get export ID. More...
 
static getDuplicateExportIDs ($a_lm_id, $a_type="pg")
 Get duplicate export IDs (count export ID usages) More...
 
static _getPresentationTitle ($a_node, $a_mode=IL_PAGE_TITLE, $a_include_numbers=false, $a_time_scheduled_activation=false, $a_force_content=false, $a_lm_id=0, $a_lang="-")
 Get affective title. More...
 

Data Fields

 $is_alias
 
 $origin_id
 
 $tree
 
- Data Fields inherited from ilLMObject
 $ilias
 
 $lm_id
 
 $type
 
 $id
 
 $meta_data
 
 $data_record
 
 $content_object
 
 $title
 
 $description
 
 $active = true
 

Private Member Functions

 delete_rec (&$a_tree, $a_delete_meta_data=true)
 Delete sub tree. More...
 

Additional Inherited Members

- Static Protected Attributes inherited from ilLMObject
static $data_records = array()
 

Detailed Description

Class ilStructreObject.

Handles StructureObjects of ILIAS Learning Modules (see ILIAS DTD)

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

Definition at line 17 of file class.ilStructureObject.php.

Constructor & Destructor Documentation

◆ __construct()

ilStructureObject::__construct ( $a_content_obj,
  $a_id = 0 
)

Constructor public.

Definition at line 27 of file class.ilStructureObject.php.

References ilLMObject\setType().

28  {
29  $this->setType("st");
30  parent::__construct($a_content_obj, $a_id);
31  }
setType($a_type)
+ Here is the call graph for this function:

Member Function Documentation

◆ _getPresentationTitle()

static ilStructureObject::_getPresentationTitle (   $a_st_id,
  $a_mode = IL_CHAPTER_TITLE,
  $a_include_numbers = false,
  $a_time_scheduled_activation = false,
  $a_force_content = false,
  $a_lm_id = 0,
  $a_lang = "-" 
)
static

get presentation title

Definition at line 173 of file class.ilStructureObject.php.

References $ilDB, $languages, $query, ilLMObject\$title, ilLMObject\_lookupContObjID(), ilLMObject\_lookupTitle(), ilDBConstants\FETCHMODE_ASSOC, ilLMTree\getInstance(), and ilObjectTranslation\getInstance().

Referenced by ilLMPageObject\_getPresentationTitle(), ilLMObject\_getPresentationTitle(), ilLMTOCExplorerGUI\getNodeContent(), ilLMPresentationGUI\ilLocator(), ilLMPresentationGUI\showPrintView(), ilLMPresentationGUI\showPrintViewSelection(), and ilStructureObjectGUI\subchap().

175  {
176  global $ilDB;
177 
178  if ($a_lm_id == 0)
179  {
180  $a_lm_id = ilLMObject::_lookupContObjID($a_st_id);
181  }
182 
183  if ($a_lm_id == 0)
184  {
185  return "";
186  }
187 
188  // this is optimized when ilLMObject::preloadDataByLM is invoked (e.g. done in ilLMExplorerGUI)
189  $title = ilLMObject::_lookupTitle($a_st_id);
190 
191  // this is also optimized since ilObjectTranslation re-uses instances for one lm
192  include_once("./Services/Object/classes/class.ilObjectTranslation.php");
193  $ot = ilObjectTranslation::getInstance($a_lm_id);
194  $languages = $ot->getLanguages();
195 
196  if ($a_lang != "-" && $ot->getContentActivated() && isset($languages[$a_lang]))
197  {
198  include_once("./Modules/LearningModule/classes/class.ilLMObjTranslation.php");
199  $lmobjtrans = new ilLMObjTranslation($a_st_id, $a_lang);
200  if ($lmobjtrans->getTitle() != "")
201  {
202  $title = $lmobjtrans->getTitle();
203  }
204  }
205 
206  include_once("./Modules/LearningModule/classes/class.ilLMTree.php");
207  $tree = ilLMTree::getInstance($a_lm_id);
208 
209  if ($a_include_numbers)
210  {
211  // this is optimized, since isInTree is cached
212  if ($tree->isInTree($a_st_id))
213  {
214  // optimization needed from here
215 
216  // get chapter tree node
217  $query = "SELECT * FROM lm_tree WHERE child = ".
218  $ilDB->quote($a_st_id, "integer")." AND lm_id = ".
219  $ilDB->quote($a_lm_id, "integer");
220  $tree_set = $ilDB->query($query);
221  $tree_node = $tree_set->fetchRow(ilDBConstants::FETCHMODE_ASSOC);
222  $depth = $tree_node["depth"];
223 
224  $nr = $tree->getChildSequenceNumber($tree_node, "st")." ";
225  for ($i = $depth - 1; $i > 1; $i --)
226  {
227  // get next parent tree node
228  $query = "SELECT * FROM lm_tree WHERE child = ".
229  $ilDB->quote($tree_node["parent"], "integer")." AND lm_id = ".
230  $ilDB->quote($a_lm_id, "integer");
231  $tree_set = $ilDB->query($query);
232  $tree_node = $tree_set->fetchRow(ilDBConstants::FETCHMODE_ASSOC);
233  $seq = $tree->getChildSequenceNumber($tree_node, "st");
234 
235  $nr = $seq.".".$nr;
236  }
237  }
238  }
239 
240  return $nr.$title;
241  }
static _lookupContObjID($a_id)
get learning module / digibook id for lm object
static _lookupTitle($a_obj_id)
Lookup title.
static getInstance($a_tree_id)
Get Instance.
static getInstance($a_obj_id)
Get instance.
global $ilDB
$languages
Definition: cssgen2.php:34
Translation information on lm object.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ copy()

ilStructureObject::copy (   $a_target_lm)

copy chapter

Definition at line 83 of file class.ilStructureObject.php.

References ilLMObjTranslation\copy(), ilLMObject\getDescription(), ilLMObject\getId(), ilLMObject\getLMId(), ilLMObject\getTitle(), and ilLMObject\getType().

84  {
85  $chap = new ilStructureObject($a_target_lm);
86  $chap->setTitle($this->getTitle());
87  if ($this->getLMId() != $a_target_lm->getId())
88  {
89  $chap->setImportId("il__st_".$this->getId());
90  }
91  $chap->setLMId($a_target_lm->getId());
92  $chap->setType($this->getType());
93  $chap->setDescription($this->getDescription());
94  $chap->create(true);
95  $a_copied_nodes[$this->getId()] = $chap->getId();
96 
97  // copy meta data
98  include_once("Services/MetaData/classes/class.ilMD.php");
99  $md = new ilMD($this->getLMId(), $this->getId(), $this->getType());
100  $new_md = $md->cloneMD($a_target_lm->getId(), $chap->getId(), $this->getType());
101 
102  // copy translations
103  include_once("./Modules/LearningModule/classes/class.ilLMObjTranslation.php");
104  ilLMObjTranslation::copy($this->getId(), $chap->getId());
105 
106 
107  return $chap;
108  }
getTitle()
get title of lm object
Class ilStructreObject.
static copy($a_source_id, $a_target_id)
Copy all translations of an object.
+ Here is the call graph for this function:

◆ create()

ilStructureObject::create (   $a_upload = false)

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

34  {
35  parent::create($a_upload);
36  }

◆ delete()

ilStructureObject::delete (   $a_delete_meta_data = true)

Delete Chapter.

Definition at line 41 of file class.ilStructureObject.php.

References delete_rec(), ilLMObject\getId(), and ilHelpMapping\removeScreenIdsOfChapter().

42  {
43  // only relevant for online help authoring
44  include_once("./Services/Help/classes/class.ilHelpMapping.php");
46 
47  $this->tree = new ilTree($this->getLmId());
48  $this->tree->setTableNames('lm_tree', 'lm_data');
49  $this->tree->setTreeTablePK("lm_id");
50  $node_data = $this->tree->getNodeData($this->getId());
51  $this->delete_rec($this->tree, $a_delete_meta_data);
52  $this->tree->deleteTree($node_data);
53  }
static removeScreenIdsOfChapter($a_chap, $a_module_id=0)
Remove screen ids of chapter.
delete_rec(&$a_tree, $a_delete_meta_data=true)
Delete sub tree.
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
+ Here is the call graph for this function:

◆ delete_rec()

ilStructureObject::delete_rec ( $a_tree,
  $a_delete_meta_data = true 
)
private

Delete sub tree.

Definition at line 58 of file class.ilStructureObject.php.

References ilLMObject\getId(), and ilLMObjectFactory\getInstance().

Referenced by delete().

59  {
60  $childs = $a_tree->getChilds($this->getId());
61  foreach ($childs as $child)
62  {
63  $obj = ilLMObjectFactory::getInstance($this->content_object, $child["obj_id"], false);
64  if (is_object($obj))
65  {
66  if($obj->getType() == "st")
67  {
68  $obj->delete_rec($a_tree, $a_delete_meta_data);
69  }
70  if($obj->getType() == "pg")
71  {
72  $obj->delete($a_delete_meta_data);
73  }
74  }
75  unset($obj);
76  }
77  parent::delete($a_delete_meta_data);
78  }
static getInstance(&$a_content_obj, $a_id=0, $a_halt=true)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ exportFO()

ilStructureObject::exportFO ( $a_xml_writer)

export object to fo

Parameters
object$a_xml_writerilXmlWriter object that receives the xml data

Definition at line 316 of file class.ilStructureObject.php.

References $ilBench, array, exportFOPageObjects(), and ilLMObject\getTitle().

317  {
318  global $ilBench;
319 
320  //$expLog->write(date("[y-m-d H:i:s] ")."Structure Object ".$this->getId());
321 
322  // fo:block (complete)
323  $attrs = array();
324  $attrs["font-family"] = "Times";
325  $attrs["font-size"] = "14pt";
326  $a_xml_writer->xmlElement("fo:block", $attrs, $this->getTitle());
327 
328  // page objects
329  //$ilBench->start("ContentObjectExport", "exportStructureObject_exportPageObjects");
330  $this->exportFOPageObjects($a_xml_writer);
331  //$ilBench->stop("ContentObjectExport", "exportStructureObject_exportPageObjects");
332 
333  // structure objects
334  //$this->exportFOStructureObjects($a_xml_writer);
335 
336  }
Create styles array
The data for the language used.
exportFOPageObjects(&$a_xml_writer)
export page objects of structure object (see ilias_co.dtd)
getTitle()
get title of lm object
global $ilBench
Definition: ilias.php:18
+ Here is the call graph for this function:

◆ exportFOPageObjects()

ilStructureObject::exportFOPageObjects ( $a_xml_writer)

export page objects of structure object (see ilias_co.dtd)

Parameters
object$a_xml_writerilXmlWriter object that receives the xml data

Definition at line 344 of file class.ilStructureObject.php.

References $ilBench, ilLMObject\getContentObject(), and ilLMObject\getId().

Referenced by exportFO().

345  {
346  global $ilBench;
347 
348  $this->tree = new ilTree($this->getLmId());
349  $this->tree->setTableNames('lm_tree', 'lm_data');
350  $this->tree->setTreeTablePK("lm_id");
351 
352  $childs = $this->tree->getChilds($this->getId());
353  foreach ($childs as $child)
354  {
355  if($child["type"] != "pg")
356  {
357  continue;
358  }
359 
360  // export xml to writer object
361  //$ilBench->start("ContentObjectExport", "exportStructureObject_exportPageObjectAlias");
362 
363  $page_obj = new ilLMPageObject($this->getContentObject(), $child["obj_id"]);
364  $page_obj->exportFO($a_xml_writer);
365 
366  //$ilBench->stop("ContentObjectExport", "exportStructureObject_exportPageObjectAlias");
367  }
368  }
Class ilLMPageObject.
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
global $ilBench
Definition: ilias.php:18
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ exportXML()

ilStructureObject::exportXML ( $a_xml_writer,
  $a_inst,
$expLog 
)

export object to xml (see ilias_co.dtd)

Parameters
object$a_xml_writerilXmlWriter object that receives the xml data

Definition at line 116 of file class.ilStructureObject.php.

References $ilBench, array, date, exportXMLMetaData(), exportXMLPageObjects(), exportXMLStructureObjects(), and ilLMObject\getId().

117  {
118  global $ilBench;
119 
120  $expLog->write(date("[y-m-d H:i:s] ")."Structure Object ".$this->getId());
121  $attrs = array();
122  $a_xml_writer->xmlStartTag("StructureObject", $attrs);
123 
124  // MetaData
125  $ilBench->start("ContentObjectExport", "exportStructureObject_exportMeta");
126  $this->exportXMLMetaData($a_xml_writer);
127  $ilBench->stop("ContentObjectExport", "exportStructureObject_exportMeta");
128 
129  // StructureObjects
130  $ilBench->start("ContentObjectExport", "exportStructureObject_exportPageObjects");
131  $this->exportXMLPageObjects($a_xml_writer, $a_inst);
132  $ilBench->stop("ContentObjectExport", "exportStructureObject_exportPageObjects");
133 
134  // PageObjects
135  $this->exportXMLStructureObjects($a_xml_writer, $a_inst, $expLog);
136 
137  // Layout
138  // not implemented
139 
140  $a_xml_writer->xmlEndTag("StructureObject");
141  }
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
exportXMLMetaData(&$a_xml_writer)
export structure objects meta data to xml (see ilias_co.dtd)
exportXMLStructureObjects(&$a_xml_writer, $a_inst, &$expLog)
export (sub)structure objects of structure object (see ilias_co.dtd)
Create styles array
The data for the language used.
global $ilBench
Definition: ilias.php:18
exportXMLPageObjects(&$a_xml_writer, $a_inst=0)
export page objects of structure object (see ilias_co.dtd)
+ Here is the call graph for this function:

◆ exportXMLMetaData()

ilStructureObject::exportXMLMetaData ( $a_xml_writer)

export structure objects meta data to xml (see ilias_co.dtd)

Parameters
object$a_xml_writerilXmlWriter object that receives the xml data

Definition at line 150 of file class.ilStructureObject.php.

References ilLMObject\getId(), ilLMObject\getLMId(), and ilLMObject\getType().

Referenced by exportXML().

151  {
152  include_once("Services/MetaData/classes/class.ilMD2XML.php");
153  $md2xml = new ilMD2XML($this->getLMId(), $this->getId(), $this->getType());
154  $md2xml->setExportMode(true);
155  $md2xml->startExport();
156  $a_xml_writer->appendXML($md2xml->getXML());
157  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ exportXMLPageObjects()

ilStructureObject::exportXMLPageObjects ( $a_xml_writer,
  $a_inst = 0 
)

export page objects of structure object (see ilias_co.dtd)

Parameters
object$a_xml_writerilXmlWriter object that receives the xml data

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

References $ilBench, ilLMPageObject\_exportXMLAlias(), and ilLMObject\getId().

Referenced by exportXML().

252  {
253  include_once './Modules/LearningModule/classes/class.ilLMPageObject.php';
254 
255  global $ilBench;
256 
257  $this->tree = new ilTree($this->getLmId());
258  $this->tree->setTableNames('lm_tree', 'lm_data');
259  $this->tree->setTreeTablePK("lm_id");
260 
261  $childs = $this->tree->getChilds($this->getId());
262  foreach ($childs as $child)
263  {
264  if($child["type"] != "pg")
265  {
266  continue;
267  }
268 
269  // export xml to writer object
270  $ilBench->start("ContentObjectExport", "exportStructureObject_exportPageObjectAlias");
271  //$ilBench->start("ContentObjectExport", "exportStructureObject_getLMPageObject");
272  //$page_obj = new ilLMPageObject($this->getContentObject(), $child["obj_id"]);
273  //$ilBench->stop("ContentObjectExport", "exportStructureObject_getLMPageObject");
274  ilLMPageObject::_exportXMLAlias($a_xml_writer, $child["obj_id"], $a_inst);
275  //$page_obj->exportXML($a_xml_writer, "alias", $a_inst);
276  //unset($page_obj);
277  $ilBench->stop("ContentObjectExport", "exportStructureObject_exportPageObjectAlias");
278  }
279  }
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
global $ilBench
Definition: ilias.php:18
static _exportXMLAlias(&$a_xml_writer, $a_id, $a_inst=0)
export page alias to xml
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ exportXMLStructureObjects()

ilStructureObject::exportXMLStructureObjects ( $a_xml_writer,
  $a_inst,
$expLog 
)

export (sub)structure objects of structure object (see ilias_co.dtd)

Parameters
object$a_xml_writerilXmlWriter object that receives the xml data

Definition at line 288 of file class.ilStructureObject.php.

References ilLMObject\getContentObject(), and ilLMObject\getId().

Referenced by exportXML().

289  {
290  $this->tree = new ilTree($this->getLmId());
291  $this->tree->setTableNames('lm_tree', 'lm_data');
292  $this->tree->setTreeTablePK("lm_id");
293 
294  $childs = $this->tree->getChilds($this->getId());
295  foreach ($childs as $child)
296  {
297  if($child["type"] != "st")
298  {
299  continue;
300  }
301 
302  // export xml to writer object
303  $structure_obj = new ilStructureObject($this->getContentObject(),
304  $child["obj_id"]);
305  $structure_obj->exportXML($a_xml_writer, $a_inst, $expLog);
306  unset($structure_obj);
307  }
308  }
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
Class ilStructreObject.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getChapterList()

static ilStructureObject::getChapterList (   $a_lm_id)
static

export (sub)structure objects of structure object (see ilias_co.dtd)

Parameters
object$a_xml_writerilXmlWriter object that receives the xml data

Definition at line 376 of file class.ilStructureObject.php.

References array.

Referenced by ilExportIDTableGUI\__construct(), and ilHelpMappingTableGUI\getChapters().

377  {
378  $tree = new ilTree($a_lm_id);
379  $tree->setTableNames('lm_tree', 'lm_data');
380  $tree->setTreeTablePK("lm_id");
381 
382  $chapters = array();
383  $ndata = $tree->getNodeData($tree->readRootId());
384  $childs = $tree->getSubtree($ndata);
385  foreach ($childs as $child)
386  {
387  if($child["type"] == "st")
388  {
389  $chapters[] = $child;
390  }
391 
392  }
393  return $chapters;
394  }
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ modifyExportIdentifier()

ilStructureObject::modifyExportIdentifier (   $a_tag,
  $a_param,
  $a_value 
)

Definition at line 159 of file class.ilStructureObject.php.

References ilLMObject\getId().

160  {
161  if ($a_tag == "Identifier" && $a_param == "Entry")
162  {
163  $a_value = "il_".IL_INST_ID."_st_".$this->getId();
164  }
165 
166  return $a_value;
167  }
+ Here is the call graph for this function:

Field Documentation

◆ $is_alias

ilStructureObject::$is_alias

Definition at line 19 of file class.ilStructureObject.php.

◆ $origin_id

ilStructureObject::$origin_id

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

◆ $tree

ilStructureObject::$tree

Definition at line 21 of file class.ilStructureObject.php.


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