ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilWebResourceExporter Class Reference

Booking definition. More...

+ Inheritance diagram for ilWebResourceExporter:
+ Collaboration diagram for ilWebResourceExporter:

Public Member Functions

 __construct ()
 Constructor. More...
 
 init ()
 Init export. More...
 
 getXmlRepresentation ($a_entity, $a_schema_version, $a_id)
 Get xml. More...
 
 getValidSchemaVersions ($a_entity)
 Returns schema versions that the component can export to. More...
 
- Public Member Functions inherited from ilXmlExporter
 __construct ()
 Constructor. More...
 
 setExport (ilExport $a_exp)
 Set export object. More...
 
 getExport ()
 Get export. More...
 
 getXmlRepresentation ($a_entity, $a_schema_version, $a_id)
 Get xml representation. More...
 
 init ()
 
 setExportDirectories ($a_dir_relative, $a_dir_absolute)
 Export directories. More...
 
 getRelativeExportDirectory ()
 Get relative export directory. More...
 
 getAbsoluteExportDirectory ()
 Get absolute export directory. More...
 
 getXmlExportHeadDependencies ($a_entity, $a_target_release, $a_ids)
 Get head dependencies. More...
 
 getXmlExportTailDependencies ($a_entity, $a_target_release, $a_ids)
 Get tail dependencies. More...
 
 getValidSchemaVersions ($a_entity)
 Returns schema versions that the component can export to. More...
 
 determineSchemaVersion ($a_entity, $a_target_release)
 Determine schema version. More...
 

Private Attributes

 $writer = null
 

Additional Inherited Members

- Static Public Member Functions inherited from ilXmlExporter
static lookupExportDirectory ($a_obj_type, $a_obj_id, $a_export_type='xml', $a_entity="")
 export directory lookup More...
 
- Protected Attributes inherited from ilXmlExporter
 $dir_relative
 
 $dir_absolute
 
 $exp
 

Detailed Description

Booking definition.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 17 of file class.ilWebResourceExporter.php.

Constructor & Destructor Documentation

◆ __construct()

ilWebResourceExporter::__construct ( )

Constructor.

Definition at line 24 of file class.ilWebResourceExporter.php.

25  {
26 
27  }

Member Function Documentation

◆ getValidSchemaVersions()

ilWebResourceExporter::getValidSchemaVersions (   $a_entity)

Returns schema versions that the component can export to.

ILIAS chooses the first one, that has min/max constraints which fit to the target release. Please put the newest on top.

Returns

Definition at line 68 of file class.ilWebResourceExporter.php.

References array.

69  {
70  return array (
71  "4.1.0" => array(
72  "namespace" => "http://www.ilias.de/Modules/WebResource/webr/4_1",
73  "xsd_file" => "ilias_webr_4_1.xsd",
74  "uses_dataset" => false,
75  "min" => "4.1.0",
76  "max" => "")
77  );
78  }
Create styles array
The data for the language used.

◆ getXmlRepresentation()

ilWebResourceExporter::getXmlRepresentation (   $a_entity,
  $a_schema_version,
  $a_id 
)

Get xml.

Parameters
object$a_entity
object$a_schema_version
object$a_id
Returns

Definition at line 44 of file class.ilWebResourceExporter.php.

References $GLOBALS.

45  {
46  try
47  {
48  $this->writer = new ilWebLinkXmlWriter(false);
49  $this->writer->setObjId($a_id);
50  $this->writer->write();
51  return $this->writer->xmlDumpMem(false);
52 
53  }
54  catch(UnexpectedValueException $e)
55  {
56  $GLOBALS['ilLog']->write("Caught error: ".$e->getMessage());
57  return '';
58  }
59  }
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
XML writer for weblinks.

◆ init()

ilWebResourceExporter::init ( )

Init export.

Returns

Definition at line 33 of file class.ilWebResourceExporter.php.

34  {
35  }

Field Documentation

◆ $writer

ilWebResourceExporter::$writer = null
private

Definition at line 19 of file class.ilWebResourceExporter.php.


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