public function __construct(\SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } }
/** * 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; }
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; } }
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; } }