4 include_once(
"./Services/DataSet/classes/class.ilDataSet.php");
23 return array(
"4.1.0");
34 return "http://www.ilias.de/xml/Modules/MediaCast/".$a_entity;
43 protected function getTypes($a_entity, $a_version)
45 if ($a_entity ==
"mcst")
53 "Description" =>
"text",
54 "PublicFiles" =>
"integer",
55 "Downloadable" =>
"integer",
56 "DefaultAccess" =>
"integer");
68 function readData($a_entity, $a_version, $a_ids, $a_field =
"")
72 if (!is_array($a_ids))
74 $a_ids = array($a_ids);
77 if ($a_entity ==
"mcst")
83 " public_files, downloadable, def_access default_access".
84 " FROM il_media_cast_data JOIN object_data ON (il_media_cast_data.id = object_data.obj_id) ".
86 $ilDB->in(
"id", $a_ids,
false,
"integer"));
108 function importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
116 include_once(
"./Modules/MediaCast/classes/class.ilObjMediaCast.php");
118 if($new_id = $a_mapping->getMapping(
'Services/Container',
'objs',$a_rec[
'Id']))
125 $newObj->setType(
"mcst");
126 $newObj->create(
true);
129 $newObj->setTitle($a_rec[
"Title"]);
130 $newObj->setDescription($a_rec[
"Description"]);
131 $newObj->setDefaultAccess($a_rec[
"DefaultAccess"]);
132 $newObj->setDownloadable($a_rec[
"Downloadable"]);
133 $newObj->setPublicFiles($a_rec[
"PublicFiles"]);
134 $newObj->update(
true);
135 $this->current_obj = $newObj;
136 $a_mapping->addMapping(
"Modules/MediaCast",
"mcst", $a_rec[
"Id"], $newObj->getId());
137 $a_mapping->addMapping(
"Services/News",
"news_context",
138 $a_rec[
"Id"].
":mcst:0:",
139 $newObj->getId().
":mcst:0:");