4 include_once(
"./Services/DataSet/classes/class.ilDataSet.php");
 
   26                                 return array(
"4.1.0");
 
   38                 return "http://www.ilias.de/xml/Modules/ExternalFeed/".$a_entity;
 
   47         protected function getTypes($a_entity, $a_version)
 
   49                 if ($a_entity == 
"feed")
 
   69         function readData($a_entity, $a_version, $a_ids, $a_field = 
"")
 
   73                 if (!is_array($a_ids))
 
   75                         $a_ids = array($a_ids);
 
   78                 if ($a_entity == 
"feed")
 
   86                                                 $ilDB->in(
"obj_id", $a_ids, 
false, 
"integer"));
 
  108         function importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
 
  117                                 include_once(
"./Modules/ExternalFeed/classes/class.ilObjExternalFeed.php");
 
  119                                 if($new_id = $a_mapping->getMapping(
'Services/Container',
'objs',$a_rec[
'Id']))
 
  126                                         $newObj->setType(
"feed");
 
  127                                         $newObj->create(
true);
 
  130                                 $newObj->setTitle($a_rec[
"Title"]);
 
  131                                 $newObj->setDescription($a_rec[
"Url"]);
 
  133                                 $this->current_obj = $newObj;
 
  134                                 $a_mapping->addMapping(
"Modules/ExternalFeed", 
"feed", $a_rec[
"Id"], $newObj->getId());
 
  137                                 include_once(
"./Services/Block/classes/class.ilExternalFeedBlock.php");
 
  139                                 $fb->setTitle($a_rec[
"Title"]);
 
  140                                 $fb->setFeedUrl($a_rec[
"Url"]);
 
  141                                 $fb->setContextObjId($newObj->getId());
 
  142                                 $fb->setContextObjType(
"feed");