| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
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 14 of file class.ilObjectXMLWriter.php.
| ilObjectXMLWriter::__construct | ( | ) | 
Definition at line 35 of file class.ilObjectXMLWriter.php.
References $DIC, and ILIAS\GlobalScreen\Provider\__construct().
 Here is the call graph for this function:
      
  | 
  private | 
Definition at line 256 of file class.ilObjectXMLWriter.php.
References ilObject\getType(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by getXML().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 278 of file class.ilObjectXMLWriter.php.
References $DIC, enabledOperations(), ilRbacReview\lookupCreateOperationIds(), and ilXmlWriter\xmlElement().
Referenced by getXML().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 327 of file class.ilObjectXMLWriter.php.
Referenced by getXML().
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 360 of file class.ilObjectXMLWriter.php.
References $DIC, $lng, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by 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 210 of file class.ilObjectXMLWriter.php.
References $DIC, ilObjectActivation\getItem(), ILIAS\Repository\int(), ilObjectActivation\TIMINGS_ACTIVATION, ilObjectActivation\TIMINGS_DEACTIVATED, ilObjectActivation\TIMINGS_PRESETTING, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by getXML().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 340 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 332 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 90 of file class.ilObjectXMLWriter.php.
References $enable_operations.
Referenced by appendOperations().
 Here is the caller graph for this function:| ilObjectXMLWriter::enabledReferences | ( | ) | 
Definition at line 100 of file class.ilObjectXMLWriter.php.
References $enable_references.
Referenced by getXML().
 Here is the caller graph for this function:| ilObjectXMLWriter::enableOperations | ( | bool | $a_status | ) | 
Definition at line 85 of file class.ilObjectXMLWriter.php.
| ilObjectXMLWriter::enablePermissionCheck | ( | bool | $a_status | ) | 
Definition at line 65 of file class.ilObjectXMLWriter.php.
| ilObjectXMLWriter::enableReferences | ( | bool | $a_stat | ) | 
Definition at line 95 of file class.ilObjectXMLWriter.php.
      
  | 
  private | 
Definition at line 345 of file class.ilObjectXMLWriter.php.
References $DIC, ilObject\getId(), ilObject\getType(), and getUserId().
Referenced by getXML().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilObjectXMLWriter::getHighlighter | ( | ) | 
Definition at line 60 of file class.ilObjectXMLWriter.php.
References $highlighter.
| ilObjectXMLWriter::getMode | ( | ) | 
| ilObjectXMLWriter::getObjects | ( | ) | 
Definition at line 110 of file class.ilObjectXMLWriter.php.
References $objects.
Referenced by start().
 Here is the caller graph for this function:| ilObjectXMLWriter::getUserId | ( | ) | 
Definition at line 80 of file class.ilObjectXMLWriter.php.
References $user_id.
Referenced by getAccessInfo().
 Here is the caller graph for this function:| ilObjectXMLWriter::getXML | ( | ) | 
Definition at line 141 of file class.ilObjectXMLWriter.php.
References $DIC, $id, $ref_id, ilObject\_getAllReferences(), appendObjectProperties(), appendOperations(), appendPath(), appendTimeTargets(), enabledReferences(), getAccessInfo(), ilObject\getCreateDate(), ilObject\getDescription(), ilObject\getId(), ilObject\getImportId(), ilObject\getLastUpdateDate(), ilObject\getOfflineStatus(), ilObject\getOwner(), ilObject\getRefId(), ilObject\getTitle(), ilObject\getType(), ILIAS\Repository\int(), ilXmlWriter\xmlDumpMem(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
 Here is the call graph for this function:| ilObjectXMLWriter::isPermissionCheckEnabled | ( | ) | 
Definition at line 70 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 55 of file class.ilObjectXMLWriter.php.
| ilObjectXMLWriter::setMode | ( | int | $a_mode | ) | 
Definition at line 45 of file class.ilObjectXMLWriter.php.
| ilObjectXMLWriter::setObjects | ( | array | $objects | ) | 
| ilObjectXMLWriter::setUserId | ( | int | $a_id | ) | 
Definition at line 75 of file class.ilObjectXMLWriter.php.
| ilObjectXMLWriter::start | ( | ) | 
Definition at line 115 of file class.ilObjectXMLWriter.php.
References $DIC, buildFooter(), buildHeader(), getObjects(), and isPermissionCheckEnabled().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 33 of file class.ilObjectXMLWriter.php.
Referenced by isPermissionCheckEnabled().
      
  | 
  protected | 
Definition at line 29 of file class.ilObjectXMLWriter.php.
Referenced by enabledOperations().
      
  | 
  protected | 
Definition at line 30 of file class.ilObjectXMLWriter.php.
Referenced by enabledReferences().
      
  | 
  private | 
Definition at line 26 of file class.ilObjectXMLWriter.php.
Referenced by getHighlighter().
      
  | 
  private | 
Definition at line 25 of file class.ilObjectXMLWriter.php.
Referenced by getMode().
      
  | 
  protected | 
Definition at line 31 of file class.ilObjectXMLWriter.php.
Referenced by getObjects(), and setObjects().
      
  | 
  protected | 
Definition at line 32 of file class.ilObjectXMLWriter.php.
Referenced by getUserId().
      
  | 
  protected | 
Definition at line 28 of file class.ilObjectXMLWriter.php.
| const ilObjectXMLWriter::MODE_SEARCH_RESULT = 1 | 
Definition at line 16 of file class.ilObjectXMLWriter.php.
Referenced by ilSoapObjectAdministration\searchObjects().
| const ilObjectXMLWriter::TIMING_DEACTIVATED = 0 | 
Definition at line 18 of file class.ilObjectXMLWriter.php.
Referenced by ilSoapObjectAdministration\addReferences(), and ilSoapObjectAdministration\updateReferences().
| const ilObjectXMLWriter::TIMING_PRESETTING = 2 | 
Definition at line 20 of file class.ilObjectXMLWriter.php.
Referenced by ilSoapObjectAdministration\addReferences(), and ilSoapObjectAdministration\updateReferences().
| const ilObjectXMLWriter::TIMING_TEMPORARILY_AVAILABLE = 1 | 
Definition at line 19 of file class.ilObjectXMLWriter.php.
Referenced by ilSoapObjectAdministration\addReferences(), and ilSoapObjectAdministration\updateReferences().
| const ilObjectXMLWriter::TIMING_VISIBILITY_OFF = 0 | 
Definition at line 22 of file class.ilObjectXMLWriter.php.
| const ilObjectXMLWriter::TIMING_VISIBILITY_ON = 1 | 
Definition at line 23 of file class.ilObjectXMLWriter.php.