45 function __construct($objId, $type, $title, $description, $parentRefId = null) {
59 $this->structureObjects [$structureObject->getObjId()] = $structureObject;
76 $this->obj_id= $value;
112 $this->description = $value;
131 $this->type = $value;
151 return ILIAS_HTTP_PATH.
"/".
"goto.php?target=".$this->getType().
"_".$this->
getObjId().(is_numeric ($this->
getParentRefId())?
"_".$this->getParentRefId():
"").
"&client_id=".CLIENT_ID;
176 return "StructureObject";
204 $xml_writer->xmlStartTag($this->
_getTagName(), $attrs);
206 $xml_writer->xmlElement(
'Title',null,$this->
getTitle());
207 $xml_writer->xmlElement(
'Description',null,$this->
getDescription());
209 $xml_writer->xmlElement(
'GotoLink',null,$this->
getGotoLink());
211 $xml_writer->xmlStartTag(
"StructureObjects");
216 foreach ($structureObjects as $structureObject)
218 $structureObject->exportXML ($xml_writer);
221 $xml_writer->xmlEndTag(
"StructureObjects");
setParentRefId($parentRefId)
set ref id for parent object (used for permanent link if set)
getParentRefId()
read access to parents ref id
getTitle()
return current title
getStructureObjects()
returns sub structure elements
setObjId($value)
set current ObjId
getGotoLink()
return current goto_link
setTitle($value)
set current title
getInternalLink()
return current internal_link
exportXML($xml_writer)
export to xml writer
__construct($objId, $type, $title, $description, $parentRefId=null)
setType($value)
set current type
addStructureObject($structureObject)
add structure object to its parent
getObjId()
return current object id
_getXMLAttributes()
get xml tag attributes
getDescription()
return current description
Create styles array
The data for the language used.
setDescription($value)
set current description
getType()
return current type