4 include_once(
"./Services/DataSet/classes/class.ilDataSet.php");
32 return array(
"4.2.0");
44 return "http://www.ilias.de/xml/Services/COPage/".$a_entity;
53 protected function getTypes($a_entity, $a_version)
56 if ($a_entity ==
"pgtp")
64 "Description" =>
"text",
65 "SpecialPage" =>
"integer",
66 "StyleId" =>
"integer");
77 function readData($a_entity, $a_version, $a_ids, $a_field =
"")
81 if (!is_array($a_ids))
83 $a_ids = array($a_ids);
87 if ($a_entity ==
"pgtp")
93 " style_id, special_page ".
96 $ilDB->in(
"layout_id", $a_ids,
false,
"integer"));
121 function importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
126 include_once(
"./Services/Style/classes/class.ilPageLayout.php");
128 $pt->setTitle($a_rec[
"Title"]);
129 $pt->setDescription($a_rec[
"Description"]);
130 $pt->setSpecialPage($a_rec[
"SpecialPage"]);
133 $this->current_obj = $pt;
134 $a_mapping->addMapping(
"Services/COPage",
"pgtp", $a_rec[
"Id"],
136 $a_mapping->addMapping(
"Services/COPage",
"pg",
"stys:".$a_rec[
"Id"],
137 "stys:".$pt->getId());