public function __construct(KSchedularTaskConfig $taskConfig, KalturaClient $kClient, KalturaBatchJob $job) { parent::__construct($taskConfig, $kClient, $job); $this->xsdFilePath = 'http://' . kConf::get('cdn_host') . '/api_v3/index.php/service/schema/action/serve/type/' . KalturaSchemaType::DROP_FOLDER_XML; if ($taskConfig->params->xsdFilePath) { $this->xsdFilePath = $taskConfig->params->xsdFilePath; } }
public function __construct(KalturaBatchJob $job) { parent::__construct($job); KBatchBase::impersonate($this->currentPartnerId); $dropFolderPlugin = KalturaDropFolderClientPlugin::get(KBatchBase::$kClient); KBatchBase::$kClient->startMultiRequest(); $dropFolderFile = $dropFolderPlugin->dropFolderFile->get($this->job->jobObjectId); $dropFolderPlugin->dropFolder->get($dropFolderFile->dropFolderId); list($this->xmlDropFolderFile, $this->dropFolder) = KBatchBase::$kClient->doMultiRequest(); $this->fileTransferMgr = KDropFolderFileTransferEngine::getFileTransferManager($this->dropFolder); $this->data->filePath = $this->getLocalFilePath($this->xmlDropFolderFile->fileName, $this->xmlDropFolderFile->id); KBatchBase::unimpersonate(); }