4 include_once(
"./Services/DataSet/classes/class.ilDataSet.php");
26 return array(
"4.1.0");
38 return "http://www.ilias.de/xml/Modules/MediaCast/".$a_entity;
47 protected function getTypes($a_entity, $a_version)
49 if ($a_entity ==
"mcst")
57 "Description" =>
"text",
58 "PublicFiles" =>
"integer",
59 "Downloadable" =>
"integer",
60 "DefaultAccess" =>
"integer");
72 function readData($a_entity, $a_version, $a_ids, $a_field =
"")
76 if (!is_array($a_ids))
78 $a_ids = array($a_ids);
81 if ($a_entity ==
"mcst")
87 " public_files, downloadable, def_access default_access".
88 " FROM il_media_cast_data JOIN object_data ON (il_media_cast_data.id = object_data.obj_id) ".
90 $ilDB->in(
"id", $a_ids,
false,
"integer"));
112 function importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
120 include_once(
"./Modules/MediaCast/classes/class.ilObjMediaCast.php");
122 if($new_id = $a_mapping->getMapping(
'Services/Container',
'objs',$a_rec[
'Id']))
129 $newObj->setType(
"mcst");
130 $newObj->create(
true);
133 $newObj->setTitle($a_rec[
"Title"]);
134 $newObj->setDescription($a_rec[
"Description"]);
135 $newObj->setDefaultAccess($a_rec[
"DefaultAccess"]);
136 $newObj->setDownloadable($a_rec[
"Downloadable"]);
137 $newObj->setPublicFiles($a_rec[
"PublicFiles"]);
138 $newObj->update(
true);
139 $this->current_obj = $newObj;
140 $a_mapping->addMapping(
"Modules/MediaCast",
"mcst", $a_rec[
"Id"], $newObj->getId());
141 $a_mapping->addMapping(
"Services/News",
"news_context",
142 $a_rec[
"Id"].
":mcst:0:",
143 $newObj->getId().
":mcst:0:");