ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilSoapGLOStructureReader Class Reference
+ Inheritance diagram for ilSoapGLOStructureReader:
+ Collaboration diagram for ilSoapGLOStructureReader:

Public Member Functions

 _parseStructure ()
 
- Public Member Functions inherited from ilSoapStructureReader
 __construct (&$object)
 
 getStructureObject ()
 
 _parseStructure ()
 
 isValid ()
 
 getObject ()
 read access to parent object More...
 

Additional Inherited Members

- Data Fields inherited from ilSoapStructureReader
 $object
 
 $structureObject
 

Detailed Description

Definition at line 39 of file class.ilSoapGLOStructureReader.php.

Member Function Documentation

◆ _parseStructure()

ilSoapGLOStructureReader::_parseStructure ( )

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

References $def, ilGlossaryDefinition\getDefinitionList(), ilSoapStructureObjectFactory\getInstance(), and ilSoapStructureReader\getObject().

42  {
43  /* @var $object ilObjGlossary */
44 
45  $terms = $this->object->getTermlist();
46 
47  foreach ($terms as $term) {
48 
49  /* @var $termStructureObject ilSoapGLOTermStructureObject*/
50  $termStructureObject = ilSoapStructureObjectFactory::getInstance(
51  $term["id"],
52  "git",
53  $term["term"],
54  "",
55  $this->getObject()->getRefId()
56  );
57 
58  $this->structureObject->addStructureObject($termStructureObject);
59 
60  $defs = ilGlossaryDefinition::getDefinitionList($term["id"]);
61 
62  foreach ($defs as $def) {
63  $defStructureObject = ilSoapStructureObjectFactory::getInstance(
64  $def["id"],
65  "gdf",
66  $def["short_text"],
67  "",
68  $this->getObject()->getRefId()
69  );
70 
71  $termStructureObject->addStructureObject($defStructureObject);
72  }
73 
74  // print_r($defs);
75  }
76  }
static getDefinitionList($a_term_id)
static
getObject()
read access to parent object
$def
Definition: croninfo.php:21
getInstance($objId, $type, $title, $description, $parentRefId)
+ Here is the call graph for this function:

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