public function configure() { parent::configure(); $this->tempXmlPath = sys_get_temp_dir(); if (KBatchBase::$taskConfig->params->ideticFetchReportPath) { $this->fetchReportPath = KBatchBase::$taskConfig->params->ideticFetchReportPath; } }
public function configure() { parent::configure(); // set default value $this->updateXmlTemplate = dirname(__FILE__) . '/../xml/update.template.xml'; // load value from batch configuration if (KBatchBase::$taskConfig->params->updateXmlTemplate) { $this->updateXmlTemplate = KBatchBase::$taskConfig->params->updateXmlTemplate; } }
public function configure() { parent::configure(); if (KBatchBase::$taskConfig->params->tempXmlPath) { $this->tempXmlPath = KBatchBase::$taskConfig->params->tempXmlPath; if (!is_dir($this->tempXmlPath)) { kFile::fullMkfileDir($this->tempXmlPath, 0777, true); } } else { KalturaLog::err("params.tempXmlPath configuration not supplied"); $this->tempXmlPath = sys_get_temp_dir(); } }
/** * @see IDistributionEngine::configure() */ public function configure() { parent::configure(); if (KBatchBase::$taskConfig->params->tempFilePath) { $this->tempFilePath = KBatchBase::$taskConfig->params->tempFilePath; if (!is_dir($this->tempFilePath)) { kFile::fullMkfileDir($this->tempFilePath, 0777, true); } } else { $this->tempFilePath = sys_get_temp_dir(); KalturaLog::info('params.tempFilePath configuration not supplied, using default system directory [' . $this->tempFilePath . ']'); } }
public function configure() { parent::configure(); if (KBatchBase::$taskConfig->params->tempXmlPath) { $this->tempXmlPath = KBatchBase::$taskConfig->params->tempXmlPath; if (!is_dir($this->tempXmlPath)) { mkdir($this->tempXmlPath, 0777, true); } } else { KalturaLog::err("params.tempXmlPath configuration not supplied"); $this->tempXmlPath = sys_get_temp_dir(); } if (isset(KBatchBase::$taskConfig->params->youtubeApi)) { if (isset(KBatchBase::$taskConfig->params->youtubeApi->timeout)) { $this->timeout = KBatchBase::$taskConfig->params->youtubeApi->timeout; } } KalturaLog::info('Request timeout was set to ' . $this->timeout . ' seconds'); }
public function configure() { parent::configure(); if (KBatchBase::$taskConfig->params->tempXmlPath) { $this->tempXmlPath = KBatchBase::$taskConfig->params->tempXmlPath; if (!is_dir($this->tempXmlPath)) { mkdir($this->tempXmlPath, 0777, true); } } else { KalturaLog::err("params.tempXmlPath configuration not supplied"); $this->tempXmlPath = sys_get_temp_dir(); } if (isset(KBatchBase::$taskConfig->params->dailymotion)) { if (isset(KBatchBase::$taskConfig->params->dailymotion->requestTimeout)) { $this->requestTimeout = KBatchBase::$taskConfig->params->dailymotion->requestTimeout; } if (isset(KBatchBase::$taskConfig->params->dailymotion->connectTimeout)) { $this->connectTimeout = KBatchBase::$taskConfig->params->dailymotion->connectTimeout; } } }
protected function getDistributionEngine($providerType, KalturaDistributionJobData $data) { return DistributionEngine::getEngine('IDistributionEngineCloseDelete', $providerType, $this->getClient(), $this->taskConfig, $data); }
protected function getDistributionEngine($providerType, KalturaDistributionJobData $data) { return DistributionEngine::getEngine('IDistributionEngineFetchReport', $providerType, $data); }
protected function getDistributionEngine($providerType, KalturaDistributionJobData $data) { return DistributionEngine::getEngine('IDistributionEngineCloseDelete', $providerType, $data); }
public function configure() { parent::configure(); $this->appId = kConf::get(FacebookConstants::FACEBOOK_APP_ID_REQUEST_PARAM, 'facebook', null); $this->appSecret = kConf::get(FacebookConstants::FACEBOOK_APP_SECRET_REQUEST_PARAM, 'facebook', null); }
public function configure() { parent::configure(); $this->tempXmlPath = sys_get_temp_dir(); }