コード例 #1
0
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->format = (string) $xml->format;
     $this->subject = (string) $xml->subject;
     $this->body = (string) $xml->body;
     $this->fromEmail = (string) $xml->fromEmail;
     $this->fromName = (string) $xml->fromName;
     if (!empty($xml->to)) {
         $this->to = Kaltura_Client_ParseUtils::unmarshalObject($xml->to, "KalturaEmailNotificationRecipientProvider");
     }
     if (!empty($xml->cc)) {
         $this->cc = Kaltura_Client_ParseUtils::unmarshalObject($xml->cc, "KalturaEmailNotificationRecipientProvider");
     }
     if (!empty($xml->bcc)) {
         $this->bcc = Kaltura_Client_ParseUtils::unmarshalObject($xml->bcc, "KalturaEmailNotificationRecipientProvider");
     }
     if (!empty($xml->replyTo)) {
         $this->replyTo = Kaltura_Client_ParseUtils::unmarshalObject($xml->replyTo, "KalturaEmailNotificationRecipientProvider");
     }
     if (count($xml->priority)) {
         $this->priority = (int) $xml->priority;
     }
     $this->confirmReadingTo = (string) $xml->confirmReadingTo;
     $this->hostname = (string) $xml->hostname;
     $this->messageID = (string) $xml->messageID;
     if (empty($xml->customHeaders)) {
         $this->customHeaders = array();
     } else {
         $this->customHeaders = Kaltura_Client_ParseUtils::unmarshalArray($xml->customHeaders, "KalturaKeyValue");
     }
 }
コード例 #2
0
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->id)) {
         $this->id = (int) $xml->id;
     }
     if (count($xml->createdAt)) {
         $this->createdAt = (int) $xml->createdAt;
     }
     if (count($xml->updatedAt)) {
         $this->updatedAt = (int) $xml->updatedAt;
     }
     if (count($xml->partnerId)) {
         $this->partnerId = (int) $xml->partnerId;
     }
     $this->name = (string) $xml->name;
     if (count($xml->status)) {
         $this->status = (int) $xml->status;
     }
     $this->engineType = (string) $xml->engineType;
     if (!empty($xml->entryFilter)) {
         $this->entryFilter = Kaltura_Client_ParseUtils::unmarshalObject($xml->entryFilter, "KalturaBaseEntryFilter");
     }
     if (count($xml->actionIfInfected)) {
         $this->actionIfInfected = (int) $xml->actionIfInfected;
     }
 }
コード例 #3
0
ファイル: Playlist.php プロジェクト: Blaeg/kaltura-migrations
 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;
 }
コード例 #4
0
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->userId = (string) $xml->userId;
     $this->uploadedBy = (string) $xml->uploadedBy;
     if (count($xml->conversionProfileId)) {
         $this->conversionProfileId = (int) $xml->conversionProfileId;
     }
     $this->resultsFileLocalPath = (string) $xml->resultsFileLocalPath;
     $this->resultsFileUrl = (string) $xml->resultsFileUrl;
     if (count($xml->numOfEntries)) {
         $this->numOfEntries = (int) $xml->numOfEntries;
     }
     if (count($xml->numOfObjects)) {
         $this->numOfObjects = (int) $xml->numOfObjects;
     }
     $this->filePath = (string) $xml->filePath;
     $this->bulkUploadObjectType = (string) $xml->bulkUploadObjectType;
     $this->fileName = (string) $xml->fileName;
     if (!empty($xml->objectData)) {
         $this->objectData = Kaltura_Client_ParseUtils::unmarshalObject($xml->objectData, "KalturaBulkUploadObjectData");
     }
     $this->type = (string) $xml->type;
     $this->emailRecipients = (string) $xml->emailRecipients;
     if (count($xml->numOfErrorObjects)) {
         $this->numOfErrorObjects = (int) $xml->numOfErrorObjects;
     }
 }
コード例 #5
0
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->id)) {
         $this->id = (int) $xml->id;
     }
     if (count($xml->partnerId)) {
         $this->partnerId = (int) $xml->partnerId;
     }
     $this->name = (string) $xml->name;
     $this->systemName = (string) $xml->systemName;
     $this->description = (string) $xml->description;
     if (count($xml->createdAt)) {
         $this->createdAt = (int) $xml->createdAt;
     }
     if (count($xml->updatedAt)) {
         $this->updatedAt = (int) $xml->updatedAt;
     }
     if (count($xml->isDefault)) {
         $this->isDefault = (int) $xml->isDefault;
     }
     if (empty($xml->rules)) {
         $this->rules = array();
     } else {
         $this->rules = Kaltura_Client_ParseUtils::unmarshalArray($xml->rules, "KalturaRule");
     }
 }
コード例 #6
0
ファイル: Rule.php プロジェクト: Blaeg/kaltura-migrations
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->message = (string) $xml->message;
     if (empty($xml->actions)) {
         $this->actions = array();
     } else {
         $this->actions = Kaltura_Client_ParseUtils::unmarshalArray($xml->actions, "KalturaRuleAction");
     }
     if (empty($xml->conditions)) {
         $this->conditions = array();
     } else {
         $this->conditions = Kaltura_Client_ParseUtils::unmarshalArray($xml->conditions, "KalturaCondition");
     }
     if (empty($xml->contexts)) {
         $this->contexts = array();
     } else {
         $this->contexts = Kaltura_Client_ParseUtils::unmarshalArray($xml->contexts, "KalturaContextTypeHolder");
     }
     if (!empty($xml->stopProcessing)) {
         $this->stopProcessing = true;
     }
 }
コード例 #7
0
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->distributionProfileId)) {
         $this->distributionProfileId = (int) $xml->distributionProfileId;
     }
     if (!empty($xml->distributionProfile)) {
         $this->distributionProfile = Kaltura_Client_ParseUtils::unmarshalObject($xml->distributionProfile, "KalturaDistributionProfile");
     }
     if (count($xml->entryDistributionId)) {
         $this->entryDistributionId = (int) $xml->entryDistributionId;
     }
     if (!empty($xml->entryDistribution)) {
         $this->entryDistribution = Kaltura_Client_ParseUtils::unmarshalObject($xml->entryDistribution, "KalturaEntryDistribution");
     }
     $this->remoteId = (string) $xml->remoteId;
     $this->providerType = (string) $xml->providerType;
     if (!empty($xml->providerData)) {
         $this->providerData = Kaltura_Client_ParseUtils::unmarshalObject($xml->providerData, "KalturaDistributionJobProviderData");
     }
     $this->results = (string) $xml->results;
     $this->sentData = (string) $xml->sentData;
     if (empty($xml->mediaFiles)) {
         $this->mediaFiles = array();
     } else {
         $this->mediaFiles = Kaltura_Client_ParseUtils::unmarshalArray($xml->mediaFiles, "KalturaDistributionRemoteMediaFile");
     }
 }
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (!empty($xml->dimensions)) {
         $this->dimensions = Kaltura_Client_ParseUtils::unmarshalObject($xml->dimensions, "KalturaDistributionThumbDimensions");
     }
 }
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (!empty($xml->filter)) {
         $this->filter = Kaltura_Client_ParseUtils::unmarshalObject($xml->filter, "KalturaUserFilter");
     }
 }
コード例 #10
0
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (!empty($xml->content)) {
         $this->content = Kaltura_Client_ParseUtils::unmarshalObject($xml->content, "KalturaStringValue");
     }
 }
コード例 #11
0
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (!empty($xml->field)) {
         $this->field = Kaltura_Client_ParseUtils::unmarshalObject($xml->field, "KalturaBooleanField");
     }
 }
コード例 #12
0
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (!empty($xml->resource)) {
         $this->resource = Kaltura_Client_ParseUtils::unmarshalObject($xml->resource, "KalturaDataCenterContentResource");
     }
 }
コード例 #13
0
ファイル: Filter.php プロジェクト: Blaeg/kaltura-migrations
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->orderBy = (string) $xml->orderBy;
     if (!empty($xml->advancedSearch)) {
         $this->advancedSearch = Kaltura_Client_ParseUtils::unmarshalObject($xml->advancedSearch, "KalturaSearchItem");
     }
 }
コード例 #14
0
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (!empty($xml->value)) {
         $this->value = Kaltura_Client_ParseUtils::unmarshalObject($xml->value, "KalturaIntegerValue");
     }
     $this->comparison = (string) $xml->comparison;
 }
コード例 #15
0
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (empty($xml->properties)) {
         $this->properties = array();
     } else {
         $this->properties = Kaltura_Client_ParseUtils::unmarshalArray($xml->properties, "KalturaKeyValue");
     }
 }
コード例 #16
0
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->key = (string) $xml->key;
     $this->description = (string) $xml->description;
     if (!empty($xml->value)) {
         $this->value = Kaltura_Client_ParseUtils::unmarshalObject($xml->value, "KalturaStringValue");
     }
 }
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (empty($xml->emailRecipients)) {
         $this->emailRecipients = array();
     } else {
         $this->emailRecipients = Kaltura_Client_ParseUtils::unmarshalArray($xml->emailRecipients, "KalturaEmailNotificationRecipient");
     }
 }
コード例 #18
0
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (empty($xml->resources)) {
         $this->resources = array();
     } else {
         $this->resources = Kaltura_Client_ParseUtils::unmarshalArray($xml->resources, "KalturaRemoteStorageResource");
     }
 }
コード例 #19
0
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (empty($xml->changedItems)) {
         $this->changedItems = array();
     } else {
         $this->changedItems = Kaltura_Client_ParseUtils::unmarshalArray($xml->changedItems, "KalturaAuditTrailChangeItem");
     }
 }
コード例 #20
0
 function updateStatus($id, $status)
 {
     $kparams = array();
     $this->client->addParam($kparams, "id", $id);
     $this->client->addParam($kparams, "status", $status);
     $this->client->queueServiceActionCall("varconsole_varconsole", "updateStatus", null, $kparams);
     if ($this->client->isMultiRequest()) {
         return $this->client->getMultiRequestResult();
     }
     $resultXml = $this->client->doQueue();
     $resultXmlObject = new \SimpleXMLElement($resultXml);
     Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result);
 }
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (!empty($xml->categoryId)) {
         $this->categoryId = Kaltura_Client_ParseUtils::unmarshalObject($xml->categoryId, "KalturaStringValue");
     }
     if (!empty($xml->categoryUserFilter)) {
         $this->categoryUserFilter = Kaltura_Client_ParseUtils::unmarshalObject($xml->categoryUserFilter, "KalturaCategoryUserProviderFilter");
     }
 }
コード例 #22
0
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (!empty($xml->conversionProfileIdFilter)) {
         $this->conversionProfileIdFilter = Kaltura_Client_ParseUtils::unmarshalObject($xml->conversionProfileIdFilter, "KalturaConversionProfileFilter");
     }
     if (!empty($xml->assetParamsIdFilter)) {
         $this->assetParamsIdFilter = Kaltura_Client_ParseUtils::unmarshalObject($xml->assetParamsIdFilter, "KalturaAssetParamsFilter");
     }
 }
コード例 #23
0
ファイル: ObjectBase.php プロジェクト: DBezemer/server
 public function __construct(SimpleXMLElement $xml = null)
 {
     if (is_null($xml)) {
         return;
     }
     if (count($xml->relatedObjects)) {
         if (empty($xml->relatedObjects)) {
             $this->relatedObjects = array();
         } else {
             $this->relatedObjects = Kaltura_Client_ParseUtils::unmarshalMap($xml->relatedObjects, "KalturaListResponse");
         }
     }
 }
コード例 #24
0
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->validationError = (string) $xml->validationError;
     if (empty($xml->assetDistributionConditions)) {
         $this->assetDistributionConditions = array();
     } else {
         $this->assetDistributionConditions = Kaltura_Client_ParseUtils::unmarshalArray($xml->assetDistributionConditions, "KalturaAssetDistributionCondition");
     }
 }
コード例 #25
0
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->columns = (string) $xml->columns;
     if (empty($xml->results)) {
         $this->results = array();
     } else {
         $this->results = Kaltura_Client_ParseUtils::unmarshalArray($xml->results, "KalturaString");
     }
 }
コード例 #26
0
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->xslt = (string) $xml->xslt;
     if (empty($xml->itemXpathsToExtend)) {
         $this->itemXpathsToExtend = array();
     } else {
         $this->itemXpathsToExtend = Kaltura_Client_ParseUtils::unmarshalArray($xml->itemXpathsToExtend, "KalturaExtendingItemMrssParameter");
     }
 }
コード例 #27
0
 function getTime()
 {
     $kparams = array();
     $this->client->queueServiceActionCall("system", "getTime", null, $kparams);
     if ($this->client->isMultiRequest()) {
         return $this->client->getMultiRequestResult();
     }
     $resultXml = $this->client->doQueue();
     $resultXmlObject = new \SimpleXMLElement($resultXml);
     Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result);
     $resultObject = (int) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result);
     return $resultObject;
 }
コード例 #28
0
 function getFaspUrl($flavorAssetId)
 {
     $kparams = array();
     $this->client->addParam($kparams, "flavorAssetId", $flavorAssetId);
     $this->client->queueServiceActionCall("aspera_aspera", "getFaspUrl", null, $kparams);
     if ($this->client->isMultiRequest()) {
         return $this->client->getMultiRequestResult();
     }
     $resultXml = $this->client->doQueue();
     $resultXmlObject = new \SimpleXMLElement($resultXml);
     Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result);
     $resultObject = (string) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result);
     return $resultObject;
 }
コード例 #29
0
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (empty($xml->provisioningParams)) {
         $this->provisioningParams = array();
     } else {
         $this->provisioningParams = Kaltura_Client_ParseUtils::unmarshalArray($xml->provisioningParams, "KalturaKeyValue");
     }
     $this->userName = (string) $xml->userName;
     $this->password = (string) $xml->password;
 }
コード例 #30
0
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->xpath = (string) $xml->xpath;
     if (!empty($xml->identifier)) {
         $this->identifier = Kaltura_Client_ParseUtils::unmarshalObject($xml->identifier, "KalturaObjectIdentifier");
     }
     if (count($xml->extensionMode)) {
         $this->extensionMode = (int) $xml->extensionMode;
     }
 }