public function __construct() { $config = KTConfig::getSingleton(); $this->unzip = KTUtil::findCommand("import/unzip", 'unzip'); $this->unzip = str_replace('\\', '/', $this->unzip); $this->unzip_params = $config->get('extractorParameters/unzip', '"{source}" "{part}" -d "{target_dir}"'); parent::__construct(); }
public function __construct($targetExtension = 'html') { parent::__construct(); $this->targetExtension = $targetExtension; $config =& KTConfig::getSingleton(); $this->useOO = $config->get('indexer/useOpenOffice', true); $this->python = KTUtil::findCommand('externalBinary/python'); $this->ooHost = $config->get('openoffice/host'); $this->ooPort = $config->get('openoffice/port'); $this->documentConverter = KT_DIR . '/bin/openoffice/DocumentConverter.py'; if (!is_file($this->documentConverter)) { $this->documentConverter = false; } }
/** * Initialise the extractor. * * @param string $section The section in the config file. * @param string $appname The application name in the config file. * @param string $command The command that can be run. * @param string $displayname * @param string $params */ public function __construct($section, $appname, $command, $displayname, $params) { parent::__construct(); $this->application = KTUtil::findCommand("{$section}/{$appname}", $command); $this->command = $command; $this->displayname = $displayname; $this->params = $params; }