/** * Constructor of the class. * * @param string $uri The uri of the folder. * @param array $parameters The parameters to use for the mapping. * @return void */ public function __construct($uri, array $parameters) { // For compatibility, "file" is allowed as header to import multiple // files attached to an item. The header "files" is allowed too. $this->_specialData['file'] = true; $this->_specialData['files'] = true; parent::__construct($uri, $parameters); }
public function __construct($uri, $parameters) { $this->_xslOcrText = PLUGIN_DIR . DIRECTORY_SEPARATOR . 'ArchiveFolder' . DIRECTORY_SEPARATOR . $this->_xslOcrText; $this->_xslOcrData = PLUGIN_DIR . DIRECTORY_SEPARATOR . 'ArchiveFolder' . DIRECTORY_SEPARATOR . $this->_xslOcrData; $this->_xslOcrProcess = PLUGIN_DIR . DIRECTORY_SEPARATOR . 'ArchiveFolder' . DIRECTORY_SEPARATOR . $this->_xslOcrProcess; parent::__construct($uri, $parameters); if (isset($this->_parameters['extra_parameters']['mets_fileGrp_document'])) { $this->_fileGrpDocument = $this->_parameters['extra_parameters']['mets_fileGrp_document']; } if (isset($this->_parameters['extra_parameters']['mets_fileGrps'])) { $this->_fileGrps = array_filter(array_map('trim', explode(',', $this->_parameters['extra_parameters']['mets_fileGrps']))); } }
public function __construct($uri, $parameters) { $this->_xslMain = PLUGIN_DIR . DIRECTORY_SEPARATOR . 'ArchiveFolder' . DIRECTORY_SEPARATOR . $this->_xslMain; parent::__construct($uri, $parameters); }