4include_once 
"./Services/Xml/classes/class.ilXmlWriter.php";
 
   26        $this->add_header = $a_add_header;
 
   27        parent::__construct();
 
   37        $this->obj_id = $a_obj_id;
 
   48        if ($this->add_header) {
 
   51        $this->
xmlStartTag(
'Folder', array(
'Id' => $this->folder->getId()));
 
   52        $this->
xmlElement(
'Title', array(), $this->folder->getTitle());
 
   53        $this->
xmlElement(
'Description', array(), $this->folder->getDescription());
 
   54        include_once 
'./Services/Container/classes/class.ilContainerSortingSettings.php';
 
   65        $this->
xmlSetDtdDef(
"<!DOCTYPE WebLinks PUBLIC \"-//ILIAS//DTD WebLinkAdministration//EN\" \"" . ILIAS_HTTP_PATH . 
"/xml/ilias_fold_4_5.dtd\">");
 
   83            throw new UnexpectedValueException(
'No obj_id given: ');
 
   85        include_once 
'./Services/Object/classes/class.ilObjectFactory.php';
 
   87            throw new UnexpectedValueException(
'Invalid obj_id given: ' . $this->obj_id);
 
   89        if ($this->folder->getType() != 
'fold') {
 
   90            throw new UnexpectedValueException(
'Invalid obj_id given. Object is not of type folder');
 
An exception for terminatinating execution or to throw for unit testing.
static _exportContainerSortingSettings(ilXmlWriter $xml, $obj_id)
sorting XML-export for all container objects
setObjId($a_obj_id)
Set obj_id of weblink object.
buildHeader()
Build XML header.
__construct($a_add_header)
Constructor.
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
xmlEndTag($tag)
Writes an endtag.
xmlSetGenCmt($genCmt)
Sets generated comment.
xmlClear()
clears xmlStr @access public
xmlHeader()
Writes xml header @access public.
xmlElement($tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content)
xmlStartTag($tag, $attrs=null, $empty=false, $encode=true, $escape=true)
Writes a starttag.
xmlSetDtdDef($dtdDef)
Sets dtd definition.