4 include_once(
"./Services/DataSet/classes/class.ilDataSet.php");
30 $this->master_lang_only = $a_val;
51 return array(
"4.2.0");
62 return "http://www.ilias.de/xml/Services/COPage/" . $a_entity;
71 protected function getTypes($a_entity, $a_version)
74 if ($a_entity ==
"pgtp") {
80 "Description" =>
"text",
81 "SpecialPage" =>
"integer",
82 "StyleId" =>
"integer");
93 public function readData($a_entity, $a_version, $a_ids, $a_field =
"")
97 if (!is_array($a_ids)) {
98 $a_ids = array($a_ids);
102 if ($a_entity ==
"pgtp") {
103 switch ($a_version) {
106 " style_id, special_page " .
107 " FROM page_layout " .
109 $db->in(
"layout_id", $a_ids,
false,
"integer"));
134 public function importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
138 include_once(
"./Services/COPage/Layout/classes/class.ilPageLayout.php");
140 $pt->setTitle($a_rec[
"Title"]);
141 $pt->setDescription($a_rec[
"Description"]);
142 $pt->setSpecialPage($a_rec[
"SpecialPage"]);
145 $this->current_obj = $pt;
146 $a_mapping->addMapping(
152 $a_mapping->addMapping(
155 "stys:" . $a_rec[
"Id"],
156 "stys:" . $pt->getId()
importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
Import record.
getDirectDataFromQuery($a_query, $a_convert_to_leading_upper=true, $a_set=true)
Get data from query.This is a standard procedure, all db field names are directly mapped to abstract ...
getDependencies($a_entity, $a_version, $a_rec, $a_ids)
Determine the dependent sets of data.
getTypes($a_entity, $a_version)
Get field types for entity.
getMasterLanguageOnly()
Get master language only.
readData($a_entity, $a_version, $a_ids, $a_field="")
Read data.
getSupportedVersions()
Get supported versions.
getXmlNamespace($a_entity, $a_schema_version)
Get xml namespace.
A dataset contains in data in a common structure that can be shared and transformed for different pur...
setMasterLanguageOnly($a_val)
Set master language only.