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()
 
An exception for terminatinating execution or to throw for unit testing.
static _lookupContainerSetting($a_id, $a_keyword, $a_default_value=null)
Lookup a container setting.
static _writeContainerSetting($a_id, $a_keyword, $a_value)
Class ilContentPageDataSet.
readData($a_entity, $a_version, $a_ids)
Read data from DB.This should result in the abstract field structure of the version set in the constr...
getXmlNamespace($a_entity, $a_schema_version)
Get xml namespace.
getDependencies($a_entity, $a_version, $a_rec, $a_ids)
importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
getSupportedVersions()
Get supported version.array array of supported version
getTypes($a_entity, $a_version)
Get (abstract) types for (abstract) field names.Please note that the abstract fields/types only depen...
A dataset contains in data in a common structure that can be shared and transformed for different pur...
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
const INFO_TAB_VISIBILITY
static _lookupType($a_id, $a_reference=false)
lookup object type
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
Interface ilContentPageObjectConstants.