60 $this->structureObjects [$structureObject->getObjId()] = $structureObject;
79 $this->obj_id= $value;
118 $this->description = $value;
138 $this->type = $value;
176 return array(
'type' => $this->
getType(),
183 return "StructureObject";
212 $xml_writer->xmlStartTag($this->
_getTagName(), $attrs);
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());
219 $xml_writer->xmlStartTag(
"StructureObjects");
225 $structureObject->exportXML($xml_writer);
228 $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
setDescription($value)
set current description
getType()
return current type