ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class for container reference export. More...
Public Member Functions | |
__construct (ilContainerReference $ref=null) | |
constructor More... | |
setMode ($a_mode) | |
Set export mode. More... | |
getMode () | |
get export mode More... | |
getReference () | |
Get category object. More... | |
export ($a_with_header=true) | |
Start wrting xml. More... | |
getXml () | |
get XML More... | |
Public Member Functions inherited from ilXmlWriter | |
__construct ($version="1.0", $outEnc="utf-8", $inEnc="utf-8") | |
constructor More... | |
_ilXmlWriter () | |
destructor public More... | |
xmlSetDtdDef ($dtdDef) | |
Sets dtd definition. More... | |
xmlSetStSheet ($stSheet) | |
Sets stylesheet. More... | |
xmlSetGenCmt ($genCmt) | |
Sets generated comment. More... | |
xmlEncodeData ($data) | |
Encodes text from input encoding into output encoding. More... | |
xmlFormatData ($data) | |
Indents text for better reading. More... | |
xmlFormatElement ($array) | |
Callback function for xmlFormatData; do not invoke directly. More... | |
xmlHeader () | |
Writes xml header public. More... | |
xmlStartTag ($tag, $attrs=null, $empty=false, $encode=true, $escape=true) | |
Writes a starttag. More... | |
xmlEndTag ($tag) | |
Writes an endtag. More... | |
xmlComment ($comment) | |
Writes a comment. More... | |
xmlData ($data, $encode=true, $escape=true) | |
Writes data. More... | |
xmlElement ($tag, $attrs=null, $data=null, $encode=true, $escape=true) | |
Writes a basic element (no children, just textual content) More... | |
xmlDumpFile ($file, $format=true) | |
Dumps xml document from memory into a file. More... | |
xmlDumpMem ($format=true) | |
Returns xml document from memory. More... | |
appendXML ($a_str) | |
append xml string to document More... | |
xmlClear () | |
clears xmlStr public More... | |
Data Fields | |
const | MODE_SOAP = 1 |
const | MODE_EXPORT = 2 |
Data Fields inherited from ilXmlWriter | |
$xmlStr | |
$version | |
$outEnc | |
$inEnc | |
$dtdDef = "" | |
$stSheet = "" | |
$genCmt = "Generated by ILIAS XmlWriter" | |
Protected Member Functions | |
buildHeader () | |
Build xml header <type> $ilSetting. More... | |
buildTarget () | |
Build target element. More... | |
buildTitle () | |
Build title element. More... | |
buildReference () | |
Build category xml. More... | |
buildFooter () | |
Add footer elements. More... | |
Protected Attributes | |
$settings | |
Private Attributes | |
$mode = self::MODE_SOAP | |
$xml | |
$ref | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilXmlWriter | |
static | _xmlEscapeData ($data) |
Escapes reserved characters. More... | |
Class for container reference export.
Definition at line 12 of file class.ilContainerReferenceXmlWriter.php.
ilContainerReferenceXmlWriter::__construct | ( | ilContainerReference | $ref = null | ) |
constructor
string | xml version |
string | output encoding |
string | input encoding public |
Definition at line 33 of file class.ilContainerReferenceXmlWriter.php.
References $DIC, $ref, and settings().
|
protected |
Add footer elements.
Definition at line 149 of file class.ilContainerReferenceXmlWriter.php.
References ilXmlWriter\xmlEndTag().
Referenced by export().
|
protected |
Build xml header <type> $ilSetting.
Definition at line 100 of file class.ilContainerReferenceXmlWriter.php.
References $ilSetting, $settings, getReference(), ilXmlWriter\xmlHeader(), ilXmlWriter\xmlSetDtdDef(), and ilXmlWriter\xmlSetGenCmt().
Referenced by export().
|
protected |
Build category xml.
Definition at line 141 of file class.ilContainerReferenceXmlWriter.php.
References ilXmlWriter\xmlStartTag().
Referenced by export().
|
protected |
Build target element.
Definition at line 114 of file class.ilContainerReferenceXmlWriter.php.
References array, getReference(), and ilXmlWriter\xmlElement().
Referenced by export().
|
protected |
Build title element.
Definition at line 122 of file class.ilContainerReferenceXmlWriter.php.
References $title, array, getReference(), ilContainerReference\TITLE_TYPE_CUSTOM, and ilXmlWriter\xmlElement().
Referenced by export().
ilContainerReferenceXmlWriter::export | ( | $a_with_header = true | ) |
Start wrting xml.
Definition at line 73 of file class.ilContainerReferenceXmlWriter.php.
References buildFooter(), buildHeader(), buildReference(), buildTarget(), buildTitle(), and getMode().
ilContainerReferenceXmlWriter::getMode | ( | ) |
get export mode
Definition at line 55 of file class.ilContainerReferenceXmlWriter.php.
References $mode.
Referenced by export().
ilContainerReferenceXmlWriter::getReference | ( | ) |
Get category object.
Definition at line 64 of file class.ilContainerReferenceXmlWriter.php.
References $ref.
Referenced by ilGroupReferenceXmlWriter\buildHeader(), ilCourseReferenceXmlWriter\buildHeader(), ilCategoryReferenceXmlWriter\buildHeader(), buildHeader(), buildTarget(), and buildTitle().
ilContainerReferenceXmlWriter::getXml | ( | ) |
get XML
Definition at line 90 of file class.ilContainerReferenceXmlWriter.php.
References ilXmlWriter\xmlDumpMem().
ilContainerReferenceXmlWriter::setMode | ( | $a_mode | ) |
Set export mode.
int | $a_mode |
Definition at line 46 of file class.ilContainerReferenceXmlWriter.php.
|
private |
Definition at line 22 of file class.ilContainerReferenceXmlWriter.php.
Referenced by getMode().
|
private |
Definition at line 24 of file class.ilContainerReferenceXmlWriter.php.
Referenced by ilGroupReferenceXmlWriter\__construct(), ilCourseReferenceXmlWriter\__construct(), ilCategoryReferenceXmlWriter\__construct(), __construct(), and getReference().
|
protected |
Definition at line 17 of file class.ilContainerReferenceXmlWriter.php.
Referenced by ilCategoryReferenceXmlWriter\buildHeader(), and buildHeader().
|
private |
Definition at line 23 of file class.ilContainerReferenceXmlWriter.php.
const ilContainerReferenceXmlWriter::MODE_EXPORT = 2 |
Definition at line 20 of file class.ilContainerReferenceXmlWriter.php.
Referenced by ilContainerReferenceExporter\getXmlRepresentation().
const ilContainerReferenceXmlWriter::MODE_SOAP = 1 |
Definition at line 19 of file class.ilContainerReferenceXmlWriter.php.