/**
  * Get head dependencies
  *
  * @param		string		entity
  * @param		string		target release
  * @param		array		ids
  * @return		array		array of array with keys "component", entity", "ids"
  */
 public function getXmlExportHeadDependencies($a_entity, $a_target_release, $a_ids)
 {
     include_once './Services/Export/classes/class.ilExportOptions.php';
     $eo = ilExportOptions::getInstance();
     $obj_id = end($a_ids);
     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();
 }
 /**
  * Get xml
  * @param object $a_entity
  * @param object $a_schema_version
  * @param object $a_id
  * @return 
  */
 public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
 {
     global $rbacreview;
     include_once './Services/AccessControl/classes/class.ilRoleXmlExport.php';
     $writer = new ilRoleXmlExport();
     include_once './Services/Export/classes/class.ilExportOptions.php';
     $eo = ilExportOptions::getInstance();
     $eo->read();
     $rolf = $eo->getOptionByObjId($a_id, ilExportOptions::KEY_ROOT);
     // @todo refactor rolf
     $writer->setRoles(array($a_id => $rolf));
     $writer->write();
     return $writer->xmlDumpMem($format);
 }
 /**
  * Constructor
  */
 public function __construct($a_ref_id)
 {
     parent::__construct();
     $this->source = $a_ref_id;
     $this->exp_options = ilExportOptions::getInstance();
 }