function update($id, Kaltura_Client_Type_FlavorAsset $flavorAsset)
 {
     $kparams = array();
     $this->client->addParam($kparams, "id", $id);
     $this->client->addParam($kparams, "flavorAsset", $flavorAsset->toParams());
     $this->client->queueServiceActionCall("flavorasset", "update", $kparams);
     if ($this->client->isMultiRequest()) {
         return $this->client->getMultiRequestResult();
     }
     $resultObject = $this->client->doQueue();
     $this->client->throwExceptionIfError($resultObject);
     $this->client->validateObjectType($resultObject, "Kaltura_Client_Type_FlavorAsset");
     return $resultObject;
 }
Beispiel #2
0
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
 }
 function update($id, Kaltura_Client_Type_FlavorAsset $flavorAsset)
 {
     $kparams = array();
     $this->client->addParam($kparams, "id", $id);
     $this->client->addParam($kparams, "flavorAsset", $flavorAsset->toParams());
     $this->client->queueServiceActionCall("flavorasset", "update", "KalturaFlavorAsset", $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, "KalturaFlavorAsset");
     $this->client->validateObjectType($resultObject, "Kaltura_Client_Type_FlavorAsset");
     return $resultObject;
 }
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->widevineDistributionStartDate)) {
         $this->widevineDistributionStartDate = (int) $xml->widevineDistributionStartDate;
     }
     if (count($xml->widevineDistributionEndDate)) {
         $this->widevineDistributionEndDate = (int) $xml->widevineDistributionEndDate;
     }
     if (count($xml->widevineAssetId)) {
         $this->widevineAssetId = (int) $xml->widevineAssetId;
     }
 }