ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilCategoryReferenceXmlWriter Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilCategoryReferenceXmlWriter:
+ Collaboration diagram for ilCategoryReferenceXmlWriter:

Public Member Functions

 __construct (ilObjCategoryReference $ref=null)
 
- Public Member Functions inherited from ilContainerReferenceXmlWriter
 __construct (ilContainerReference $ref=null)
 
 setMode (int $a_mode)
 
 getMode ()
 
 getReference ()
 
 export (bool $a_with_header=true)
 
 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...
 

Protected Member Functions

 buildHeader ()
 
- Protected Member Functions inherited from ilContainerReferenceXmlWriter
 buildHeader ()
 
 buildTarget ()
 
 buildTitle ()
 
 buildReference ()
 
 buildFooter ()
 

Additional Inherited Members

- Data Fields inherited from ilContainerReferenceXmlWriter
const MODE_SOAP = 1
 
const MODE_EXPORT = 2
 
- Protected Attributes inherited from ilContainerReferenceXmlWriter
ilSetting $settings
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class for container reference export

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e

Definition at line 26 of file class.ilCategoryReferenceXmlWriter.php.

Constructor & Destructor Documentation

◆ __construct()

ilCategoryReferenceXmlWriter::__construct ( ilObjCategoryReference  $ref = null)

Definition at line 28 of file class.ilCategoryReferenceXmlWriter.php.

References $DIC, ilContainerReferenceXmlWriter\$ref, ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\Repository\settings().

29  {
30  global $DIC;
31 
32  $this->settings = $DIC->settings();
33  parent::__construct($ref);
34  }
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ buildHeader()

ilCategoryReferenceXmlWriter::buildHeader ( )
protected

Definition at line 36 of file class.ilCategoryReferenceXmlWriter.php.

References $ilSetting, ilContainerReferenceXmlWriter\$settings, ILIAS\Survey\Mode\getId(), ilContainerReferenceXmlWriter\getReference(), ilXmlWriter\xmlHeader(), ilXmlWriter\xmlSetDtdDef(), and ilXmlWriter\xmlSetGenCmt().

36  : void
37  {
39 
40  $this->xmlSetDtdDef("<!DOCTYPE category reference PUBLIC \"-//ILIAS//DTD Group//EN\" \"" . ILIAS_HTTP_PATH . "/xml/ilias_category_reference_4_3.dtd\">");
41  $this->xmlSetGenCmt("Export of ILIAS category reference " . $this->getReference()->getId() . " of installation " . $ilSetting->get('inst_id') . ".");
42  $this->xmlHeader();
43  }
xmlSetGenCmt(string $genCmt)
Sets generated comment.
xmlSetDtdDef(string $dtdDef)
Sets dtd definition.
xmlHeader()
Writes xml header.
global $ilSetting
Definition: privfeed.php:17
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: