/**
  * Tests GenericDistributionEngine->submit()
  * @dataProvider provideData
  */
 public function testSubmit(KalturaDistributionSubmitJobData $data)
 {
     $this->GenericDistributionEngine->submit($data);
 }
コード例 #2
0
$distributionProfile = new KalturaYoutubeApiDistributionProfile();
$distributionProfile->fromObject($dbDistributionProfile);
$distributionJobData->distributionProfileId = $distributionProfile->id;
$distributionJobData->distributionProfile = $distributionProfile;
$dbEntryDistribution = EntryDistributionPeer::retrieveByPK(2);
$entryDistribution = new KalturaEntryDistribution();
$entryDistribution->fromObject($dbEntryDistribution);
$distributionJobData->entryDistributionId = $entryDistribution->id;
$distributionJobData->entryDistribution = $entryDistribution;
$providerData = new KalturaYoutubeApiDistributionJobProviderData($distributionJobData);
$distributionJobData->providerData = $providerData;
file_put_contents('out.xml', $providerData->xml);
KalturaLog::debug("XML [{$providerData->xml}]");
return;
$engine = new GenericDistributionEngine();
$engine->submit($distributionJobData);
//$xml = new KDOMDocument();
//if(!$xml->loadXML($mrss))
//{
//	KalturaLog::err("MRSS not is not valid XML:\n$mrss\n");
//	exit;
//}
//
//$xslPath = 'submit.xsl';
//$xsl = new KDOMDocument();
//$xsl->load($xslPath);
//
//// set variables in the xsl
//$varNodes = $xsl->getElementsByTagName('variable');
//foreach($varNodes as $varNode)
//{