62        return array(
'4.5.0');
 
   74        return 'http://www.ilias.de/xml/Modules/Bibliographic/' . $a_entity;
 
   85    public function importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
 
   89                if ($new_id = $a_mapping->getMapping(
'Services/Container', 
'objs', $a_rec[
'id'])) {
 
   95                $new_obj->setTitle($a_rec[
'title']);
 
   96                $new_obj->setDescription($a_rec[
'description']);
 
   97                $new_obj->setFilename($a_rec[
'fileName']);
 
   98                $new_obj->setOnline(
false);
 
   99                if (!$new_obj->getId()) {
 
  102                $this->import_bib_object = $new_obj;
 
  103                $a_mapping->addMapping(
'Modules/Bibliographic', 
'bibl', $a_rec[
'id'], $new_obj->getId());
 
  125                    "description" => 
"text",
 
  126                    "filename" => 
"text",
 
  127                    'is_online' => 
'integer',
 
  159    public function readData($a_entity, $a_version, $a_ids)
 
  161        $this->data = array();
 
  162        if (!is_array($a_ids)) {
 
  163            $a_ids = array($a_ids);
 
  179                foreach ($a_ids as $bibl_id) {
 
  184                            'title' => $obj->getTitle(),
 
  185                            'description' => $obj->getDescription(),
 
  186                            'fileName' => $obj->getFilename(),
 
  187                            'is_online' => $obj->getOnline(),
 
  189                        $this->data[] = 
$data;
 
  205        $fileAbsolutePath = $obj->getLegacyAbsolutePath();
 
  206        copy($fileAbsolutePath, $this->absolute_export_dir . 
"/" . $obj->getFilename());
 
  216            . $this->import_bib_object->getFilename();
 
  217        $new_id = $this->import_bib_object->getId();
 
  220        copy($import_path, $new_path . 
"/" . $this->import_bib_object->getFilename());
 
An exception for terminatinating execution or to throw for unit testing.
Bibliographic dataset class.
importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
$record_field_ids_2_storage
importLibraryFile($a_mapping)
getXmlNamespace($a_entity, $a_schema_version)
getDependencies($a_entity, $a_version, $a_rec, $a_ids)
Return dependencies form entities to other entities (in our case these are all the DB relations)
readData($a_entity, $a_version, $a_ids)
Read data from Cache for a given entity and ID(s)
getTypes($a_entity, $a_version)
Map XML attributes of entities to datatypes (text, integer...)
_readData($a_entity, $a_ids)
Build data array, data is read from cache except bibl object itself.
__construct()
Constructor.
A dataset contains in data in a common structure that can be shared and transformed for different pur...
getImportDirectory()
Get import directory.
Class ilObjBibliographic.
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
static getDataDir()
get data directory (outside webspace)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc