ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
XML writer class. More...
Public Member Functions | |
__construct () | |
constructor More... | |
setObjects (&$roles) | |
setType ($type) | |
start () | |
getXML () | |
__buildHeader () | |
__buildFooter () | |
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 | |
$ilias | |
$xml | |
$roles | |
$role_type | |
$user_id = 0 | |
Data Fields inherited from ilXmlWriter | |
$xmlStr | |
$version | |
$outEnc | |
$inEnc | |
$dtdDef = "" | |
$stSheet = "" | |
$genCmt = "Generated by ILIAS XmlWriter" | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilXmlWriter | |
static | _xmlEscapeData ($data) |
Escapes reserved characters. More... | |
XML writer class.
Class to simplify manual writing of xml documents. It only supports writing xml sequentially, because the xml document is saved in a string with no additional structure information. The author is responsible for well-formedness and validity of the xml document.
Definition at line 19 of file class.ilSoapRoleObjectXMLWriter.php.
ilSoapRoleObjectXMLWriter::__construct | ( | ) |
constructor
string | xml version |
string | output encoding |
string | input encoding public |
Definition at line 34 of file class.ilSoapRoleObjectXMLWriter.php.
References $DIC, $ilias, and $ilUser.
ilSoapRoleObjectXMLWriter::__buildFooter | ( | ) |
Definition at line 132 of file class.ilSoapRoleObjectXMLWriter.php.
References ilXmlWriter\xmlEndTag().
Referenced by start().
ilSoapRoleObjectXMLWriter::__buildHeader | ( | ) |
Definition at line 121 of file class.ilSoapRoleObjectXMLWriter.php.
References ilXmlWriter\xmlHeader(), ilXmlWriter\xmlSetDtdDef(), ilXmlWriter\xmlSetGenCmt(), and ilXmlWriter\xmlStartTag().
Referenced by start().
ilSoapRoleObjectXMLWriter::getXML | ( | ) |
Definition at line 115 of file class.ilSoapRoleObjectXMLWriter.php.
References ilXmlWriter\xmlDumpMem().
ilSoapRoleObjectXMLWriter::setObjects | ( | & | $roles | ) |
ilSoapRoleObjectXMLWriter::setType | ( | $type | ) |
Definition at line 53 of file class.ilSoapRoleObjectXMLWriter.php.
References $type.
ilSoapRoleObjectXMLWriter::start | ( | ) |
Definition at line 59 of file class.ilSoapRoleObjectXMLWriter.php.
References $DIC, __buildFooter(), __buildHeader(), ilUtil\__extractRefId(), ilObjRole\_getTranslation(), ilObjectXMLWriter\appendPathToObject(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
ilSoapRoleObjectXMLWriter::$ilias |
Definition at line 21 of file class.ilSoapRoleObjectXMLWriter.php.
Referenced by __construct().
ilSoapRoleObjectXMLWriter::$role_type |
Definition at line 24 of file class.ilSoapRoleObjectXMLWriter.php.
ilSoapRoleObjectXMLWriter::$roles |
Definition at line 23 of file class.ilSoapRoleObjectXMLWriter.php.
Referenced by setObjects().
ilSoapRoleObjectXMLWriter::$user_id = 0 |
Definition at line 25 of file class.ilSoapRoleObjectXMLWriter.php.
ilSoapRoleObjectXMLWriter::$xml |
Definition at line 22 of file class.ilSoapRoleObjectXMLWriter.php.