34 return 'http://www.ilias.de/xml/Modules/ContentPage/' . $a_entity;
40 protected function getTypes($a_entity, $a_version)
47 'description' =>
'text',
48 'info-tab' =>
'integer',
49 'style-id' =>
'integer',
60 public function readData($a_entity, $a_version, $a_ids)
64 if (!is_array($a_ids)) {
68 $this->readEntityData($a_entity, $a_ids);
76 protected function readEntityData($entity, $ids)
80 foreach ($ids as $objId) {
86 'id' => $obj->getId(),
87 'title' => $obj->getTitle(),
88 'description' => $obj->getDescription(),
94 'style-id' => $obj->getStyleSheetId(),
112 public function importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
116 if ($newObjId = $a_mapping->getMapping(
'Services/Container',
'objs', $a_rec[
'id'])) {
119 $newObject = new \ilObjContentPage();
126 if (!$newObject->getId()) {
127 $newObject->create();
133 (int) $a_rec[
'info-tab']
136 $a_mapping->addMapping(
'Modules/ContentPage', self::OBJ_TYPE, $a_rec[
'id'], $newObject->getId());
137 $a_mapping->addMapping(
'Modules/ContentPage',
'style', $newObject->getId(), $newObject->getStyleSheetId());
138 $a_mapping->addMapping(
141 self::OBJ_TYPE .
':' . $a_rec[
'id'],
142 self::OBJ_TYPE .
':' . $newObject->getId()
Interface ilContentPageObjectConstants.
getXmlNamespace($a_entity, $a_schema_version)
importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
static _lookupType($a_id, $a_reference=false)
lookup object type
readData($a_entity, $a_version, $a_ids)
getTypes($a_entity, $a_version)
const INFO_TAB_VISIBILITY
static _writeContainerSetting($a_id, $a_keyword, $a_value)
Class ilContentPageDataSet.
getDependencies($a_entity, $a_version, $a_rec, $a_ids)
A dataset contains in data in a common structure that can be shared and transformed for different pur...
static _lookupContainerSetting($a_id, $a_keyword, $a_default_value=null)
Lookup a container setting.