ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
XML writer class. More...
Public Member Functions | |
__construct () | |
constructor More... | |
setMode ($a_mode) | |
setHighlighter ($a_highlighter) | |
enablePermissionCheck ($a_status) | |
isPermissionCheckEnabled () | |
setUserId ($a_id) | |
getUserId () | |
enableOperations ($a_status) | |
enabledOperations () | |
enableReferences ($a_stat) | |
enabledReferences () | |
setObjects ($objects) | |
__getObjects () | |
start () | |
getXML () | |
__appendTimeTargets ($a_ref_id) | |
Append time target settings for items inside of courses. More... | |
__appendObjectProperties (ilObject $obj) | |
Append object properties. More... | |
__appendOperations ($a_ref_id, $a_type) | |
__appendPath ($refid) | |
__buildHeader () | |
__buildFooter () | |
__getAccessInfo (&$object, $ref_id) | |
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... | |
Static Public Member Functions | |
static | appendPathToObject ($writer, $refid) |
Static Public Member Functions inherited from ilXmlWriter | |
static | _xmlEscapeData ($data) |
Escapes reserved characters. More... | |
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 |
$ilias | |
$xml | |
$enable_operations = false | |
$objects = array() | |
$user_id = 0 | |
Data Fields inherited from ilXmlWriter | |
$xmlStr | |
$version | |
$outEnc | |
$inEnc | |
$dtdDef = "" | |
$stSheet = "" | |
$genCmt = "Generated by ILIAS XmlWriter" | |
Protected Attributes | |
$check_permission = false | |
Private Attributes | |
$mode = 0 | |
$highlighter = null | |
$enable_references = true | |
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.ilObjectXMLWriter.php.
ilObjectXMLWriter::__construct | ( | ) |
constructor
string | xml version |
string | output encoding |
string | input encoding public |
Definition at line 56 of file class.ilObjectXMLWriter.php.
References $DIC, $ilias, and $ilUser.
ilObjectXMLWriter::__appendObjectProperties | ( | ilObject | $obj | ) |
Append object properties.
ilObject | $obj |
Definition at line 317 of file class.ilObjectXMLWriter.php.
References $size, ilObjFileAccess\_lookupFileSize(), ilObjFileAccess\_lookupSuffix(), ilObjFileAccess\_lookupVersion(), ilObject\getId(), ilObject\getType(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by getXML().
ilObjectXMLWriter::__appendOperations | ( | $a_ref_id, | |
$a_type | |||
) |
Definition at line 337 of file class.ilObjectXMLWriter.php.
References $a_type, $DIC, $info, $objects, $type, enabledOperations(), ilRbacReview\lookupCreateOperationIds(), and ilXmlWriter\xmlElement().
Referenced by getXML().
ilObjectXMLWriter::__appendPath | ( | $refid | ) |
Definition at line 380 of file class.ilObjectXMLWriter.php.
References appendPathToObject().
Referenced by getXML().
ilObjectXMLWriter::__appendTimeTargets | ( | $a_ref_id | ) |
Append time target settings for items inside of courses.
int | $ref_id | Reference id of object |
Definition at line 258 of file class.ilObjectXMLWriter.php.
References $DIC, $tree, $type, ilObjectActivation\getItem(), ilObjectActivation\TIMINGS_ACTIVATION, ilObjectActivation\TIMINGS_DEACTIVATED, ilObjectActivation\TIMINGS_PRESETTING, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by getXML().
ilObjectXMLWriter::__buildFooter | ( | ) |
Definition at line 394 of file class.ilObjectXMLWriter.php.
References ilXmlWriter\xmlEndTag().
Referenced by start().
ilObjectXMLWriter::__buildHeader | ( | ) |
Definition at line 385 of file class.ilObjectXMLWriter.php.
References ilXmlWriter\xmlHeader(), ilXmlWriter\xmlSetDtdDef(), ilXmlWriter\xmlSetGenCmt(), and ilXmlWriter\xmlStartTag().
Referenced by start().
ilObjectXMLWriter::__getAccessInfo | ( | & | $object, |
$ref_id | |||
) |
Definition at line 399 of file class.ilObjectXMLWriter.php.
References $DIC, $info, ilObject\getId(), ilObject\getType(), and getUserId().
Referenced by getXML().
ilObjectXMLWriter::__getObjects | ( | ) |
Definition at line 131 of file class.ilObjectXMLWriter.php.
Referenced by start().
|
static |
Definition at line 417 of file class.ilObjectXMLWriter.php.
References $DIC, $lng, and $tree.
Referenced by __appendPath(), and ilSoapRoleObjectXMLWriter\start().
ilObjectXMLWriter::enabledOperations | ( | ) |
Definition at line 108 of file class.ilObjectXMLWriter.php.
References $enable_operations.
Referenced by __appendOperations().
ilObjectXMLWriter::enabledReferences | ( | ) |
Definition at line 119 of file class.ilObjectXMLWriter.php.
References $enable_references.
Referenced by getXML().
ilObjectXMLWriter::enableOperations | ( | $a_status | ) |
Definition at line 101 of file class.ilObjectXMLWriter.php.
ilObjectXMLWriter::enablePermissionCheck | ( | $a_status | ) |
Definition at line 82 of file class.ilObjectXMLWriter.php.
ilObjectXMLWriter::enableReferences | ( | $a_stat | ) |
Definition at line 114 of file class.ilObjectXMLWriter.php.
ilObjectXMLWriter::getUserId | ( | ) |
Definition at line 96 of file class.ilObjectXMLWriter.php.
References $user_id.
Referenced by __getAccessInfo(), and start().
ilObjectXMLWriter::getXML | ( | ) |
Definition at line 158 of file class.ilObjectXMLWriter.php.
References $description, $DIC, $id, $title, $tree, __appendObjectProperties(), __appendOperations(), __appendPath(), __appendTimeTargets(), __getAccessInfo(), ilObject\_getAllReferences(), enabledReferences(), ilObject\getCreateDate(), ilObject\getDescription(), ilObject\getId(), ilObject\getImportId(), ilObject\getLastUpdateDate(), ilObject\getOfflineStatus(), ilObject\getOwner(), ilObject\getRefId(), ilObject\getTitle(), ilObject\getType(), ilXmlWriter\xmlDumpMem(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
ilObjectXMLWriter::isPermissionCheckEnabled | ( | ) |
Definition at line 87 of file class.ilObjectXMLWriter.php.
References $check_permission.
Referenced by start().
ilObjectXMLWriter::setHighlighter | ( | $a_highlighter | ) |
Definition at line 75 of file class.ilObjectXMLWriter.php.
ilObjectXMLWriter::setMode | ( | $a_mode | ) |
Definition at line 70 of file class.ilObjectXMLWriter.php.
ilObjectXMLWriter::setObjects | ( | $objects | ) |
ilObjectXMLWriter::setUserId | ( | $a_id | ) |
Definition at line 92 of file class.ilObjectXMLWriter.php.
ilObjectXMLWriter::start | ( | ) |
Definition at line 136 of file class.ilObjectXMLWriter.php.
References $DIC, __buildFooter(), __buildHeader(), __getObjects(), getUserId(), and isPermissionCheckEnabled().
|
protected |
Definition at line 47 of file class.ilObjectXMLWriter.php.
Referenced by isPermissionCheckEnabled().
ilObjectXMLWriter::$enable_operations = false |
Definition at line 40 of file class.ilObjectXMLWriter.php.
Referenced by enabledOperations().
|
private |
Definition at line 42 of file class.ilObjectXMLWriter.php.
Referenced by enabledReferences().
|
private |
Definition at line 25 of file class.ilObjectXMLWriter.php.
ilObjectXMLWriter::$ilias |
Definition at line 37 of file class.ilObjectXMLWriter.php.
Referenced by __construct().
|
private |
Definition at line 24 of file class.ilObjectXMLWriter.php.
ilObjectXMLWriter::$objects = array() |
Definition at line 44 of file class.ilObjectXMLWriter.php.
Referenced by __appendOperations(), and setObjects().
ilObjectXMLWriter::$user_id = 0 |
Definition at line 45 of file class.ilObjectXMLWriter.php.
Referenced by getUserId().
ilObjectXMLWriter::$xml |
Definition at line 39 of file class.ilObjectXMLWriter.php.
const ilObjectXMLWriter::MODE_SEARCH_RESULT = 1 |
Definition at line 22 of file class.ilObjectXMLWriter.php.
const ilObjectXMLWriter::TIMING_DEACTIVATED = 0 |
Definition at line 29 of file class.ilObjectXMLWriter.php.
Referenced by ilSoapObjectAdministration\addReferences(), and ilSoapObjectAdministration\updateReferences().
const ilObjectXMLWriter::TIMING_PRESETTING = 2 |
Definition at line 31 of file class.ilObjectXMLWriter.php.
Referenced by ilSoapObjectAdministration\addReferences(), and ilSoapObjectAdministration\updateReferences().
const ilObjectXMLWriter::TIMING_TEMPORARILY_AVAILABLE = 1 |
Definition at line 30 of file class.ilObjectXMLWriter.php.
Referenced by ilSoapObjectAdministration\addReferences(), and ilSoapObjectAdministration\updateReferences().
const ilObjectXMLWriter::TIMING_VISIBILITY_OFF = 0 |
Definition at line 33 of file class.ilObjectXMLWriter.php.
const ilObjectXMLWriter::TIMING_VISIBILITY_ON = 1 |
Definition at line 34 of file class.ilObjectXMLWriter.php.