public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
 }
Ejemplo n.º 2
0
 /**
  * Update flavor asset
  *      
  * 
  * @return \Kaltura\Client\Type\FlavorAsset
  */
 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;
 }
Ejemplo n.º 3
0
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->multicastIP = (string) $xml->multicastIP;
     if (count($xml->multicastPort)) {
         $this->multicastPort = (int) $xml->multicastPort;
     }
 }
Ejemplo n.º 4
0
 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;
     }
 }