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")
82 "Description" =>
"text",
83 "SpecialPage" =>
"integer",
84 "StyleId" =>
"integer");
95 function readData($a_entity, $a_version, $a_ids, $a_field =
"")
99 if (!is_array($a_ids))
101 $a_ids =
array($a_ids);
105 if ($a_entity ==
"pgtp")
111 " style_id, special_page ".
112 " FROM page_layout ".
114 $ilDB->in(
"layout_id", $a_ids,
false,
"integer"));
139 function importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
144 include_once(
"./Services/COPage/Layout/classes/class.ilPageLayout.php");
146 $pt->setTitle($a_rec[
"Title"]);
147 $pt->setDescription($a_rec[
"Description"]);
148 $pt->setSpecialPage($a_rec[
"SpecialPage"]);
151 $this->current_obj = $pt;
152 $a_mapping->addMapping(
"Services/COPage",
"pgtp", $a_rec[
"Id"],
154 $a_mapping->addMapping(
"Services/COPage",
"pg",
"stys:".$a_rec[
"Id"],
155 "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.
Create styles array
The data for the language used.
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.