ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilGroupExporter Class Reference

Folder export. More...

+ Inheritance diagram for ilGroupExporter:
+ Collaboration diagram for ilGroupExporter:

Public Member Functions

 __construct ()
 Constructor.
 init ()
 Init export.
 getXmlExportHeadDependencies ($a_entity, $a_target_release, $a_ids)
 Get head dependencies.
 getXmlRepresentation ($a_entity, $a_target_release, $a_id)
 Get xml.
 getValidSchemaVersions ($a_entity)
 Returns schema versions that the component can export to.
- Public Member Functions inherited from ilXmlExporter
 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.

Private Attributes

 $writer = null

Additional Inherited Members

- Protected Attributes inherited from ilXmlExporter
 $dir_relative
 $dir_absolute

Detailed Description

Folder export.

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

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

Constructor & Destructor Documentation

ilGroupExporter::__construct ( )

Constructor.

Reimplemented from ilXmlExporter.

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

{
}

Member Function Documentation

ilGroupExporter::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 104 of file class.ilGroupExporter.php.

{
return array (
"4.1.0" => array(
"namespace" => "http://www.ilias.de/Modules/Group/grp/4_1",
"xsd_file" => "ilias_grp_4_1.xsd",
"uses_dataset" => false,
"min" => "4.1.0",
"max" => "")
);
}
ilGroupExporter::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 45 of file class.ilGroupExporter.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:

ilGroupExporter::getXmlRepresentation (   $a_entity,
  $a_target_release,
  $a_id 
)

Get xml.

Parameters
object$a_entity
object$a_target_release
object$a_id
Returns

Reimplemented from ilXmlExporter.

Definition at line 79 of file class.ilGroupExporter.php.

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

{
$group_ref_id = end(ilObject::_getAllReferences($a_id));
$group = ilObjectFactory::getInstanceByRefId($group_ref_id,false);
if(!$group instanceof ilObjGroup)
{
$GLOBALS['ilLog']->write(__METHOD__. $a_id . ' is not instance of type group');
return '';
}
include_once './Modules/Group/classes/class.ilGroupXMLWriter.php';
$this->writer = new ilGroupXMLWriter($group);
$this->writer->setMode(ilGroupXMLWriter::MODE_EXPORT);
$this->writer->start();
return $this->writer->getXML();
}

+ Here is the call graph for this function:

ilGroupExporter::init ( )

Init export.

Returns

Reimplemented from ilXmlExporter.

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

{
}

Field Documentation

ilGroupExporter::$writer = null
private

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


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