ILIAS  release_7 Revision v7.30-3-g800a261c036
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 
)

Reimplemented in ilSoapRepositoryStructureObject.

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

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

+ Here is the call graph for this function:

Member Function Documentation

◆ _getTagName()

ilSoapStructureObject::_getTagName ( )

Reimplemented in ilSoapRepositoryStructureObject.

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

182 {
183 return "StructureObject";
184 }

Referenced by exportXML().

+ Here is the caller graph for this function:

◆ _getXMLAttributes()

ilSoapStructureObject::_getXMLAttributes ( )

get xml tag attributes

Reimplemented in ilSoapRepositoryStructureObject.

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

175 {
176 return array( 'type' => $this->getType(),
177 'obj_id' => $this->getObjId()
178 );
179 }
getObjId()
return current object id

References getObjId(), and getType().

Referenced by exportXML().

+ 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.

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 }
getInternalLink()
return current internal_link
getGotoLink()
return current goto_link
_getXMLAttributes()
get xml tag attributes
getStructureObjects()
returns sub structure elements
getDescription()
return current description

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

+ Here is the call graph for this function:

◆ getDescription()

ilSoapStructureObject::getDescription ( )

return current description

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

127 {
128 return $this->description;
129 }

References $description.

Referenced by exportXML().

+ Here is the caller graph for this function:

◆ getGotoLink()

ilSoapStructureObject::getGotoLink ( )

return current goto_link

Reimplemented in ilSoapGLOTermDefinitionStructureObject, ilSoapLMChapterStructureObject, and ilSoapRepositoryStructureObject.

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

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
const CLIENT_ID
Definition: constants.php:39

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

Referenced by exportXML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getInternalLink()

ilSoapStructureObject::getInternalLink ( )

return current internal_link

Reimplemented in ilSoapGLOTermDefinitionStructureObject, ilSoapGLOTermStructureObject, ilSoapLMChapterStructureObject, ilSoapLMPageStructureObject, and ilSoapRepositoryStructureObject.

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

166 {
167 die("abstract");
168 }

Referenced by exportXML().

+ Here is the caller graph for this function:

◆ getObjId()

◆ getParentRefId()

ilSoapStructureObject::getParentRefId ( )

read access to parents ref id

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

199 {
200 return $this->parentRefId;
201 }

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.

68 {
70 }

References $structureObjects.

Referenced by exportXML().

+ Here is the caller graph for this function:

◆ getTitle()

ilSoapStructureObject::getTitle ( )

◆ getType()

ilSoapStructureObject::getType ( )

return current type

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

147 {
148 return $this->type;
149 }

References $type.

Referenced by ilSoapRepositoryStructureObject\_getXMLAttributes(), _getXMLAttributes(), ilSoapRepositoryStructureObject\getGotoLink(), getGotoLink(), and ilSoapRepositoryStructureObject\getInternalLink().

+ Here is the caller graph for this function:

◆ setDescription()

ilSoapStructureObject::setDescription (   $value)

set current description

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

117 {
118 $this->description = $value;
119 }

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setObjId()

ilSoapStructureObject::setObjId (   $value)

set current ObjId

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

78 {
79 $this->obj_id= $value;
80 }

Referenced by __construct().

+ 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.

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

References $parentRefId.

◆ setTitle()

ilSoapStructureObject::setTitle (   $value)

set current title

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

98 {
99 $this->title= $value;
100 }

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setType()

ilSoapStructureObject::setType (   $value)

set current type

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

137 {
138 $this->type = $value;
139 }

Referenced by __construct().

+ 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: