ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilContainerReferenceExporter Class Reference

Class for category export. More...

+ Inheritance diagram for ilContainerReferenceExporter:
+ Collaboration diagram for ilContainerReferenceExporter:

Public Member Functions

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

Protected Member Functions

 initWriter (ilContainerReference $ref)

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
- Protected Attributes inherited from ilXmlExporter
 $dir_relative
 $dir_absolute

Detailed Description

Class for category export.

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e
Id:
class.ilContainerReferenceExporter.php 35412 2012-07-06 10:28:29Z smeyer

Definition at line 12 of file class.ilContainerReferenceExporter.php.

Member Function Documentation

ilContainerReferenceExporter::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

Reimplemented from ilXmlExporter.

Definition at line 81 of file class.ilContainerReferenceExporter.php.

{
return array (
"4.3.0" => array(
"namespace" => "http://www.ilias.de/Modules/CategoryReference/catr/4_3",
"xsd_file" => "ilias_catr_4_3.xsd",
"uses_dataset" => false,
"min" => "4.3.0",
"max" => "")
);
}
ilContainerReferenceExporter::getXmlExportHeadDependencies (   $a_entity,
  $a_target_release,
  $a_ids 
)

Get head dependencies.

Parameters
stringentity
stringtarget release
arrayids
Returns
array array of array with keys "component", entity", "ids"

Reimplemented from ilXmlExporter.

Definition at line 22 of file class.ilContainerReferenceExporter.php.

References $GLOBALS, ilExportOptions\getInstance(), and ilExportOptions\KEY_ROOT.

{
include_once './Services/Export/classes/class.ilExportOptions.php';
$obj_id = end($a_ids);
$GLOBALS['ilLog']->write(__METHOD__.': '.$obj_id);
if($eo->getOption(ilExportOptions::KEY_ROOT) != $obj_id)
{
return array();
}
if(count(ilExportOptions::getInstance()->getSubitemsForExport()) > 1)
{
return array(
array(
'component' => 'Services/Container',
'entity' => 'struct',
'ids' => $a_ids
)
);
}
return array();
}

+ Here is the call graph for this function:

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

Get xml.

Parameters
object$a_entity
object$a_schema_version
object$a_id
Returns

Reimplemented from ilXmlExporter.

Definition at line 58 of file class.ilContainerReferenceExporter.php.

References $GLOBALS, ilObject\_getAllReferences(), ilObjectFactory\getInstanceByRefId(), initWriter(), and ilContainerReferenceXmlWriter\MODE_EXPORT.

{
$ref_ref_id = end(ilObject::_getAllReferences($a_id));
$ref = ilObjectFactory::getInstanceByRefId($ref_ref_id,false);
if(!$ref instanceof ilContainerReference)
{
$GLOBALS['ilLog']->write(__METHOD__. $a_id . ' is not instance of type category!');
return '';
}
$writer = $this->initWriter($ref);
$writer->export(false);
return $writer->getXml();
}

+ Here is the call graph for this function:

ilContainerReferenceExporter::init ( )

Init method.

Reimplemented from ilXmlExporter.

Definition at line 96 of file class.ilContainerReferenceExporter.php.

{
}
ilContainerReferenceExporter::initWriter ( ilContainerReference  $ref)
abstractprotected

Reimplemented in ilCategoryReferenceExporter, and ilCourseReferenceExporter.

Referenced by getXmlRepresentation().

+ Here is the caller graph for this function:


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