ILIAS
Release_4_4_x_branch Revision 61816
|
Class for category export. More...
Public Member Functions | |
__construct (ilObjCategory $cat=null) | |
constructor | |
setMode ($a_mode) | |
Set export mode. | |
getMode () | |
get export mode | |
getCategory () | |
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. | |
buildCategory () | |
Build category xml. | |
buildFooter () | |
Add footer elements. | |
buildTranslations () | |
Add Translations. | |
buildSorting () | |
Add sorting. |
Private Attributes | |
$mode = self::MODE_SOAP | |
$xml | |
$category |
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 public |
Definition at line 28 of file class.ilCategoryXmlWriter.php.
|
protected |
Build category xml.
Definition at line 112 of file class.ilCategoryXmlWriter.php.
References ilXmlWriter\xmlStartTag().
Referenced by export().
|
protected |
Add footer elements.
Definition at line 120 of file class.ilCategoryXmlWriter.php.
References ilXmlWriter\xmlEndTag().
Referenced by export().
|
protected |
Build xml header <type> $ilSetting.
Definition at line 97 of file class.ilCategoryXmlWriter.php.
References $ilSetting, getCategory(), ilXmlWriter\xmlHeader(), ilXmlWriter\xmlSetDtdDef(), and ilXmlWriter\xmlSetGenCmt().
Referenced by export().
|
protected |
Add sorting.
Definition at line 151 of file class.ilCategoryXmlWriter.php.
References getCategory(), ilContainer\SORT_MANUAL, and ilXmlWriter\xmlElement().
Referenced by export().
|
protected |
Add Translations.
Definition at line 128 of file class.ilCategoryXmlWriter.php.
References getCategory(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by export().
ilCategoryXmlWriter::export | ( | $a_with_header = true | ) |
Start wrting xml.
Definition at line 68 of file class.ilCategoryXmlWriter.php.
References buildCategory(), buildFooter(), buildHeader(), buildSorting(), buildTranslations(), and getMode().
ilCategoryXmlWriter::getCategory | ( | ) |
Get category object.
Definition at line 59 of file class.ilCategoryXmlWriter.php.
References $category.
Referenced by buildHeader(), buildSorting(), and buildTranslations().
ilCategoryXmlWriter::getMode | ( | ) |
get export mode
Definition at line 50 of file class.ilCategoryXmlWriter.php.
References $mode.
Referenced by export().
ilCategoryXmlWriter::getXml | ( | ) |
get XML
Definition at line 87 of file class.ilCategoryXmlWriter.php.
References ilXmlWriter\xmlDumpMem().
ilCategoryXmlWriter::setMode | ( | $a_mode | ) |
Set export mode.
int | $a_mode |
Definition at line 41 of file class.ilCategoryXmlWriter.php.
|
private |
Definition at line 19 of file class.ilCategoryXmlWriter.php.
Referenced by getCategory().
|
private |
Definition at line 17 of file class.ilCategoryXmlWriter.php.
Referenced by getMode().
|
private |
Definition at line 18 of file class.ilCategoryXmlWriter.php.
const ilCategoryXmlWriter::MODE_EXPORT = 2 |
Definition at line 15 of file class.ilCategoryXmlWriter.php.
Referenced by ilCategoryExporter\getXmlRepresentation().
const ilCategoryXmlWriter::MODE_SOAP = 1 |
Definition at line 14 of file class.ilCategoryXmlWriter.php.