function update($drmProfileId, Kaltura_Client_Drm_Type_DrmProfile $drmProfile) { $kparams = array(); $this->client->addParam($kparams, "drmProfileId", $drmProfileId); $this->client->addParam($kparams, "drmProfile", $drmProfile->toParams()); $this->client->queueServiceActionCall("drm_drmprofile", "update", "KalturaDrmProfile", $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, "KalturaDrmProfile"); $this->client->validateObjectType($resultObject, "Kaltura_Client_Drm_Type_DrmProfile"); return $resultObject; }
public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->key = (string) $xml->key; $this->iv = (string) $xml->iv; $this->owner = (string) $xml->owner; $this->portal = (string) $xml->portal; if (count($xml->maxGop)) { $this->maxGop = (int) $xml->maxGop; } $this->regServerHost = (string) $xml->regServerHost; }