Example #1
0
 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;
 }
Example #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;
 }
Example #3
0
 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;
     }
 }
Example #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;
 }
 /**
  * Update base entry. Only the properties that were set will be updated.
  * 	 
  * 
  * @return \Kaltura\Client\Type\BaseEntry
  */
 function update($entryId, \Kaltura\Client\Type\BaseEntry $baseEntry)
 {
     $kparams = array();
     $this->client->addParam($kparams, "entryId", $entryId);
     $this->client->addParam($kparams, "baseEntry", $baseEntry->toParams());
     $this->client->queueServiceActionCall("baseentry", "update", "KalturaBaseEntry", $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, "KalturaBaseEntry");
     $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Type\\BaseEntry");
     return $resultObject;
 }