|
ILIAS
release_8 Revision v8.24
|
XML writer class Class to simplify manual writing of xml documents. More...
Inheritance diagram for ilObjectXMLWriter:
Collaboration diagram for ilObjectXMLWriter:Public Member Functions | |
| __construct () | |
| setMode (int $a_mode) | |
| getMode () | |
| setHighlighter (ilLuceneHighlighterResultParser $a_highlighter) | |
| getHighlighter () | |
| enablePermissionCheck (bool $a_status) | |
| isPermissionCheckEnabled () | |
| setUserId (int $a_id) | |
| getUserId () | |
| enableOperations (bool $a_status) | |
| enabledOperations () | |
| enableReferences (bool $a_stat) | |
| enabledReferences () | |
| setObjects (array $objects) | |
| getObjects () | |
| 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... | |
Static Public Member Functions | |
| static | appendPathToObject (ilXmlWriter $writer, int $refid) |
Data Fields | |
| const | MODE_SEARCH_RESULT = 1 |
| const | TIMING_DEACTIVATED = 0 |
| const | TIMING_TEMPORARILY_AVAILABLE = 1 |
| const | TIMING_PRESETTING = 2 |
| const | TIMING_VISIBILITY_OFF = 0 |
| const | TIMING_VISIBILITY_ON = 1 |
Protected Attributes | |
| string | $xml |
| bool | $enable_operations = false |
| bool | $enable_references = true |
| array | $objects = array() |
| int | $user_id = 0 |
| bool | $check_permission = false |
Private Member Functions | |
| appendTimeTargets (int $a_ref_id) | |
| Append time target settings for items inside of courses. More... | |
| appendObjectProperties (ilObject $obj) | |
| appendOperations (int $a_ref_id, string $a_type) | |
| appendPath (int $refid) | |
| buildHeader () | |
| buildFooter () | |
| getAccessInfo (ilObject $object, int $ref_id) | |
Private Attributes | |
| int | $mode = 0 |
| ilLuceneHighlighterResultParser | $highlighter = null |
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 16 of file class.ilObjectXMLWriter.php.
| ilObjectXMLWriter::__construct | ( | ) |
Definition at line 37 of file class.ilObjectXMLWriter.php.
References $DIC, $ilUser, and ILIAS\GlobalScreen\Provider\__construct().
Here is the call graph for this function:
|
private |
Definition at line 259 of file class.ilObjectXMLWriter.php.
References ilObject\getType(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Here is the call graph for this function:
|
private |
Definition at line 281 of file class.ilObjectXMLWriter.php.
References $DIC, $objects, $type, enabledOperations(), ilRbacReview\lookupCreateOperationIds(), and ilXmlWriter\xmlElement().
Here is the call graph for this function:
|
private |
Definition at line 330 of file class.ilObjectXMLWriter.php.
References appendPathToObject().
Here is the call graph for this function:
|
static |
Definition at line 365 of file class.ilObjectXMLWriter.php.
References $DIC, $lng, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by appendPath(), and ilSoapRoleObjectXMLWriter\start().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Append time target settings for items inside of courses.
| int | $ref_id | Reference id of object |
Definition at line 212 of file class.ilObjectXMLWriter.php.
References $DIC, $type, ilObjectActivation\getItem(), ILIAS\Repository\int(), TIMING_DEACTIVATED, TIMING_PRESETTING, TIMING_TEMPORARILY_AVAILABLE, ilObjectActivation\TIMINGS_ACTIVATION, ilObjectActivation\TIMINGS_DEACTIVATED, ilObjectActivation\TIMINGS_PRESETTING, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Here is the call graph for this function:
|
private |
Definition at line 343 of file class.ilObjectXMLWriter.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 335 of file class.ilObjectXMLWriter.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:| ilObjectXMLWriter::enabledOperations | ( | ) |
Definition at line 92 of file class.ilObjectXMLWriter.php.
References $enable_operations.
Referenced by appendOperations().
Here is the caller graph for this function:| ilObjectXMLWriter::enabledReferences | ( | ) |
Definition at line 102 of file class.ilObjectXMLWriter.php.
References $enable_references.
| ilObjectXMLWriter::enableOperations | ( | bool | $a_status | ) |
Definition at line 87 of file class.ilObjectXMLWriter.php.
| ilObjectXMLWriter::enablePermissionCheck | ( | bool | $a_status | ) |
Definition at line 67 of file class.ilObjectXMLWriter.php.
| ilObjectXMLWriter::enableReferences | ( | bool | $a_stat | ) |
Definition at line 97 of file class.ilObjectXMLWriter.php.
|
private |
Definition at line 348 of file class.ilObjectXMLWriter.php.
References $DIC, ilObject\getId(), ilObject\getType(), and getUserId().
Here is the call graph for this function:| ilObjectXMLWriter::getHighlighter | ( | ) |
Definition at line 62 of file class.ilObjectXMLWriter.php.
References $highlighter.
| ilObjectXMLWriter::getMode | ( | ) |
| ilObjectXMLWriter::getObjects | ( | ) |
Definition at line 112 of file class.ilObjectXMLWriter.php.
References $objects.
Referenced by start().
Here is the caller graph for this function:| ilObjectXMLWriter::getUserId | ( | ) |
Definition at line 82 of file class.ilObjectXMLWriter.php.
References $user_id.
Referenced by getAccessInfo().
Here is the caller graph for this function:| ilObjectXMLWriter::getXML | ( | ) |
Definition at line 143 of file class.ilObjectXMLWriter.php.
References ilXmlWriter\xmlDumpMem().
Here is the call graph for this function:| ilObjectXMLWriter::isPermissionCheckEnabled | ( | ) |
Definition at line 72 of file class.ilObjectXMLWriter.php.
References $check_permission.
Referenced by start().
Here is the caller graph for this function:| ilObjectXMLWriter::setHighlighter | ( | ilLuceneHighlighterResultParser | $a_highlighter | ) |
Definition at line 57 of file class.ilObjectXMLWriter.php.
| ilObjectXMLWriter::setMode | ( | int | $a_mode | ) |
Definition at line 47 of file class.ilObjectXMLWriter.php.
| ilObjectXMLWriter::setObjects | ( | array | $objects | ) |
Definition at line 107 of file class.ilObjectXMLWriter.php.
References $objects.
| ilObjectXMLWriter::setUserId | ( | int | $a_id | ) |
Definition at line 77 of file class.ilObjectXMLWriter.php.
| ilObjectXMLWriter::start | ( | ) |
Definition at line 117 of file class.ilObjectXMLWriter.php.
References $DIC, buildFooter(), buildHeader(), getObjects(), and isPermissionCheckEnabled().
Here is the call graph for this function:
|
protected |
Definition at line 35 of file class.ilObjectXMLWriter.php.
Referenced by isPermissionCheckEnabled().
|
protected |
Definition at line 31 of file class.ilObjectXMLWriter.php.
Referenced by enabledOperations().
|
protected |
Definition at line 32 of file class.ilObjectXMLWriter.php.
Referenced by enabledReferences().
|
private |
Definition at line 28 of file class.ilObjectXMLWriter.php.
Referenced by getHighlighter().
|
private |
Definition at line 27 of file class.ilObjectXMLWriter.php.
Referenced by getMode().
|
protected |
Definition at line 33 of file class.ilObjectXMLWriter.php.
Referenced by appendOperations(), getObjects(), and setObjects().
|
protected |
Definition at line 34 of file class.ilObjectXMLWriter.php.
Referenced by getUserId().
|
protected |
Definition at line 30 of file class.ilObjectXMLWriter.php.
| const ilObjectXMLWriter::MODE_SEARCH_RESULT = 1 |
Definition at line 18 of file class.ilObjectXMLWriter.php.
Referenced by ilSoapObjectAdministration\searchObjects().
| const ilObjectXMLWriter::TIMING_DEACTIVATED = 0 |
Definition at line 20 of file class.ilObjectXMLWriter.php.
Referenced by ilSoapObjectAdministration\addReferences(), appendTimeTargets(), and ilSoapObjectAdministration\updateReferences().
| const ilObjectXMLWriter::TIMING_PRESETTING = 2 |
Definition at line 22 of file class.ilObjectXMLWriter.php.
Referenced by ilSoapObjectAdministration\addReferences(), appendTimeTargets(), and ilSoapObjectAdministration\updateReferences().
| const ilObjectXMLWriter::TIMING_TEMPORARILY_AVAILABLE = 1 |
Definition at line 21 of file class.ilObjectXMLWriter.php.
Referenced by ilSoapObjectAdministration\addReferences(), appendTimeTargets(), and ilSoapObjectAdministration\updateReferences().
| const ilObjectXMLWriter::TIMING_VISIBILITY_OFF = 0 |
Definition at line 24 of file class.ilObjectXMLWriter.php.
| const ilObjectXMLWriter::TIMING_VISIBILITY_ON = 1 |
Definition at line 25 of file class.ilObjectXMLWriter.php.