public function __construct(\SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->externalSourceType = (string) $xml->externalSourceType; $this->assetParamsIds = (string) $xml->assetParamsIds; }
public function __construct(\SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->offlineMessage = (string) $xml->offlineMessage; if (count($xml->recordStatus)) { $this->recordStatus = (int) $xml->recordStatus; } if (count($xml->dvrStatus)) { $this->dvrStatus = (int) $xml->dvrStatus; } if (count($xml->dvrWindow)) { $this->dvrWindow = (int) $xml->dvrWindow; } if (count($xml->lastElapsedRecordingTime)) { $this->lastElapsedRecordingTime = (int) $xml->lastElapsedRecordingTime; } if (empty($xml->liveStreamConfigurations)) { $this->liveStreamConfigurations = array(); } else { $this->liveStreamConfigurations = \Kaltura\Client\ParseUtils::unmarshalArray($xml->liveStreamConfigurations, "KalturaLiveStreamConfiguration"); } $this->recordedEntryId = (string) $xml->recordedEntryId; if (count($xml->pushPublishEnabled)) { $this->pushPublishEnabled = (int) $xml->pushPublishEnabled; } if (empty($xml->publishConfigurations)) { $this->publishConfigurations = array(); } else { $this->publishConfigurations = \Kaltura\Client\ParseUtils::unmarshalArray($xml->publishConfigurations, "KalturaLiveStreamPushPublishConfiguration"); } if (count($xml->firstBroadcast)) { $this->firstBroadcast = (int) $xml->firstBroadcast; } if (count($xml->lastBroadcast)) { $this->lastBroadcast = (int) $xml->lastBroadcast; } if (count($xml->currentBroadcastStartTime)) { $this->currentBroadcastStartTime = (double) $xml->currentBroadcastStartTime; } }
public function __construct(\SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->offlineMessage = (string) $xml->offlineMessage; if (count($xml->recordStatus)) { $this->recordStatus = (int) $xml->recordStatus; } if (count($xml->dvrStatus)) { $this->dvrStatus = (int) $xml->dvrStatus; } if (count($xml->dvrWindow)) { $this->dvrWindow = (int) $xml->dvrWindow; } if (empty($xml->liveStreamConfigurations)) { $this->liveStreamConfigurations = array(); } else { $this->liveStreamConfigurations = \Kaltura\Client\ParseUtils::unmarshalArray($xml->liveStreamConfigurations, "KalturaLiveStreamConfiguration"); } $this->recordedEntryId = (string) $xml->recordedEntryId; }