|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class for category export. More...
Inheritance diagram for ilCategoryXmlWriter:
Collaboration diagram for ilCategoryXmlWriter:Public Member Functions | |
| __construct (ilObjCategory $cat=null) | |
| constructor More... | |
| setMode ($a_mode) | |
| Set export mode. More... | |
| getMode () | |
| get export mode More... | |
| getCategory () | |
| 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 @access 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 @access 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 @access 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 @global <type> $ilSetting. More... | |
| buildCategory () | |
| Build category xml. More... | |
| buildFooter () | |
| Add footer elements. More... | |
| buildTranslations () | |
| Add Translations. More... | |
Protected Attributes | |
| $settings | |
Private Attributes | |
| $mode = self::MODE_SOAP | |
| $xml | |
| $category | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilXmlWriter | |
| static | _xmlEscapeData ($data) |
| Escapes reserved characters. More... | |
Class for category export.
Definition at line 12 of file class.ilCategoryXmlWriter.php.
| ilCategoryXmlWriter::__construct | ( | ilObjCategory | $cat = null | ) |
constructor
| string | xml version |
| string | output encoding |
| string | input encoding @access public |
Definition at line 33 of file class.ilCategoryXmlWriter.php.
References $DIC, and settings().
Here is the call graph for this function:
|
protected |
Build category xml.
Definition at line 119 of file class.ilCategoryXmlWriter.php.
References ilXmlWriter\xmlStartTag().
Referenced by export().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Add footer elements.
Definition at line 127 of file class.ilCategoryXmlWriter.php.
References ilXmlWriter\xmlEndTag().
Referenced by export().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Build xml header @global <type> $ilSetting.
Definition at line 104 of file class.ilCategoryXmlWriter.php.
References $ilSetting, $settings, getCategory(), ilXmlWriter\xmlHeader(), ilXmlWriter\xmlSetDtdDef(), and ilXmlWriter\xmlSetGenCmt().
Referenced by export().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Add Translations.
Definition at line 135 of file class.ilCategoryXmlWriter.php.
References getCategory(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by export().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCategoryXmlWriter::export | ( | $a_with_header = true | ) |
Start wrting xml.
Definition at line 74 of file class.ilCategoryXmlWriter.php.
References ilContainer\_exportContainerSettings(), ilContainerSortingSettings\_exportContainerSortingSettings(), buildCategory(), buildFooter(), buildHeader(), buildTranslations(), getCategory(), and getMode().
Here is the call graph for this function:| ilCategoryXmlWriter::getCategory | ( | ) |
Get category object.
Definition at line 65 of file class.ilCategoryXmlWriter.php.
References $category.
Referenced by buildHeader(), buildTranslations(), and export().
Here is the caller graph for this function:| ilCategoryXmlWriter::getMode | ( | ) |
get export mode
Definition at line 56 of file class.ilCategoryXmlWriter.php.
References $mode.
Referenced by export().
Here is the caller graph for this function:| ilCategoryXmlWriter::getXml | ( | ) |
get XML
Definition at line 94 of file class.ilCategoryXmlWriter.php.
References ilXmlWriter\xmlDumpMem().
Here is the call graph for this function:| ilCategoryXmlWriter::setMode | ( | $a_mode | ) |
Set export mode.
| int | $a_mode |
Definition at line 47 of file class.ilCategoryXmlWriter.php.
|
private |
Definition at line 24 of file class.ilCategoryXmlWriter.php.
Referenced by getCategory().
|
private |
Definition at line 22 of file class.ilCategoryXmlWriter.php.
Referenced by getMode().
|
protected |
Definition at line 17 of file class.ilCategoryXmlWriter.php.
Referenced by buildHeader().
|
private |
Definition at line 23 of file class.ilCategoryXmlWriter.php.
| const ilCategoryXmlWriter::MODE_EXPORT = 2 |
Definition at line 20 of file class.ilCategoryXmlWriter.php.
Referenced by ilCategoryExporter\getXmlRepresentation().
| const ilCategoryXmlWriter::MODE_SOAP = 1 |
Definition at line 19 of file class.ilCategoryXmlWriter.php.