public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->playlistContent = (string) $xml->playlistContent; if (empty($xml->filters)) { $this->filters = array(); } else { $this->filters = Kaltura_Client_ParseUtils::unmarshalArray($xml->filters, "KalturaMediaEntryFilterForPlaylist"); } if (count($xml->totalResults)) { $this->totalResults = (int) $xml->totalResults; } if (count($xml->playlistType)) { $this->playlistType = (int) $xml->playlistType; } if (count($xml->plays)) { $this->plays = (int) $xml->plays; } if (count($xml->views)) { $this->views = (int) $xml->views; } if (count($xml->duration)) { $this->duration = (int) $xml->duration; } $this->executeUrl = (string) $xml->executeUrl; }
public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } if (count($xml->plays)) { $this->plays = (int) $xml->plays; } if (count($xml->views)) { $this->views = (int) $xml->views; } if (count($xml->width)) { $this->width = (int) $xml->width; } if (count($xml->height)) { $this->height = (int) $xml->height; } if (count($xml->duration)) { $this->duration = (int) $xml->duration; } if (count($xml->msDuration)) { $this->msDuration = (int) $xml->msDuration; } $this->durationType = (string) $xml->durationType; }
public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->playlistContent = (string) $xml->playlistContent; if (empty($xml->filters)) { $this->filters = array(); } else { $this->filters = Kaltura_Client_Client::unmarshalItem($xml->filters); } if (count($xml->totalResults)) { $this->totalResults = (int) $xml->totalResults; } if (count($xml->playlistType)) { $this->playlistType = (int) $xml->playlistType; } if (count($xml->plays)) { $this->plays = (int) $xml->plays; } if (count($xml->views)) { $this->views = (int) $xml->views; } if (count($xml->duration)) { $this->duration = (int) $xml->duration; } }
public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->dataContent = (string) $xml->dataContent; if (!empty($xml->retrieveDataContentByGet)) { $this->retrieveDataContentByGet = true; } }
public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } if (count($xml->documentType)) { $this->documentType = (int) $xml->documentType; } $this->assetParamsIds = (string) $xml->assetParamsIds; }