public function __construct(\SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } if (count($xml->copyCount)) { $this->copyCount = (int) $xml->copyCount; } if (empty($xml->copyEnablers)) { $this->copyEnablers = array(); } else { $this->copyEnablers = \Kaltura\Client\ParseUtils::unmarshalArray($xml->copyEnablers, "KalturaPlayReadyCopyEnablerHolder"); } }
public function __construct(\SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } if (count($xml->analogVideoOPL)) { $this->analogVideoOPL = (int) $xml->analogVideoOPL; } if (empty($xml->analogVideoOutputProtectionList)) { $this->analogVideoOutputProtectionList = array(); } else { $this->analogVideoOutputProtectionList = \Kaltura\Client\ParseUtils::unmarshalArray($xml->analogVideoOutputProtectionList, "KalturaPlayReadyAnalogVideoOPIdHolder"); } if (count($xml->compressedDigitalAudioOPL)) { $this->compressedDigitalAudioOPL = (int) $xml->compressedDigitalAudioOPL; } if (count($xml->compressedDigitalVideoOPL)) { $this->compressedDigitalVideoOPL = (int) $xml->compressedDigitalVideoOPL; } if (empty($xml->digitalAudioOutputProtectionList)) { $this->digitalAudioOutputProtectionList = array(); } else { $this->digitalAudioOutputProtectionList = \Kaltura\Client\ParseUtils::unmarshalArray($xml->digitalAudioOutputProtectionList, "KalturaPlayReadyDigitalAudioOPIdHolder"); } if (count($xml->uncompressedDigitalAudioOPL)) { $this->uncompressedDigitalAudioOPL = (int) $xml->uncompressedDigitalAudioOPL; } if (count($xml->uncompressedDigitalVideoOPL)) { $this->uncompressedDigitalVideoOPL = (int) $xml->uncompressedDigitalVideoOPL; } if (count($xml->firstPlayExpiration)) { $this->firstPlayExpiration = (int) $xml->firstPlayExpiration; } if (empty($xml->playEnablers)) { $this->playEnablers = array(); } else { $this->playEnablers = \Kaltura\Client\ParseUtils::unmarshalArray($xml->playEnablers, "KalturaPlayReadyPlayEnablerHolder"); } }