4include_once
"./Services/Xml/classes/class.ilXmlWriter.php";
30 parent::__construct();
40 $this->mode = $a_mode;
65 public function export($a_with_header =
true)
67 if($this->
getMode() == self::MODE_EXPORT)
98 $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.
xmlDumpMem($format=TRUE)
Returns xml document from memory.
xmlSetGenCmt($genCmt)
Sets generated comment.
xmlStartTag($tag, $attrs=NULL, $empty=FALSE, $encode=TRUE, $escape=TRUE)
Writes a starttag.
xmlHeader()
Writes xml header @access public.
xmlSetDtdDef($dtdDef)
Sets dtd definition.
xmlElement($tag, $attrs=NULL, $data=Null, $encode=TRUE, $escape=TRUE)
Writes a basic element (no children, just textual content)