Esempio n. 1
0
 /**
  * Create a new CONTENTdm Fetcher Instance.
  * @param array $settings configuration settings.
  */
 public function __construct($settings)
 {
     parent::__construct($settings);
     $this->key = $this->settings['record_key'];
     $this->thumbnail = new \mik\filemanipulators\ThumbnailFromCdm($settings);
     if (isset($settings['MANIPULATORS']['fetchermanipulators'])) {
         $this->fetchermanipulators = $settings['MANIPULATORS']['fetchermanipulators'];
     } else {
         $this->fetchermanipulators = null;
     }
     if (!$this->createTempDirectory()) {
         $this->log->addError("Cdm fetcher", array('Cannot create temp_directory' => $this->tempDirectory));
     }
 }
Esempio n. 2
0
 public function __construct(Database $database)
 {
     parent::__construct($database);
 }