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

Public Member Functions

 __construct ($objId, $type, $title, $description, $parentRefId=null)
 
 addStructureObject ($structureObject)
 add structure object to its parent More...
 
 getStructureObjects ()
 returns sub structure elements More...
 
 setObjId ($value)
 set current ObjId More...
 
 getObjId ()
 return current object id More...
 
 setTitle ($value)
 set current title More...
 
 getTitle ()
 return current title More...
 
 setDescription ($value)
 set current description More...
 
 getDescription ()
 return current description More...
 
 setType ($value)
 set current type More...
 
 getType ()
 return current type More...
 
 getGotoLink ()
 return current goto_link More...
 
 getInternalLink ()
 return current internal_link More...
 
 _getXMLAttributes ()
 get xml tag attributes More...
 
 _getTagName ()
 
 setParentRefId ($parentRefId)
 set ref id for parent object (used for permanent link if set) More...
 
 getParentRefId ()
 read access to parents ref id More...
 
 exportXML ($xml_writer)
 export to xml writer More...
 

Data Fields

 $obj_id
 
 $title
 
 $type
 
 $description
 
 $parentRefId
 
 $structureObjects = array()
 

Detailed Description

Definition at line 34 of file class.ilSoapStructureObject.php.

Constructor & Destructor Documentation

◆ __construct()

ilSoapStructureObject::__construct (   $objId,
  $type,
  $title,
  $description,
  $parentRefId = null 
)

Definition at line 45 of file class.ilSoapStructureObject.php.

References $description, $parentRefId, $title, $type, setDescription(), setObjId(), setTitle(), and setType().

46  {
47  $this->setObjId($objId);
48  $this->setType($type);
49  $this->setTitle($title);
51  $this->parentRefId = $parentRefId;
52  }
setObjId($value)
set current ObjId
setTitle($value)
set current title
setType($value)
set current type
setDescription($value)
set current description
+ Here is the call graph for this function:

Member Function Documentation

◆ _getTagName()

ilSoapStructureObject::_getTagName ( )

Definition at line 181 of file class.ilSoapStructureObject.php.

Referenced by exportXML().

182  {
183  return "StructureObject";
184  }
+ Here is the caller graph for this function:

◆ _getXMLAttributes()

ilSoapStructureObject::_getXMLAttributes ( )

get xml tag attributes

Definition at line 174 of file class.ilSoapStructureObject.php.

References array, getObjId(), and getType().

Referenced by exportXML().

175  {
176  return array( 'type' => $this->getType(),
177  'obj_id' => $this->getObjId()
178  );
179  }
getObjId()
return current object id
Create styles array
The data for the language used.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addStructureObject()

ilSoapStructureObject::addStructureObject (   $structureObject)

add structure object to its parent

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

59  {
60  $this->structureObjects [$structureObject->getObjId()] = $structureObject;
61  }

◆ exportXML()

ilSoapStructureObject::exportXML (   $xml_writer)

export to xml writer

Definition at line 207 of file class.ilSoapStructureObject.php.

References $structureObjects, _getTagName(), _getXMLAttributes(), getDescription(), getGotoLink(), getInternalLink(), getStructureObjects(), and getTitle().

208  {
209  $attrs = $this->_getXMLAttributes();
210 
211  // open tag
212  $xml_writer->xmlStartTag($this->_getTagName(), $attrs);
213 
214  $xml_writer->xmlElement('Title', null, $this->getTitle());
215  $xml_writer->xmlElement('Description', null, $this->getDescription());
216  $xml_writer->xmlElement('InternalLink', null, $this->getInternalLink());
217  $xml_writer->xmlElement('GotoLink', null, $this->getGotoLink());
218 
219  $xml_writer->xmlStartTag("StructureObjects");
220 
221  // handle sub elements
223 
224  foreach ($structureObjects as $structureObject) {
225  $structureObject->exportXML($xml_writer);
226  }
227 
228  $xml_writer->xmlEndTag("StructureObjects");
229 
230  $xml_writer->xmlEndTag($this->_getTagName());
231  }
getStructureObjects()
returns sub structure elements
getGotoLink()
return current goto_link
getInternalLink()
return current internal_link
_getXMLAttributes()
get xml tag attributes
getDescription()
return current description
+ Here is the call graph for this function:

◆ getDescription()

ilSoapStructureObject::getDescription ( )

return current description

Definition at line 126 of file class.ilSoapStructureObject.php.

References $description.

Referenced by exportXML().

+ Here is the caller graph for this function:

◆ getGotoLink()

ilSoapStructureObject::getGotoLink ( )

return current goto_link

Definition at line 156 of file class.ilSoapStructureObject.php.

References getObjId(), getParentRefId(), and getType().

Referenced by exportXML().

157  {
158  return ILIAS_HTTP_PATH . "/" . "goto.php?target=" . $this->getType() . "_" . $this->getObjId() . (is_numeric($this->getParentRefId())?"_" . $this->getParentRefId():"") . "&client_id=" . CLIENT_ID;
159  }
getParentRefId()
read access to parents ref id
getObjId()
return current object id
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getInternalLink()

ilSoapStructureObject::getInternalLink ( )

return current internal_link

Definition at line 165 of file class.ilSoapStructureObject.php.

Referenced by exportXML().

166  {
167  die("abstract");
168  }
+ Here is the caller graph for this function:

◆ getObjId()

ilSoapStructureObject::getObjId ( )

◆ getParentRefId()

ilSoapStructureObject::getParentRefId ( )

read access to parents ref id

Definition at line 198 of file class.ilSoapStructureObject.php.

References $parentRefId.

Referenced by getGotoLink().

+ Here is the caller graph for this function:

◆ getStructureObjects()

ilSoapStructureObject::getStructureObjects ( )

returns sub structure elements

Definition at line 67 of file class.ilSoapStructureObject.php.

References $structureObjects.

Referenced by exportXML().

+ Here is the caller graph for this function:

◆ getTitle()

ilSoapStructureObject::getTitle ( )

◆ getType()

ilSoapStructureObject::getType ( )

◆ setDescription()

ilSoapStructureObject::setDescription (   $value)

set current description

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

Referenced by __construct().

117  {
118  $this->description = $value;
119  }
+ Here is the caller graph for this function:

◆ setObjId()

ilSoapStructureObject::setObjId (   $value)

set current ObjId

Definition at line 77 of file class.ilSoapStructureObject.php.

Referenced by __construct().

78  {
79  $this->obj_id= $value;
80  }
+ Here is the caller graph for this function:

◆ setParentRefId()

ilSoapStructureObject::setParentRefId (   $parentRefId)

set ref id for parent object (used for permanent link if set)

Definition at line 189 of file class.ilSoapStructureObject.php.

References $parentRefId.

190  {
191  $this->parentRefId = $parentRefId;
192  }

◆ setTitle()

ilSoapStructureObject::setTitle (   $value)

set current title

Definition at line 97 of file class.ilSoapStructureObject.php.

Referenced by __construct().

98  {
99  $this->title= $value;
100  }
+ Here is the caller graph for this function:

◆ setType()

ilSoapStructureObject::setType (   $value)

set current type

Definition at line 136 of file class.ilSoapStructureObject.php.

Referenced by __construct().

137  {
138  $this->type = $value;
139  }
+ Here is the caller graph for this function:

Field Documentation

◆ $description

ilSoapStructureObject::$description

◆ $obj_id

ilSoapStructureObject::$obj_id

Definition at line 36 of file class.ilSoapStructureObject.php.

Referenced by getObjId().

◆ $parentRefId

ilSoapStructureObject::$parentRefId

Definition at line 40 of file class.ilSoapStructureObject.php.

Referenced by __construct(), getParentRefId(), and setParentRefId().

◆ $structureObjects

ilSoapStructureObject::$structureObjects = array()

Definition at line 42 of file class.ilSoapStructureObject.php.

Referenced by exportXML(), and getStructureObjects().

◆ $title

ilSoapStructureObject::$title

◆ $type

ilSoapStructureObject::$type

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