|
ILIAS
release_8 Revision v8.24
|
XML writer class Class to simplify manual writing of xml documents. More...
Inheritance diagram for ilSoapRoleObjectXMLWriter:
Collaboration diagram for ilSoapRoleObjectXMLWriter:Public Member Functions | |
| __construct () | |
| setObjects (array $roles) | |
| setType (string $type) | |
| start () | |
| getXML () | |
Public Member Functions inherited from ilXmlWriter | |
| __construct (string $version="1.0", string $outEnc="utf-8", string $inEnc="utf-8") | |
| xmlSetDtdDef (string $dtdDef) | |
| Sets dtd definition. More... | |
| xmlSetGenCmt (string $genCmt) | |
| Sets generated comment. More... | |
| xmlFormatData (string $data) | |
| Indents text for better reading. More... | |
| xmlHeader () | |
| Writes xml header. More... | |
| xmlStartTag (string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true) | |
| Writes a starttag. More... | |
| xmlEndTag (string $tag) | |
| Writes an endtag. More... | |
| xmlData (string $data, bool $encode=true, bool $escape=true) | |
| Writes data. More... | |
| xmlElement (string $tag, $attrs=null, $data=null, $encode=true, $escape=true) | |
| Writes a basic element (no children, just textual content) More... | |
| xmlDumpFile (string $file, bool $format=true) | |
| Dumps xml document from memory into a file. More... | |
| xmlDumpMem (bool $format=true) | |
| Returns xml document from memory. More... | |
| appendXML (string $a_str) | |
| append xml string to document More... | |
| xmlClear () | |
| clears xmlStr More... | |
Data Fields | |
| string | $xml = '' |
Private Member Functions | |
| buildHeader () | |
| buildFooter () | |
Private Attributes | |
| array | $roles = [] |
| string | $role_type = '' |
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 15 of file class.ilSoapRoleObjectXMLWriter.php.
| ilSoapRoleObjectXMLWriter::__construct | ( | ) |
Definition at line 21 of file class.ilSoapRoleObjectXMLWriter.php.
References $DIC, $ilUser, and ILIAS\GlobalScreen\Provider\__construct().
Here is the call graph for this function:
|
private |
Definition at line 116 of file class.ilSoapRoleObjectXMLWriter.php.
References ilXmlWriter\xmlEndTag().
Referenced by start().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 108 of file class.ilSoapRoleObjectXMLWriter.php.
References ilXmlWriter\xmlHeader(), ilXmlWriter\xmlSetDtdDef(), ilXmlWriter\xmlSetGenCmt(), and ilXmlWriter\xmlStartTag().
Referenced by start().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSoapRoleObjectXMLWriter::getXML | ( | ) |
Definition at line 103 of file class.ilSoapRoleObjectXMLWriter.php.
References ilXmlWriter\xmlDumpMem().
Here is the call graph for this function:| ilSoapRoleObjectXMLWriter::setObjects | ( | array | $roles | ) |
Definition at line 30 of file class.ilSoapRoleObjectXMLWriter.php.
References $roles.
| ilSoapRoleObjectXMLWriter::setType | ( | string | $type | ) |
Definition at line 35 of file class.ilSoapRoleObjectXMLWriter.php.
References $type.
| ilSoapRoleObjectXMLWriter::start | ( | ) |
Definition at line 40 of file class.ilSoapRoleObjectXMLWriter.php.
References $DIC, $ref_id, ilUtil\__extractRefId(), ilObjRole\_getTranslation(), ilObjectXMLWriter\appendPathToObject(), buildFooter(), buildHeader(), ilObjectFactory\getInstanceByRefId(), IL_INST_ID, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Here is the call graph for this function:
|
private |
Definition at line 19 of file class.ilSoapRoleObjectXMLWriter.php.
|
private |
Definition at line 18 of file class.ilSoapRoleObjectXMLWriter.php.
Referenced by setObjects().
| string ilSoapRoleObjectXMLWriter::$xml = '' |
Definition at line 17 of file class.ilSoapRoleObjectXMLWriter.php.