| ILIAS
    Release_4_1_x_branch Revision 61804
    | 
XML writer class. More...
 Inheritance diagram for ilObjectXMLWriter:
 Inheritance diagram for ilObjectXMLWriter: Collaboration diagram for ilObjectXMLWriter:
 Collaboration diagram for ilObjectXMLWriter:| Public Member Functions | |
| ilObjectXMLWriter () | |
| constructor | |
| enablePermissionCheck ($a_status) | |
| isPermissionCheckEnabled () | |
| setUserId ($a_id) | |
| getUserId () | |
| enableOperations ($a_status) | |
| enabledOperations () | |
| setObjects ($objects) | |
| __getObjects () | |
| start () | |
| getXML () | |
| __appendObject (&$object) | |
| __appendTimeTargets ($a_ref_id) | |
| Append time target settings for items inside of courses. | |
| __appendOperations ($a_ref_id, $a_type) | |
| __appendPath ($refid) | |
| __buildHeader () | |
| __buildFooter () | |
| __getAccessInfo (&$object, $ref_id) | |
|  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 | |
| Static Public Member Functions | |
| static | appendPathToObject ($writer, $refid) | 
| Data Fields | |
| 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 | |
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::__appendObject | ( | & | $object | ) | 
Definition at line 125 of file class.ilObjectXMLWriter.php.
References $ref_id, __appendOperations(), __appendPath(), __appendTimeTargets(), __getAccessInfo(), ilObject\_getAllReferences(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by start().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjectXMLWriter::__appendOperations | ( | $a_ref_id, | |
| $a_type | |||
| ) | 
Definition at line 230 of file class.ilObjectXMLWriter.php.
References enabledOperations(), and ilXmlWriter\xmlElement().
Referenced by __appendObject().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjectXMLWriter::__appendPath | ( | $refid | ) | 
Definition at line 254 of file class.ilObjectXMLWriter.php.
References appendPathToObject().
Referenced by __appendObject().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjectXMLWriter::__appendTimeTargets | ( | $a_ref_id | ) | 
Append time target settings for items inside of courses.
| int | $ref_id | Reference id of object | 
Definition at line 168 of file class.ilObjectXMLWriter.php.
References ilCourseItems\_getItem(), IL_CRS_TIMINGS_ACTIVATION, IL_CRS_TIMINGS_DEACTIVATED, IL_CRS_TIMINGS_PRESETTING, TIMING_DEACTIVATED, TIMING_PRESETTING, TIMING_TEMPORARILY_AVAILABLE, TIMING_VISIBILITY_ON, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by __appendObject().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjectXMLWriter::__buildFooter | ( | ) | 
Definition at line 267 of file class.ilObjectXMLWriter.php.
References ilXmlWriter\xmlEndTag().
Referenced by start().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjectXMLWriter::__buildHeader | ( | ) | 
Definition at line 258 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 call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjectXMLWriter::__getAccessInfo | ( | & | $object, | 
| $ref_id | |||
| ) | 
Definition at line 272 of file class.ilObjectXMLWriter.php.
References $ref_id, and getUserId().
Referenced by __appendObject().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjectXMLWriter::__getObjects | ( | ) | 
Definition at line 91 of file class.ilObjectXMLWriter.php.
Referenced by start().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Definition at line 291 of file class.ilObjectXMLWriter.php.
References $lng.
Referenced by __appendPath(), and ilSoapRoleObjectXMLWriter\start().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjectXMLWriter::enabledOperations | ( | ) | 
Definition at line 81 of file class.ilObjectXMLWriter.php.
References $enable_operations.
Referenced by __appendOperations().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjectXMLWriter::enableOperations | ( | $a_status | ) | 
Definition at line 74 of file class.ilObjectXMLWriter.php.
| ilObjectXMLWriter::enablePermissionCheck | ( | $a_status | ) | 
Definition at line 55 of file class.ilObjectXMLWriter.php.
| ilObjectXMLWriter::getUserId | ( | ) | 
Definition at line 69 of file class.ilObjectXMLWriter.php.
References $user_id.
Referenced by __getAccessInfo(), and start().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjectXMLWriter::getXML | ( | ) | 
Definition at line 118 of file class.ilObjectXMLWriter.php.
References ilXmlWriter\xmlDumpMem().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilObjectXMLWriter::ilObjectXMLWriter | ( | ) | 
constructor
| string | xml version | 
| string | output encoding | 
| string | input encoding public | 
Definition at line 45 of file class.ilObjectXMLWriter.php.
References $ilias, and ilXmlWriter\ilXmlWriter().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilObjectXMLWriter::isPermissionCheckEnabled | ( | ) | 
Definition at line 60 of file class.ilObjectXMLWriter.php.
References $check_permission.
Referenced by start().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjectXMLWriter::setObjects | ( | $objects | ) | 
Definition at line 86 of file class.ilObjectXMLWriter.php.
References $objects.
| ilObjectXMLWriter::setUserId | ( | $a_id | ) | 
Definition at line 65 of file class.ilObjectXMLWriter.php.
| ilObjectXMLWriter::start | ( | ) | 
Definition at line 96 of file class.ilObjectXMLWriter.php.
References __appendObject(), __buildFooter(), __buildHeader(), __getObjects(), getUserId(), and isPermissionCheckEnabled().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Definition at line 36 of file class.ilObjectXMLWriter.php.
Referenced by isPermissionCheckEnabled().
| ilObjectXMLWriter::$enable_operations = false | 
Definition at line 32 of file class.ilObjectXMLWriter.php.
Referenced by enabledOperations().
| ilObjectXMLWriter::$ilias | 
Definition at line 29 of file class.ilObjectXMLWriter.php.
Referenced by ilObjectXMLWriter().
| ilObjectXMLWriter::$objects = array() | 
Definition at line 33 of file class.ilObjectXMLWriter.php.
Referenced by setObjects().
| ilObjectXMLWriter::$user_id = 0 | 
Definition at line 34 of file class.ilObjectXMLWriter.php.
Referenced by getUserId().
| ilObjectXMLWriter::$xml | 
Definition at line 31 of file class.ilObjectXMLWriter.php.
| const ilObjectXMLWriter::TIMING_DEACTIVATED = 0 | 
Definition at line 21 of file class.ilObjectXMLWriter.php.
Referenced by __appendTimeTargets(), ilSoapObjectAdministration\addReferences(), and ilSoapObjectAdministration\updateReferences().
| const ilObjectXMLWriter::TIMING_PRESETTING = 2 | 
Definition at line 23 of file class.ilObjectXMLWriter.php.
Referenced by __appendTimeTargets(), ilSoapObjectAdministration\addReferences(), and ilSoapObjectAdministration\updateReferences().
| const ilObjectXMLWriter::TIMING_TEMPORARILY_AVAILABLE = 1 | 
Definition at line 22 of file class.ilObjectXMLWriter.php.
Referenced by __appendTimeTargets(), ilSoapObjectAdministration\addReferences(), and ilSoapObjectAdministration\updateReferences().
| const ilObjectXMLWriter::TIMING_VISIBILITY_OFF = 0 | 
Definition at line 25 of file class.ilObjectXMLWriter.php.
| const ilObjectXMLWriter::TIMING_VISIBILITY_ON = 1 | 
Definition at line 26 of file class.ilObjectXMLWriter.php.
Referenced by __appendTimeTargets().