コード例 #1
0
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->xsl = (string) $xml->xsl;
     $this->feedId = (string) $xml->feedId;
 }
コード例 #2
0
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (empty($xml->fieldConfigArray)) {
         $this->fieldConfigArray = array();
     } else {
         $this->fieldConfigArray = \Kaltura\Client\ParseUtils::unmarshalArray($xml->fieldConfigArray, "KalturaDistributionFieldConfig");
     }
     if (empty($xml->itemXpathsToExtend)) {
         $this->itemXpathsToExtend = array();
     } else {
         $this->itemXpathsToExtend = \Kaltura\Client\ParseUtils::unmarshalArray($xml->itemXpathsToExtend, "KalturaExtendingItemMrssParameter");
     }
 }
コード例 #3
0
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->genericProviderId)) {
         $this->genericProviderId = (int) $xml->genericProviderId;
     }
     if (!empty($xml->submitAction)) {
         $this->submitAction = \Kaltura\Client\ParseUtils::unmarshalObject($xml->submitAction, "KalturaGenericDistributionProfileAction");
     }
     if (!empty($xml->updateAction)) {
         $this->updateAction = \Kaltura\Client\ParseUtils::unmarshalObject($xml->updateAction, "KalturaGenericDistributionProfileAction");
     }
     if (!empty($xml->deleteAction)) {
         $this->deleteAction = \Kaltura\Client\ParseUtils::unmarshalObject($xml->deleteAction, "KalturaGenericDistributionProfileAction");
     }
     if (!empty($xml->fetchReportAction)) {
         $this->fetchReportAction = \Kaltura\Client\ParseUtils::unmarshalObject($xml->fetchReportAction, "KalturaGenericDistributionProfileAction");
     }
     $this->updateRequiredEntryFields = (string) $xml->updateRequiredEntryFields;
     $this->updateRequiredMetadataXPaths = (string) $xml->updateRequiredMetadataXPaths;
 }
コード例 #4
0
 /**
  * Update Distribution Profile by id
  * 	 
  * 
  * @return \Kaltura\Client\Plugin\ContentDistribution\Type\DistributionProfile
  */
 function update($id, \Kaltura\Client\Plugin\ContentDistribution\Type\DistributionProfile $distributionProfile)
 {
     $kparams = array();
     $this->client->addParam($kparams, "id", $id);
     $this->client->addParam($kparams, "distributionProfile", $distributionProfile->toParams());
     $this->client->queueServiceActionCall("contentdistribution_distributionprofile", "update", "KalturaDistributionProfile", $kparams);
     if ($this->client->isMultiRequest()) {
         return $this->client->getMultiRequestResult();
     }
     $resultXml = $this->client->doQueue();
     $resultXmlObject = new \SimpleXMLElement($resultXml);
     \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result);
     $resultObject = \Kaltura\Client\ParseUtils::unmarshalObject($resultXmlObject->result, "KalturaDistributionProfile");
     $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Plugin\\ContentDistribution\\Type\\DistributionProfile");
     return $resultObject;
 }