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");
     }
 }
 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;
     }
 }
 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 (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;
     }
 }
 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->resource)) {
         $this->resource = \Kaltura\Client\ParseUtils::unmarshalObject($xml->resource, "KalturaDataCenterContentResource");
     }
 }
 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");
     }
 }
 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");
     }
 }
 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");
     }
 }
Esempio n. 10
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;
 }
Esempio n. 11
0
 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");
     }
 }
 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->objects)) {
         $this->objects = \Kaltura\Client\ParseUtils::unmarshalObject($xml->objects, "KalturaLiveStats");
     }
     if (count($xml->totalCount)) {
         $this->totalCount = (int) $xml->totalCount;
     }
 }
 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");
     }
 }
Esempio n. 15
0
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (!empty($xml->city)) {
         $this->city = \Kaltura\Client\ParseUtils::unmarshalObject($xml->city, "KalturaCoordinate");
     }
     if (!empty($xml->country)) {
         $this->country = \Kaltura\Client\ParseUtils::unmarshalObject($xml->country, "KalturaCoordinate");
     }
 }
 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");
     }
 }
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (!empty($xml->flavorAsset)) {
         $this->flavorAsset = \Kaltura\Client\ParseUtils::unmarshalObject($xml->flavorAsset, "KalturaFlavorAsset");
     }
     if (!empty($xml->flavorParams)) {
         $this->flavorParams = \Kaltura\Client\ParseUtils::unmarshalObject($xml->flavorParams, "KalturaFlavorParams");
     }
     $this->entryId = (string) $xml->entryId;
 }
 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;
     }
 }
Esempio n. 19
0
 /**
  * 
  * @return \Kaltura\Client\Type\UploadResponse
  */
 function getUploadedFileTokenByFileName($fileName)
 {
     $kparams = array();
     $this->client->addParam($kparams, "fileName", $fileName);
     $this->client->queueServiceActionCall("upload", "getUploadedFileTokenByFileName", "KalturaUploadResponse", $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, "KalturaUploadResponse");
     $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Type\\UploadResponse");
     return $resultObject;
 }
 /**
  * Return the notifications for a specific entry id and type
  * 	 
  * 
  * @return \Kaltura\Client\Type\ClientNotification
  */
 function getClientNotification($entryId, $type)
 {
     $kparams = array();
     $this->client->addParam($kparams, "entryId", $entryId);
     $this->client->addParam($kparams, "type", $type);
     $this->client->queueServiceActionCall("notification", "getClientNotification", "KalturaClientNotification", $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, "KalturaClientNotification");
     $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Type\\ClientNotification");
     return $resultObject;
 }
 /**
  * Update media server status
  * 	 
  * 
  * @return \Kaltura\Client\Type\MediaServer
  */
 function reportStatus($hostname, \Kaltura\Client\Type\MediaServerStatus $mediaServerStatus)
 {
     $kparams = array();
     $this->client->addParam($kparams, "hostname", $hostname);
     $this->client->addParam($kparams, "mediaServerStatus", $mediaServerStatus->toParams());
     $this->client->queueServiceActionCall("mediaserver", "reportStatus", "KalturaMediaServer", $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, "KalturaMediaServer");
     $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Type\\MediaServer");
     return $resultObject;
 }
Esempio n. 22
0
 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, "KalturaFilter");
     }
     if (count($xml->lastIndexId)) {
         $this->lastIndexId = (int) $xml->lastIndexId;
     }
     if (!empty($xml->shouldUpdate)) {
         $this->shouldUpdate = true;
     }
 }
Esempio n. 23
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->parsedAt)) {
         $this->parsedAt = (int) $xml->parsedAt;
     }
     if (count($xml->status)) {
         $this->status = (int) $xml->status;
     }
     $this->auditObjectType = (string) $xml->auditObjectType;
     $this->objectId = (string) $xml->objectId;
     $this->relatedObjectId = (string) $xml->relatedObjectId;
     $this->relatedObjectType = (string) $xml->relatedObjectType;
     $this->entryId = (string) $xml->entryId;
     if (count($xml->masterPartnerId)) {
         $this->masterPartnerId = (int) $xml->masterPartnerId;
     }
     if (count($xml->partnerId)) {
         $this->partnerId = (int) $xml->partnerId;
     }
     $this->requestId = (string) $xml->requestId;
     $this->userId = (string) $xml->userId;
     $this->action = (string) $xml->action;
     if (!empty($xml->data)) {
         $this->data = \Kaltura\Client\ParseUtils::unmarshalObject($xml->data, "KalturaAuditTrailInfo");
     }
     $this->ks = (string) $xml->ks;
     if (count($xml->context)) {
         $this->context = (int) $xml->context;
     }
     $this->entryPoint = (string) $xml->entryPoint;
     $this->serverName = (string) $xml->serverName;
     $this->ipAddress = (string) $xml->ipAddress;
     $this->userAgent = (string) $xml->userAgent;
     $this->clientTag = (string) $xml->clientTag;
     $this->description = (string) $xml->description;
     $this->errorDescription = (string) $xml->errorDescription;
 }
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (!empty($xml->total)) {
         $this->total = \Kaltura\Client\ParseUtils::unmarshalObject($xml->total, "KalturaVarPartnerUsageItem");
     }
     if (empty($xml->objects)) {
         $this->objects = array();
     } else {
         $this->objects = \Kaltura\Client\ParseUtils::unmarshalArray($xml->objects, "KalturaVarPartnerUsageItem");
     }
     if (count($xml->totalCount)) {
         $this->totalCount = (int) $xml->totalCount;
     }
 }
Esempio n. 25
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, "KalturaContentResource");
     }
     if (empty($xml->operationAttributes)) {
         $this->operationAttributes = array();
     } else {
         $this->operationAttributes = \Kaltura\Client\ParseUtils::unmarshalArray($xml->operationAttributes, "KalturaOperationAttributes");
     }
     if (count($xml->assetParamsId)) {
         $this->assetParamsId = (int) $xml->assetParamsId;
     }
 }
Esempio n. 26
0
 /**
  * 
  * @return \Kaltura\Client\Plugin\TagSearch\Type\TagListResponse
  */
 function search(\Kaltura\Client\Plugin\TagSearch\Type\TagFilter $tagFilter, \Kaltura\Client\Type\FilterPager $pager = null)
 {
     $kparams = array();
     $this->client->addParam($kparams, "tagFilter", $tagFilter->toParams());
     if ($pager !== null) {
         $this->client->addParam($kparams, "pager", $pager->toParams());
     }
     $this->client->queueServiceActionCall("tagsearch_tag", "search", "KalturaTagListResponse", $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, "KalturaTagListResponse");
     $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Plugin\\TagSearch\\Type\\TagListResponse");
     return $resultObject;
 }
Esempio n. 27
0
 /**
  * Update admin user password and email
  * 	 
  * 
  * @return \Kaltura\Client\Type\AdminUser
  */
 function updatePassword($email, $password, $newEmail = "", $newPassword = "")
 {
     $kparams = array();
     $this->client->addParam($kparams, "email", $email);
     $this->client->addParam($kparams, "password", $password);
     $this->client->addParam($kparams, "newEmail", $newEmail);
     $this->client->addParam($kparams, "newPassword", $newPassword);
     $this->client->queueServiceActionCall("adminuser", "updatePassword", "KalturaAdminUser", $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, "KalturaAdminUser");
     $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Type\\AdminUser");
     return $resultObject;
 }
Esempio n. 28
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->status = (string) $xml->status;
     $this->type = (string) $xml->type;
     $this->name = (string) $xml->name;
     $this->systemName = (string) $xml->systemName;
     $this->tags = (string) $xml->tags;
     $this->description = (string) $xml->description;
     $this->defaultEntryId = (string) $xml->defaultEntryId;
     if (count($xml->createdAt)) {
         $this->createdAt = (int) $xml->createdAt;
     }
     $this->flavorParamsIds = (string) $xml->flavorParamsIds;
     if (count($xml->isDefault)) {
         $this->isDefault = (int) $xml->isDefault;
     }
     if (!empty($xml->isPartnerDefault)) {
         $this->isPartnerDefault = true;
     }
     if (!empty($xml->cropDimensions)) {
         $this->cropDimensions = \Kaltura\Client\ParseUtils::unmarshalObject($xml->cropDimensions, "KalturaCropDimensions");
     }
     if (count($xml->clipStart)) {
         $this->clipStart = (int) $xml->clipStart;
     }
     if (count($xml->clipDuration)) {
         $this->clipDuration = (int) $xml->clipDuration;
     }
     $this->xslTransformation = (string) $xml->xslTransformation;
     if (count($xml->storageProfileId)) {
         $this->storageProfileId = (int) $xml->storageProfileId;
     }
     $this->mediaParserType = (string) $xml->mediaParserType;
 }
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (!empty($xml->policy)) {
         $this->policy = \Kaltura\Client\ParseUtils::unmarshalObject($xml->policy, "KalturaPlayReadyPolicy");
     }
     if (count($xml->beginDate)) {
         $this->beginDate = (int) $xml->beginDate;
     }
     if (count($xml->expirationDate)) {
         $this->expirationDate = (int) $xml->expirationDate;
     }
     if (count($xml->removalDate)) {
         $this->removalDate = (int) $xml->removalDate;
     }
 }
Esempio n. 30
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->type = (string) $xml->type;
     $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;
     }
     $this->streamerType = (string) $xml->streamerType;
     $this->url = (string) $xml->url;
     $this->hostName = (string) $xml->hostName;
     if (count($xml->status)) {
         $this->status = (int) $xml->status;
     }
     if (!empty($xml->recognizer)) {
         $this->recognizer = \Kaltura\Client\ParseUtils::unmarshalObject($xml->recognizer, "KalturaUrlRecognizer");
     }
     if (!empty($xml->tokenizer)) {
         $this->tokenizer = \Kaltura\Client\ParseUtils::unmarshalObject($xml->tokenizer, "KalturaUrlTokenizer");
     }
     if (count($xml->isDefault)) {
         $this->isDefault = (int) $xml->isDefault;
     }
     if (count($xml->parentId)) {
         $this->parentId = (int) $xml->parentId;
     }
     $this->mediaProtocols = (string) $xml->mediaProtocols;
 }