コード例 #1
0
ファイル: Playlist.php プロジェクト: klvtz/kaltura-client53
 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;
 }
コード例 #2
0
 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->lastPlayedAt)) {
         $this->lastPlayedAt = (int) $xml->lastPlayedAt;
     }
     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;
 }
コード例 #3
0
ファイル: DataEntry.php プロジェクト: klvtz/kaltura-client53
 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;
     }
 }
コード例 #4
0
 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;
 }