public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->keySeed = (string) $xml->keySeed;
 }
 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;
 }
 /**
  * Update an existing KalturaDrmProfile object
  * 	 
  * 
  * @return \Kaltura\Client\Plugin\Drm\Type\DrmProfile
  */
 function update($drmProfileId, \Kaltura\Client\Plugin\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\\Plugin\\Drm\\Type\\DrmProfile");
     return $resultObject;
 }