4include_once
"./Services/Xml/classes/class.ilXmlWriter.php";
38 parent::__construct();
48 $this->mode = $a_mode;
73 public function export($a_with_header =
true)
75 if ($this->
getMode() == self::MODE_EXPORT) {
104 $this->
xmlSetDtdDef(
"<!DOCTYPE container reference PUBLIC \"-//ILIAS//DTD Group//EN\" \"" . ILIAS_HTTP_PATH .
"/xml/ilias_container_reference_4_3.dtd\">");
An exception for terminatinating execution or to throw for unit testing.
Class for container reference export.
setMode($a_mode)
Set export mode.
__construct(ilContainerReference $ref=null)
constructor
getReference()
Get category object.
buildHeader()
Build xml header @global <type> $ilSetting.
buildTitle()
Build title element.
export($a_with_header=true)
Start wrting xml.
buildFooter()
Add footer elements.
buildReference()
Build category xml.
buildTarget()
Build target element.
xmlEndTag($tag)
Writes an endtag.
xmlSetGenCmt($genCmt)
Sets generated comment.
xmlDumpMem($format=true)
Returns xml document from memory.
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.