4include_once(
"./Services/DataSet/classes/class.ilDataSet.php");
 
   23                return array(
"4.1.0");
 
   34                return "http://www.ilias.de/xml/Modules/ExternalFeed/".$a_entity;
 
   43        protected function getTypes($a_entity, $a_version)
 
   45                if ($a_entity == 
"feed")
 
   65        function readData($a_entity, $a_version, $a_ids, $a_field = 
"")
 
   69                if (!is_array($a_ids))
 
   71                        $a_ids = array($a_ids);
 
   74                if ($a_entity == 
"feed")
 
   82                                                $ilDB->in(
"obj_id", $a_ids, 
false, 
"integer"));
 
  104        function importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
 
  113                                include_once(
"./Modules/ExternalFeed/classes/class.ilObjExternalFeed.php");
 
  115                                if($new_id = $a_mapping->getMapping(
'Services/Container',
'objs',$a_rec[
'Id']))
 
  122                                        $newObj->setType(
"feed");
 
  123                                        $newObj->create(
true);
 
  126                                $newObj->setTitle($a_rec[
"Title"]);
 
  127                                $newObj->setDescription($a_rec[
"Url"]);
 
  129                                $this->current_obj = $newObj;
 
  130                                $a_mapping->addMapping(
"Modules/ExternalFeed", 
"feed", $a_rec[
"Id"], $newObj->getId());
 
  133                                include_once(
"./Services/Block/classes/class.ilExternalFeedBlock.php");
 
  135                                $fb->setTitle($a_rec[
"Title"]);
 
  136                                $fb->setFeedUrl($a_rec[
"Url"]);
 
  137                                $fb->setContextObjId($newObj->getId());
 
  138                                $fb->setContextObjType(
"feed");
 
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)
Get data from query.This is a standard procedure, all db field names are directly mapped to abstract ...
Custom block for external feeds.
External feed data set class.
importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
Import record.
readData($a_entity, $a_version, $a_ids, $a_field="")
Read data.
getTypes($a_entity, $a_version)
Get field types for entity.
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.
getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id