4include_once(
"./Services/DataSet/classes/class.ilDataSet.php");
 
   23                return array(
"4.3.0");
 
   34                return "http://www.ilias.de/xml/Modules/ItemGroup/".$a_entity;
 
   43        protected function getTypes($a_entity, $a_version)
 
   45                if ($a_entity == 
"itgr")
 
   53                                                "Description" => 
"text");
 
   57                if ($a_entity == 
"itgr_item")
 
   63                                                "ItemGroupId" => 
"integer",
 
   77        function readData($a_entity, $a_version, $a_ids, $a_field = 
"")
 
   81                if (!is_array($a_ids))
 
   83                        $a_ids = array($a_ids);
 
   86                if ($a_entity == 
"itgr")
 
   94                                                $ilDB->in(
"obj_id", $a_ids, 
false, 
"integer"));
 
   99                if ($a_entity == 
"itgr_item")
 
  105                                                " FROM item_group_item ".
 
  107                                                $ilDB->in(
"item_group_id", $a_ids, 
false, 
"integer"));
 
  122                if ($a_entity == 
"itgr_item")
 
  139                                        "itgr_item" => array(
"ids" => $a_rec[
"Id"])
 
  152        function importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
 
  162                                include_once(
"./Modules/ItemGroup/classes/class.ilObjItemGroup.php");
 
  164                                if ($new_id = $a_mapping->getMapping(
'Services/Container',
'objs',$a_rec[
'Id']))
 
  171                                        $newObj->setType(
"itgr");
 
  172                                        $newObj->create(
true);
 
  175                                $newObj->setTitle($a_rec[
"Title"]);
 
  176                                $newObj->setDescription($a_rec[
"Description"]);
 
  177                                $newObj->update(
true);
 
  178                                $this->current_obj = $newObj;
 
  179                                $a_mapping->addMapping(
"Modules/ItemGroup", 
"itgr", $a_rec[
"Id"], $newObj->getId());
 
  184                                if($obj_id = $a_mapping->getMapping(
'Services/Container',
'objs',$a_rec[
'ItemId']))
 
  187                                        include_once 
'./Modules/ItemGroup/classes/class.ilItemGroupItems.php';
 
  189                                        $itgri->setItemGroupId($this->current_obj->getId());
 
An exception for terminatinating execution or to throw for unit testing.
A dataset contains in data in a common structure that can be shared and transformed for different pur...
getDirectDataFromQuery($a_query, $a_convert_to_leading_upper=true, $a_set=true)
Get data from query.This is a standard procedure, all db field names are directly mapped to abstract ...
Item group data set class.
readData($a_entity, $a_version, $a_ids, $a_field="")
Read data.
getTypes($a_entity, $a_version)
Get field types for entity.
importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
Import record.
getSupportedVersions()
Get supported versions.
getDependencies($a_entity, $a_version, $a_rec, $a_ids)
Determine the dependent sets of data.
getXmlNamespace($a_entity, $a_schema_version)
Get xml namespace.
getXmlRecord($a_entity, $a_version, $a_set)
Get xml record (export)
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
static _lookupObjId($a_id)
static _getAllReferences($a_id)
get all reference ids of object