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; } $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; } $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; } 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->field)) { $this->field = Kaltura_Client_ParseUtils::unmarshalObject($xml->field, "KalturaBooleanField"); } }
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->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->value)) { $this->value = Kaltura_Client_ParseUtils::unmarshalObject($xml->value, "KalturaIntegerValue"); } $this->comparison = (string) $xml->comparison; }
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->conversionProfileIdFilter)) { $this->conversionProfileIdFilter = Kaltura_Client_ParseUtils::unmarshalObject($xml->conversionProfileIdFilter, "KalturaConversionProfileFilter"); } if (!empty($xml->assetParamsIdFilter)) { $this->assetParamsIdFilter = Kaltura_Client_ParseUtils::unmarshalObject($xml->assetParamsIdFilter, "KalturaAssetParamsFilter"); } }
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; } $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; } }
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; }
function reportKceError(Kaltura_Client_Type_CEError $kalturaCEError) { $kparams = array(); $this->client->addParam($kparams, "kalturaCEError", $kalturaCEError->toParams()); $this->client->queueServiceActionCall("stats", "reportKceError", "KalturaCEError", $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, "KalturaCEError"); $this->client->validateObjectType($resultObject, "Kaltura_Client_Type_CEError"); return $resultObject; }
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; }
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; }
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; } }
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; }
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; }
function update($conversionProfileId, $assetParamsId, Kaltura_Client_Type_ConversionProfileAssetParams $conversionProfileAssetParams) { $kparams = array(); $this->client->addParam($kparams, "conversionProfileId", $conversionProfileId); $this->client->addParam($kparams, "assetParamsId", $assetParamsId); $this->client->addParam($kparams, "conversionProfileAssetParams", $conversionProfileAssetParams->toParams()); $this->client->queueServiceActionCall("conversionprofileassetparams", "update", "KalturaConversionProfileAssetParams", $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, "KalturaConversionProfileAssetParams"); $this->client->validateObjectType($resultObject, "Kaltura_Client_Type_ConversionProfileAssetParams"); return $resultObject; }
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; } }
function search(Kaltura_Client_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_TagSearch_Type_TagListResponse"); return $resultObject; }
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; }
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; } }
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; }
function listAction(Kaltura_Client_ContentDistribution_Type_DistributionProviderFilter $filter = null, Kaltura_Client_Type_FilterPager $pager = null) { $kparams = array(); if ($filter !== null) { $this->client->addParam($kparams, "filter", $filter->toParams()); } if ($pager !== null) { $this->client->addParam($kparams, "pager", $pager->toParams()); } $this->client->queueServiceActionCall("contentdistribution_distributionprovider", "list", "KalturaDistributionProviderListResponse", $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, "KalturaDistributionProviderListResponse"); $this->client->validateObjectType($resultObject, "Kaltura_Client_ContentDistribution_Type_DistributionProviderListResponse"); return $resultObject; }
public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } if (!empty($xml->object)) { $this->object = Kaltura_Client_ParseUtils::unmarshalObject($xml->object, "KalturaObjectBase"); } $this->eventObjectType = (string) $xml->eventObjectType; if (count($xml->eventNotificationJobId)) { $this->eventNotificationJobId = (int) $xml->eventNotificationJobId; } if (count($xml->templateId)) { $this->templateId = (int) $xml->templateId; } $this->templateName = (string) $xml->templateName; $this->templateSystemName = (string) $xml->templateSystemName; $this->eventType = (string) $xml->eventType; }