ILIAS
Release_5_0_x_branch Revision 61816
|
Class for container reference export. More...
Public Member Functions | |
__construct (ilContainerReference $ref=null) | |
constructor | |
setMode ($a_mode) | |
Set export mode. | |
getMode () | |
get export mode | |
getReference () | |
Get category object. | |
export ($a_with_header=true) | |
Start wrting xml. | |
getXml () | |
get XML | |
Public Member Functions inherited from ilXmlWriter | |
ilXmlWriter ($version="1.0", $outEnc="utf-8", $inEnc="utf-8") | |
constructor | |
_ilXmlWriter () | |
destructor public | |
xmlSetDtdDef ($dtdDef) | |
Sets dtd definition. | |
xmlSetStSheet ($stSheet) | |
Sets stylesheet. | |
xmlSetGenCmt ($genCmt) | |
Sets generated comment. | |
_xmlEscapeData ($data) | |
Escapes reserved characters. | |
xmlEncodeData ($data) | |
Encodes text from input encoding into output encoding. | |
xmlFormatData ($data) | |
Indents text for better reading. | |
xmlFormatElement ($array) | |
Callback function for xmlFormatData; do not invoke directly. | |
xmlHeader () | |
Writes xml header public. | |
xmlStartTag ($tag, $attrs=NULL, $empty=FALSE, $encode=TRUE, $escape=TRUE) | |
Writes a starttag. | |
xmlEndTag ($tag) | |
Writes an endtag. | |
xmlComment ($comment) | |
Writes a comment. | |
xmlData ($data, $encode=TRUE, $escape=TRUE) | |
Writes data. | |
xmlElement ($tag, $attrs=NULL, $data=Null, $encode=TRUE, $escape=TRUE) | |
Writes a basic element (no children, just textual content) | |
xmlDumpFile ($file, $format=TRUE) | |
Dumps xml document from memory into a file. | |
xmlDumpMem ($format=TRUE) | |
Returns xml document from memory. | |
appendXML ($a_str) | |
append xml string to document | |
xmlClear () | |
clears xmlStr public |
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. | |
buildTarget () | |
Build target element. | |
buildTitle () | |
Build title element. | |
buildReference () | |
Build category xml. | |
buildFooter () | |
Add footer elements. |
Private Attributes | |
$mode = self::MODE_SOAP | |
$xml | |
$ref |
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 28 of file class.ilContainerReferenceXmlWriter.php.
References $ref.
|
protected |
Add footer elements.
Definition at line 144 of file class.ilContainerReferenceXmlWriter.php.
References ilXmlWriter\xmlEndTag().
Referenced by export().
|
protected |
Build xml header <type> $ilSetting.
Reimplemented in ilCategoryReferenceXmlWriter, and ilCourseReferenceXmlWriter.
Definition at line 94 of file class.ilContainerReferenceXmlWriter.php.
References $ilSetting, getReference(), ilXmlWriter\xmlHeader(), ilXmlWriter\xmlSetDtdDef(), and ilXmlWriter\xmlSetGenCmt().
Referenced by export().
|
protected |
Build category xml.
Definition at line 136 of file class.ilContainerReferenceXmlWriter.php.
References ilXmlWriter\xmlStartTag().
Referenced by export().
|
protected |
Build target element.
Definition at line 108 of file class.ilContainerReferenceXmlWriter.php.
References getReference(), and ilXmlWriter\xmlElement().
Referenced by export().
|
protected |
Build title element.
Definition at line 116 of file class.ilContainerReferenceXmlWriter.php.
References getReference(), ilContainerReference\TITLE_TYPE_CUSTOM, and ilXmlWriter\xmlElement().
Referenced by export().
ilContainerReferenceXmlWriter::export | ( | $a_with_header = true | ) |
Start wrting xml.
Definition at line 65 of file class.ilContainerReferenceXmlWriter.php.
References buildFooter(), buildHeader(), buildReference(), buildTarget(), buildTitle(), and getMode().
ilContainerReferenceXmlWriter::getMode | ( | ) |
get export mode
Definition at line 47 of file class.ilContainerReferenceXmlWriter.php.
References $mode.
Referenced by export().
ilContainerReferenceXmlWriter::getReference | ( | ) |
Get category object.
Definition at line 56 of file class.ilContainerReferenceXmlWriter.php.
References $ref.
Referenced by ilCategoryReferenceXmlWriter\buildHeader(), ilCourseReferenceXmlWriter\buildHeader(), buildHeader(), buildTarget(), and buildTitle().
ilContainerReferenceXmlWriter::getXml | ( | ) |
get XML
Definition at line 84 of file class.ilContainerReferenceXmlWriter.php.
References ilXmlWriter\xmlDumpMem().
ilContainerReferenceXmlWriter::setMode | ( | $a_mode | ) |
Set export mode.
int | $a_mode |
Definition at line 38 of file class.ilContainerReferenceXmlWriter.php.
|
private |
Definition at line 17 of file class.ilContainerReferenceXmlWriter.php.
Referenced by getMode().
|
private |
Definition at line 19 of file class.ilContainerReferenceXmlWriter.php.
Referenced by ilCategoryReferenceXmlWriter\__construct(), ilCourseReferenceXmlWriter\__construct(), __construct(), and getReference().
|
private |
Definition at line 18 of file class.ilContainerReferenceXmlWriter.php.
const ilContainerReferenceXmlWriter::MODE_EXPORT = 2 |
Definition at line 15 of file class.ilContainerReferenceXmlWriter.php.
Referenced by ilContainerReferenceExporter\getXmlRepresentation().
const ilContainerReferenceXmlWriter::MODE_SOAP = 1 |
Definition at line 14 of file class.ilContainerReferenceXmlWriter.php.