Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

4486 lines (4126 sloc) 169.267 kb
<?php
// ===================================================================================================
// _ __ _ _
// | |/ /__ _| | |_ _ _ _ _ __ _
// | ' </ _` | | _| || | '_/ _` |
// |_|\_\__,_|_|\__|\_,_|_| \__,_|
//
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platfroms allow them to do with
// text.
//
// Copyright (C) 2006-2011 Kaltura Inc.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// @ignore
// ===================================================================================================
require_once("KalturaClientBase.php");
require_once("KalturaEnums.php");
require_once("KalturaTypes.php");
class KalturaAccessControlProfileService extends KalturaServiceBase
{
function __construct(KalturaClient $client = null)
{
parent::__construct($client);
}
function add(KalturaAccessControlProfile $accessControlProfile)
{
$kparams = array();
$this->client->addParam($kparams, "accessControlProfile", $accessControlProfile->toParams());
$this->client->queueServiceActionCall("accesscontrolprofile", "add", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaAccessControlProfile");
return $resultObject;
}
function get($id)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->queueServiceActionCall("accesscontrolprofile", "get", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaAccessControlProfile");
return $resultObject;
}
function update($id, KalturaAccessControlProfile $accessControlProfile)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->addParam($kparams, "accessControlProfile", $accessControlProfile->toParams());
$this->client->queueServiceActionCall("accesscontrolprofile", "update", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaAccessControlProfile");
return $resultObject;
}
function delete($id)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->queueServiceActionCall("accesscontrolprofile", "delete", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
function listAction(KalturaAccessControlProfileFilter $filter = null, KalturaFilterPager $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("accesscontrolprofile", "list", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaAccessControlProfileListResponse");
return $resultObject;
}
}
class KalturaAccessControlService extends KalturaServiceBase
{
function __construct(KalturaClient $client = null)
{
parent::__construct($client);
}
function add(KalturaAccessControl $accessControl)
{
$kparams = array();
$this->client->addParam($kparams, "accessControl", $accessControl->toParams());
$this->client->queueServiceActionCall("accesscontrol", "add", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaAccessControl");
return $resultObject;
}
function get($id)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->queueServiceActionCall("accesscontrol", "get", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaAccessControl");
return $resultObject;
}
function update($id, KalturaAccessControl $accessControl)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->addParam($kparams, "accessControl", $accessControl->toParams());
$this->client->queueServiceActionCall("accesscontrol", "update", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaAccessControl");
return $resultObject;
}
function delete($id)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->queueServiceActionCall("accesscontrol", "delete", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
function listAction(KalturaAccessControlFilter $filter = null, KalturaFilterPager $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("accesscontrol", "list", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaAccessControlListResponse");
return $resultObject;
}
}
class KalturaAdminUserService extends KalturaServiceBase
{
function __construct(KalturaClient $client = null)
{
parent::__construct($client);
}
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", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaAdminUser");
return $resultObject;
}
function resetPassword($email)
{
$kparams = array();
$this->client->addParam($kparams, "email", $email);
$this->client->queueServiceActionCall("adminuser", "resetPassword", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
function login($email, $password, $partnerId = null)
{
$kparams = array();
$this->client->addParam($kparams, "email", $email);
$this->client->addParam($kparams, "password", $password);
$this->client->addParam($kparams, "partnerId", $partnerId);
$this->client->queueServiceActionCall("adminuser", "login", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "string");
return $resultObject;
}
function setInitialPassword($hashKey, $newPassword)
{
$kparams = array();
$this->client->addParam($kparams, "hashKey", $hashKey);
$this->client->addParam($kparams, "newPassword", $newPassword);
$this->client->queueServiceActionCall("adminuser", "setInitialPassword", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
}
class KalturaBaseEntryService extends KalturaServiceBase
{
function __construct(KalturaClient $client = null)
{
parent::__construct($client);
}
function add(KalturaBaseEntry $entry, $type = null)
{
$kparams = array();
$this->client->addParam($kparams, "entry", $entry->toParams());
$this->client->addParam($kparams, "type", $type);
$this->client->queueServiceActionCall("baseentry", "add", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaBaseEntry");
return $resultObject;
}
function addContent($entryId, KalturaResource $resource)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "resource", $resource->toParams());
$this->client->queueServiceActionCall("baseentry", "addContent", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaBaseEntry");
return $resultObject;
}
function addFromUploadedFile(KalturaBaseEntry $entry, $uploadTokenId, $type = null)
{
$kparams = array();
$this->client->addParam($kparams, "entry", $entry->toParams());
$this->client->addParam($kparams, "uploadTokenId", $uploadTokenId);
$this->client->addParam($kparams, "type", $type);
$this->client->queueServiceActionCall("baseentry", "addFromUploadedFile", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaBaseEntry");
return $resultObject;
}
function get($entryId, $version = -1)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "version", $version);
$this->client->queueServiceActionCall("baseentry", "get", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaBaseEntry");
return $resultObject;
}
function getRemotePaths($entryId)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->queueServiceActionCall("baseentry", "getRemotePaths", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaRemotePathListResponse");
return $resultObject;
}
function update($entryId, KalturaBaseEntry $baseEntry)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "baseEntry", $baseEntry->toParams());
$this->client->queueServiceActionCall("baseentry", "update", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaBaseEntry");
return $resultObject;
}
function updateContent($entryId, KalturaResource $resource, $conversionProfileId = null)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "resource", $resource->toParams());
$this->client->addParam($kparams, "conversionProfileId", $conversionProfileId);
$this->client->queueServiceActionCall("baseentry", "updateContent", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaBaseEntry");
return $resultObject;
}
function getByIds($entryIds)
{
$kparams = array();
$this->client->addParam($kparams, "entryIds", $entryIds);
$this->client->queueServiceActionCall("baseentry", "getByIds", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "array");
return $resultObject;
}
function delete($entryId)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->queueServiceActionCall("baseentry", "delete", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
function listAction(KalturaBaseEntryFilter $filter = null, KalturaFilterPager $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("baseentry", "list", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaBaseEntryListResponse");
return $resultObject;
}
function listByReferenceId($refId, KalturaFilterPager $pager = null)
{
$kparams = array();
$this->client->addParam($kparams, "refId", $refId);
if ($pager !== null)
$this->client->addParam($kparams, "pager", $pager->toParams());
$this->client->queueServiceActionCall("baseentry", "listByReferenceId", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
function count(KalturaBaseEntryFilter $filter = null)
{
$kparams = array();
if ($filter !== null)
$this->client->addParam($kparams, "filter", $filter->toParams());
$this->client->queueServiceActionCall("baseentry", "count", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "integer");
return $resultObject;
}
function upload($fileData)
{
$kparams = array();
$kfiles = array();
$this->client->addParam($kfiles, "fileData", $fileData);
$this->client->queueServiceActionCall("baseentry", "upload", $kparams, $kfiles);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "string");
return $resultObject;
}
function updateThumbnailJpeg($entryId, $fileData)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$kfiles = array();
$this->client->addParam($kfiles, "fileData", $fileData);
$this->client->queueServiceActionCall("baseentry", "updateThumbnailJpeg", $kparams, $kfiles);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaBaseEntry");
return $resultObject;
}
function updateThumbnailFromUrl($entryId, $url)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "url", $url);
$this->client->queueServiceActionCall("baseentry", "updateThumbnailFromUrl", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaBaseEntry");
return $resultObject;
}
function updateThumbnailFromSourceEntry($entryId, $sourceEntryId, $timeOffset)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "sourceEntryId", $sourceEntryId);
$this->client->addParam($kparams, "timeOffset", $timeOffset);
$this->client->queueServiceActionCall("baseentry", "updateThumbnailFromSourceEntry", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaBaseEntry");
return $resultObject;
}
function flag(KalturaModerationFlag $moderationFlag)
{
$kparams = array();
$this->client->addParam($kparams, "moderationFlag", $moderationFlag->toParams());
$this->client->queueServiceActionCall("baseentry", "flag", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
function reject($entryId)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->queueServiceActionCall("baseentry", "reject", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
function approve($entryId)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->queueServiceActionCall("baseentry", "approve", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
function listFlags($entryId, KalturaFilterPager $pager = null)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
if ($pager !== null)
$this->client->addParam($kparams, "pager", $pager->toParams());
$this->client->queueServiceActionCall("baseentry", "listFlags", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaModerationFlagListResponse");
return $resultObject;
}
function anonymousRank($entryId, $rank)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "rank", $rank);
$this->client->queueServiceActionCall("baseentry", "anonymousRank", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
function getContextData($entryId, KalturaEntryContextDataParams $contextDataParams)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "contextDataParams", $contextDataParams->toParams());
$this->client->queueServiceActionCall("baseentry", "getContextData", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaEntryContextDataResult");
return $resultObject;
}
function export($entryId, $storageProfileId)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "storageProfileId", $storageProfileId);
$this->client->queueServiceActionCall("baseentry", "export", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaBaseEntry");
return $resultObject;
}
}
class KalturaBulkUploadService extends KalturaServiceBase
{
function __construct(KalturaClient $client = null)
{
parent::__construct($client);
}
function add($conversionProfileId, $csvFileData, $bulkUploadType = null, $uploadedBy = null)
{
$kparams = array();
$this->client->addParam($kparams, "conversionProfileId", $conversionProfileId);
$kfiles = array();
$this->client->addParam($kfiles, "csvFileData", $csvFileData);
$this->client->addParam($kparams, "bulkUploadType", $bulkUploadType);
$this->client->addParam($kparams, "uploadedBy", $uploadedBy);
$this->client->queueServiceActionCall("bulkupload", "add", $kparams, $kfiles);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaBulkUpload");
return $resultObject;
}
function get($id)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->queueServiceActionCall("bulkupload", "get", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaBulkUpload");
return $resultObject;
}
function listAction(KalturaFilterPager $pager = null)
{
$kparams = array();
if ($pager !== null)
$this->client->addParam($kparams, "pager", $pager->toParams());
$this->client->queueServiceActionCall("bulkupload", "list", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaBulkUploadListResponse");
return $resultObject;
}
function serve($id)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->queueServiceActionCall('bulkupload', 'serve', $kparams);
$resultObject = $this->client->getServeUrl();
return $resultObject;
}
function serveLog($id)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->queueServiceActionCall('bulkupload', 'serveLog', $kparams);
$resultObject = $this->client->getServeUrl();
return $resultObject;
}
function abort($id)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->queueServiceActionCall("bulkupload", "abort", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaBulkUpload");
return $resultObject;
}
}
class KalturaCategoryService extends KalturaServiceBase
{
function __construct(KalturaClient $client = null)
{
parent::__construct($client);
}
function add(KalturaCategory $category)
{
$kparams = array();
$this->client->addParam($kparams, "category", $category->toParams());
$this->client->queueServiceActionCall("category", "add", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaCategory");
return $resultObject;
}
function get($id)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->queueServiceActionCall("category", "get", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaCategory");
return $resultObject;
}
function update($id, KalturaCategory $category)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->addParam($kparams, "category", $category->toParams());
$this->client->queueServiceActionCall("category", "update", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaCategory");
return $resultObject;
}
function delete($id)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->queueServiceActionCall("category", "delete", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
function listAction(KalturaCategoryFilter $filter = null)
{
$kparams = array();
if ($filter !== null)
$this->client->addParam($kparams, "filter", $filter->toParams());
$this->client->queueServiceActionCall("category", "list", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaCategoryListResponse");
return $resultObject;
}
}
class KalturaConversionProfileAssetParamsService extends KalturaServiceBase
{
function __construct(KalturaClient $client = null)
{
parent::__construct($client);
}
function listAction(KalturaConversionProfileAssetParamsFilter $filter = null, KalturaFilterPager $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("conversionprofileassetparams", "list", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaConversionProfileAssetParamsListResponse");
return $resultObject;
}
function update($conversionProfileId, $assetParamsId, KalturaConversionProfileAssetParams $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", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaConversionProfileAssetParams");
return $resultObject;
}
}
class KalturaConversionProfileService extends KalturaServiceBase
{
function __construct(KalturaClient $client = null)
{
parent::__construct($client);
}
function setAsDefault($id)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->queueServiceActionCall("conversionprofile", "setAsDefault", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaConversionProfile");
return $resultObject;
}
function getDefault()
{
$kparams = array();
$this->client->queueServiceActionCall("conversionprofile", "getDefault", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaConversionProfile");
return $resultObject;
}
function add(KalturaConversionProfile $conversionProfile)
{
$kparams = array();
$this->client->addParam($kparams, "conversionProfile", $conversionProfile->toParams());
$this->client->queueServiceActionCall("conversionprofile", "add", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaConversionProfile");
return $resultObject;
}
function get($id)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->queueServiceActionCall("conversionprofile", "get", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaConversionProfile");
return $resultObject;
}
function update($id, KalturaConversionProfile $conversionProfile)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->addParam($kparams, "conversionProfile", $conversionProfile->toParams());
$this->client->queueServiceActionCall("conversionprofile", "update", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaConversionProfile");
return $resultObject;
}
function delete($id)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->queueServiceActionCall("conversionprofile", "delete", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
function listAction(KalturaConversionProfileFilter $filter = null, KalturaFilterPager $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("conversionprofile", "list", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaConversionProfileListResponse");
return $resultObject;
}
}
class KalturaDataService extends KalturaServiceBase
{
function __construct(KalturaClient $client = null)
{
parent::__construct($client);
}
function add(KalturaDataEntry $dataEntry)
{
$kparams = array();
$this->client->addParam($kparams, "dataEntry", $dataEntry->toParams());
$this->client->queueServiceActionCall("data", "add", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaDataEntry");
return $resultObject;
}
function get($entryId, $version = -1)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "version", $version);
$this->client->queueServiceActionCall("data", "get", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaDataEntry");
return $resultObject;
}
function update($entryId, KalturaDataEntry $documentEntry)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "documentEntry", $documentEntry->toParams());
$this->client->queueServiceActionCall("data", "update", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaDataEntry");
return $resultObject;
}
function delete($entryId)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->queueServiceActionCall("data", "delete", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
function listAction(KalturaDataEntryFilter $filter = null, KalturaFilterPager $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("data", "list", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaDataListResponse");
return $resultObject;
}
function serve($entryId, $version = -1, $forceProxy = false)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "version", $version);
$this->client->addParam($kparams, "forceProxy", $forceProxy);
$this->client->queueServiceActionCall('data', 'serve', $kparams);
$resultObject = $this->client->getServeUrl();
return $resultObject;
}
}
class KalturaDocumentService extends KalturaServiceBase
{
function __construct(KalturaClient $client = null)
{
parent::__construct($client);
}
function addFromUploadedFile(KalturaDocumentEntry $documentEntry, $uploadTokenId)
{
$kparams = array();
$this->client->addParam($kparams, "documentEntry", $documentEntry->toParams());
$this->client->addParam($kparams, "uploadTokenId", $uploadTokenId);
$this->client->queueServiceActionCall("document", "addFromUploadedFile", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaDocumentEntry");
return $resultObject;
}
function addFromEntry($sourceEntryId, KalturaDocumentEntry $documentEntry = null, $sourceFlavorParamsId = null)
{
$kparams = array();
$this->client->addParam($kparams, "sourceEntryId", $sourceEntryId);
if ($documentEntry !== null)
$this->client->addParam($kparams, "documentEntry", $documentEntry->toParams());
$this->client->addParam($kparams, "sourceFlavorParamsId", $sourceFlavorParamsId);
$this->client->queueServiceActionCall("document", "addFromEntry", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaDocumentEntry");
return $resultObject;
}
function addFromFlavorAsset($sourceFlavorAssetId, KalturaDocumentEntry $documentEntry = null)
{
$kparams = array();
$this->client->addParam($kparams, "sourceFlavorAssetId", $sourceFlavorAssetId);
if ($documentEntry !== null)
$this->client->addParam($kparams, "documentEntry", $documentEntry->toParams());
$this->client->queueServiceActionCall("document", "addFromFlavorAsset", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaDocumentEntry");
return $resultObject;
}
function convert($entryId, $conversionProfileId = null, array $dynamicConversionAttributes = null)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "conversionProfileId", $conversionProfileId);
if ($dynamicConversionAttributes !== null)
foreach($dynamicConversionAttributes as $index => $obj)
{
$this->client->addParam($kparams, "dynamicConversionAttributes:$index", $obj->toParams());
}
$this->client->queueServiceActionCall("document", "convert", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "integer");
return $resultObject;
}
function get($entryId, $version = -1)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "version", $version);
$this->client->queueServiceActionCall("document", "get", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaDocumentEntry");
return $resultObject;
}
function update($entryId, KalturaDocumentEntry $documentEntry)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "documentEntry", $documentEntry->toParams());
$this->client->queueServiceActionCall("document", "update", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaDocumentEntry");
return $resultObject;
}
function delete($entryId)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->queueServiceActionCall("document", "delete", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
function listAction(KalturaDocumentEntryFilter $filter = null, KalturaFilterPager $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("document", "list", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaDocumentListResponse");
return $resultObject;
}
function upload($fileData)
{
$kparams = array();
$kfiles = array();
$this->client->addParam($kfiles, "fileData", $fileData);
$this->client->queueServiceActionCall("document", "upload", $kparams, $kfiles);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "string");
return $resultObject;
}
function convertPptToSwf($entryId)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->queueServiceActionCall("document", "convertPptToSwf", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "string");
return $resultObject;
}
function serve($entryId, $flavorAssetId = null, $forceProxy = false)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "flavorAssetId", $flavorAssetId);
$this->client->addParam($kparams, "forceProxy", $forceProxy);
$this->client->queueServiceActionCall('document', 'serve', $kparams);
$resultObject = $this->client->getServeUrl();
return $resultObject;
}
function serveByFlavorParamsId($entryId, $flavorParamsId = null, $forceProxy = false)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "flavorParamsId", $flavorParamsId);
$this->client->addParam($kparams, "forceProxy", $forceProxy);
$this->client->queueServiceActionCall('document', 'serveByFlavorParamsId', $kparams);
$resultObject = $this->client->getServeUrl();
return $resultObject;
}
}
class KalturaEmailIngestionProfileService extends KalturaServiceBase
{
function __construct(KalturaClient $client = null)
{
parent::__construct($client);
}
function add(KalturaEmailIngestionProfile $EmailIP)
{
$kparams = array();
$this->client->addParam($kparams, "EmailIP", $EmailIP->toParams());
$this->client->queueServiceActionCall("emailingestionprofile", "add", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaEmailIngestionProfile");
return $resultObject;
}
function getByEmailAddress($emailAddress)
{
$kparams = array();
$this->client->addParam($kparams, "emailAddress", $emailAddress);
$this->client->queueServiceActionCall("emailingestionprofile", "getByEmailAddress", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaEmailIngestionProfile");
return $resultObject;
}
function get($id)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->queueServiceActionCall("emailingestionprofile", "get", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaEmailIngestionProfile");
return $resultObject;
}
function update($id, KalturaEmailIngestionProfile $EmailIP)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->addParam($kparams, "EmailIP", $EmailIP->toParams());
$this->client->queueServiceActionCall("emailingestionprofile", "update", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaEmailIngestionProfile");
return $resultObject;
}
function delete($id)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->queueServiceActionCall("emailingestionprofile", "delete", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
function addMediaEntry(KalturaMediaEntry $mediaEntry, $uploadTokenId, $emailProfId, $fromAddress, $emailMsgId)
{
$kparams = array();
$this->client->addParam($kparams, "mediaEntry", $mediaEntry->toParams());
$this->client->addParam($kparams, "uploadTokenId", $uploadTokenId);
$this->client->addParam($kparams, "emailProfId", $emailProfId);
$this->client->addParam($kparams, "fromAddress", $fromAddress);
$this->client->addParam($kparams, "emailMsgId", $emailMsgId);
$this->client->queueServiceActionCall("emailingestionprofile", "addMediaEntry", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaMediaEntry");
return $resultObject;
}
}
class KalturaFlavorAssetService extends KalturaServiceBase
{
function __construct(KalturaClient $client = null)
{
parent::__construct($client);
}
function add($entryId, KalturaFlavorAsset $flavorAsset)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "flavorAsset", $flavorAsset->toParams());
$this->client->queueServiceActionCall("flavorasset", "add", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaFlavorAsset");
return $resultObject;
}
function update($id, KalturaFlavorAsset $flavorAsset)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->addParam($kparams, "flavorAsset", $flavorAsset->toParams());
$this->client->queueServiceActionCall("flavorasset", "update", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaFlavorAsset");
return $resultObject;
}
function setContent($id, KalturaContentResource $contentResource)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->addParam($kparams, "contentResource", $contentResource->toParams());
$this->client->queueServiceActionCall("flavorasset", "setContent", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaFlavorAsset");
return $resultObject;
}
function get($id)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->queueServiceActionCall("flavorasset", "get", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaFlavorAsset");
return $resultObject;
}
function getByEntryId($entryId)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->queueServiceActionCall("flavorasset", "getByEntryId", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "array");
return $resultObject;
}
function listAction(KalturaAssetFilter $filter = null, KalturaFilterPager $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("flavorasset", "list", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaFlavorAssetListResponse");
return $resultObject;
}
function getWebPlayableByEntryId($entryId)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->queueServiceActionCall("flavorasset", "getWebPlayableByEntryId", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "array");
return $resultObject;
}
function convert($entryId, $flavorParamsId)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "flavorParamsId", $flavorParamsId);
$this->client->queueServiceActionCall("flavorasset", "convert", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
function reconvert($id)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->queueServiceActionCall("flavorasset", "reconvert", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
function delete($id)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->queueServiceActionCall("flavorasset", "delete", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
function getUrl($id, $storageId = null)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->addParam($kparams, "storageId", $storageId);
$this->client->queueServiceActionCall("flavorasset", "getUrl", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "string");
return $resultObject;
}
function getRemotePaths($id)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->queueServiceActionCall("flavorasset", "getRemotePaths", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaRemotePathListResponse");
return $resultObject;
}
function getDownloadUrl($id, $useCdn = false)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->addParam($kparams, "useCdn", $useCdn);
$this->client->queueServiceActionCall("flavorasset", "getDownloadUrl", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "string");
return $resultObject;
}
function getFlavorAssetsWithParams($entryId)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->queueServiceActionCall("flavorasset", "getFlavorAssetsWithParams", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "array");
return $resultObject;
}
function export($assetId, $storageProfileId)
{
$kparams = array();
$this->client->addParam($kparams, "assetId", $assetId);
$this->client->addParam($kparams, "storageProfileId", $storageProfileId);
$this->client->queueServiceActionCall("flavorasset", "export", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaFlavorAsset");
return $resultObject;
}
}
class KalturaFlavorParamsService extends KalturaServiceBase
{
function __construct(KalturaClient $client = null)
{
parent::__construct($client);
}
function add(KalturaFlavorParams $flavorParams)
{
$kparams = array();
$this->client->addParam($kparams, "flavorParams", $flavorParams->toParams());
$this->client->queueServiceActionCall("flavorparams", "add", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaFlavorParams");
return $resultObject;
}
function get($id)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->queueServiceActionCall("flavorparams", "get", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaFlavorParams");
return $resultObject;
}
function update($id, KalturaFlavorParams $flavorParams)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->addParam($kparams, "flavorParams", $flavorParams->toParams());
$this->client->queueServiceActionCall("flavorparams", "update", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaFlavorParams");
return $resultObject;
}
function delete($id)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->queueServiceActionCall("flavorparams", "delete", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
function listAction(KalturaFlavorParamsFilter $filter = null, KalturaFilterPager $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("flavorparams", "list", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaFlavorParamsListResponse");
return $resultObject;
}
function getByConversionProfileId($conversionProfileId)
{
$kparams = array();
$this->client->addParam($kparams, "conversionProfileId", $conversionProfileId);
$this->client->queueServiceActionCall("flavorparams", "getByConversionProfileId", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "array");
return $resultObject;
}
}
class KalturaLiveStreamService extends KalturaServiceBase
{
function __construct(KalturaClient $client = null)
{
parent::__construct($client);
}
function add(KalturaLiveStreamAdminEntry $liveStreamEntry, $sourceType = null)
{
$kparams = array();
$this->client->addParam($kparams, "liveStreamEntry", $liveStreamEntry->toParams());
$this->client->addParam($kparams, "sourceType", $sourceType);
$this->client->queueServiceActionCall("livestream", "add", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaLiveStreamAdminEntry");
return $resultObject;
}
function get($entryId, $version = -1)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "version", $version);
$this->client->queueServiceActionCall("livestream", "get", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaLiveStreamEntry");
return $resultObject;
}
function update($entryId, KalturaLiveStreamAdminEntry $liveStreamEntry)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "liveStreamEntry", $liveStreamEntry->toParams());
$this->client->queueServiceActionCall("livestream", "update", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaLiveStreamAdminEntry");
return $resultObject;
}
function delete($entryId)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->queueServiceActionCall("livestream", "delete", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
function listAction(KalturaLiveStreamEntryFilter $filter = null, KalturaFilterPager $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("livestream", "list", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaLiveStreamListResponse");
return $resultObject;
}
function updateOfflineThumbnailJpeg($entryId, $fileData)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$kfiles = array();
$this->client->addParam($kfiles, "fileData", $fileData);
$this->client->queueServiceActionCall("livestream", "updateOfflineThumbnailJpeg", $kparams, $kfiles);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaLiveStreamEntry");
return $resultObject;
}
function updateOfflineThumbnailFromUrl($entryId, $url)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "url", $url);
$this->client->queueServiceActionCall("livestream", "updateOfflineThumbnailFromUrl", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaLiveStreamEntry");
return $resultObject;
}
}
class KalturaMediaInfoService extends KalturaServiceBase
{
function __construct(KalturaClient $client = null)
{
parent::__construct($client);
}
function listAction(KalturaMediaInfoFilter $filter = null, KalturaFilterPager $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("mediainfo", "list", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaMediaInfoListResponse");
return $resultObject;
}
}
class KalturaMediaService extends KalturaServiceBase
{
function __construct(KalturaClient $client = null)
{
parent::__construct($client);
}
function add(KalturaMediaEntry $entry)
{
$kparams = array();
$this->client->addParam($kparams, "entry", $entry->toParams());
$this->client->queueServiceActionCall("media", "add", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaMediaEntry");
return $resultObject;
}
function addContent($entryId, KalturaResource $resource = null)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
if ($resource !== null)
$this->client->addParam($kparams, "resource", $resource->toParams());
$this->client->queueServiceActionCall("media", "addContent", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaMediaEntry");
return $resultObject;
}
function addFromUrl(KalturaMediaEntry $mediaEntry, $url)
{
$kparams = array();
$this->client->addParam($kparams, "mediaEntry", $mediaEntry->toParams());
$this->client->addParam($kparams, "url", $url);
$this->client->queueServiceActionCall("media", "addFromUrl", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaMediaEntry");
return $resultObject;
}
function addFromSearchResult(KalturaMediaEntry $mediaEntry = null, KalturaSearchResult $searchResult = null)
{
$kparams = array();
if ($mediaEntry !== null)
$this->client->addParam($kparams, "mediaEntry", $mediaEntry->toParams());
if ($searchResult !== null)
$this->client->addParam($kparams, "searchResult", $searchResult->toParams());
$this->client->queueServiceActionCall("media", "addFromSearchResult", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaMediaEntry");
return $resultObject;
}
function addFromUploadedFile(KalturaMediaEntry $mediaEntry, $uploadTokenId)
{
$kparams = array();
$this->client->addParam($kparams, "mediaEntry", $mediaEntry->toParams());
$this->client->addParam($kparams, "uploadTokenId", $uploadTokenId);
$this->client->queueServiceActionCall("media", "addFromUploadedFile", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaMediaEntry");
return $resultObject;
}
function addFromRecordedWebcam(KalturaMediaEntry $mediaEntry, $webcamTokenId)
{
$kparams = array();
$this->client->addParam($kparams, "mediaEntry", $mediaEntry->toParams());
$this->client->addParam($kparams, "webcamTokenId", $webcamTokenId);
$this->client->queueServiceActionCall("media", "addFromRecordedWebcam", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaMediaEntry");
return $resultObject;
}
function addFromEntry($sourceEntryId, KalturaMediaEntry $mediaEntry = null, $sourceFlavorParamsId = null)
{
$kparams = array();
$this->client->addParam($kparams, "sourceEntryId", $sourceEntryId);
if ($mediaEntry !== null)
$this->client->addParam($kparams, "mediaEntry", $mediaEntry->toParams());
$this->client->addParam($kparams, "sourceFlavorParamsId", $sourceFlavorParamsId);
$this->client->queueServiceActionCall("media", "addFromEntry", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaMediaEntry");
return $resultObject;
}
function addFromFlavorAsset($sourceFlavorAssetId, KalturaMediaEntry $mediaEntry = null)
{
$kparams = array();
$this->client->addParam($kparams, "sourceFlavorAssetId", $sourceFlavorAssetId);
if ($mediaEntry !== null)
$this->client->addParam($kparams, "mediaEntry", $mediaEntry->toParams());
$this->client->queueServiceActionCall("media", "addFromFlavorAsset", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaMediaEntry");
return $resultObject;
}
function convert($entryId, $conversionProfileId = null, array $dynamicConversionAttributes = null)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "conversionProfileId", $conversionProfileId);
if ($dynamicConversionAttributes !== null)
foreach($dynamicConversionAttributes as $index => $obj)
{
$this->client->addParam($kparams, "dynamicConversionAttributes:$index", $obj->toParams());
}
$this->client->queueServiceActionCall("media", "convert", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "integer");
return $resultObject;
}
function get($entryId, $version = -1)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "version", $version);
$this->client->queueServiceActionCall("media", "get", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaMediaEntry");
return $resultObject;
}
function update($entryId, KalturaMediaEntry $mediaEntry)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "mediaEntry", $mediaEntry->toParams());
$this->client->queueServiceActionCall("media", "update", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaMediaEntry");
return $resultObject;
}
function updateContent($entryId, KalturaResource $resource, $conversionProfileId = null)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "resource", $resource->toParams());
$this->client->addParam($kparams, "conversionProfileId", $conversionProfileId);
$this->client->queueServiceActionCall("media", "updateContent", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaMediaEntry");
return $resultObject;
}
function delete($entryId)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->queueServiceActionCall("media", "delete", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
function approveReplace($entryId)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->queueServiceActionCall("media", "approveReplace", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaMediaEntry");
return $resultObject;
}
function cancelReplace($entryId)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->queueServiceActionCall("media", "cancelReplace", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaMediaEntry");
return $resultObject;
}
function listAction(KalturaMediaEntryFilter $filter = null, KalturaFilterPager $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("media", "list", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaMediaListResponse");
return $resultObject;
}
function count(KalturaMediaEntryFilter $filter = null)
{
$kparams = array();
if ($filter !== null)
$this->client->addParam($kparams, "filter", $filter->toParams());
$this->client->queueServiceActionCall("media", "count", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "integer");
return $resultObject;
}
function upload($fileData)
{
$kparams = array();
$kfiles = array();
$this->client->addParam($kfiles, "fileData", $fileData);
$this->client->queueServiceActionCall("media", "upload", $kparams, $kfiles);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "string");
return $resultObject;
}
function updateThumbnail($entryId, $timeOffset, $flavorParamsId = null)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "timeOffset", $timeOffset);
$this->client->addParam($kparams, "flavorParamsId", $flavorParamsId);
$this->client->queueServiceActionCall("media", "updateThumbnail", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaMediaEntry");
return $resultObject;
}
function updateThumbnailFromSourceEntry($entryId, $sourceEntryId, $timeOffset, $flavorParamsId = null)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "sourceEntryId", $sourceEntryId);
$this->client->addParam($kparams, "timeOffset", $timeOffset);
$this->client->addParam($kparams, "flavorParamsId", $flavorParamsId);
$this->client->queueServiceActionCall("media", "updateThumbnailFromSourceEntry", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaMediaEntry");
return $resultObject;
}
function updateThumbnailJpeg($entryId, $fileData)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$kfiles = array();
$this->client->addParam($kfiles, "fileData", $fileData);
$this->client->queueServiceActionCall("media", "updateThumbnailJpeg", $kparams, $kfiles);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaMediaEntry");
return $resultObject;
}
function updateThumbnailFromUrl($entryId, $url)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "url", $url);
$this->client->queueServiceActionCall("media", "updateThumbnailFromUrl", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaBaseEntry");
return $resultObject;
}
function requestConversion($entryId, $fileFormat)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "fileFormat", $fileFormat);
$this->client->queueServiceActionCall("media", "requestConversion", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "integer");
return $resultObject;
}
function flag(KalturaModerationFlag $moderationFlag)
{
$kparams = array();
$this->client->addParam($kparams, "moderationFlag", $moderationFlag->toParams());
$this->client->queueServiceActionCall("media", "flag", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
function reject($entryId)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->queueServiceActionCall("media", "reject", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
function approve($entryId)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->queueServiceActionCall("media", "approve", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
function listFlags($entryId, KalturaFilterPager $pager = null)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
if ($pager !== null)
$this->client->addParam($kparams, "pager", $pager->toParams());
$this->client->queueServiceActionCall("media", "listFlags", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaModerationFlagListResponse");
return $resultObject;
}
function anonymousRank($entryId, $rank)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "rank", $rank);
$this->client->queueServiceActionCall("media", "anonymousRank", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
}
class KalturaMixingService extends KalturaServiceBase
{
function __construct(KalturaClient $client = null)
{
parent::__construct($client);
}
function add(KalturaMixEntry $mixEntry)
{
$kparams = array();
$this->client->addParam($kparams, "mixEntry", $mixEntry->toParams());
$this->client->queueServiceActionCall("mixing", "add", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaMixEntry");
return $resultObject;
}
function get($entryId, $version = -1)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "version", $version);
$this->client->queueServiceActionCall("mixing", "get", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaMixEntry");
return $resultObject;
}
function update($entryId, KalturaMixEntry $mixEntry)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "mixEntry", $mixEntry->toParams());
$this->client->queueServiceActionCall("mixing", "update", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaMixEntry");
return $resultObject;
}
function delete($entryId)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->queueServiceActionCall("mixing", "delete", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
function listAction(KalturaMixEntryFilter $filter = null, KalturaFilterPager $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("mixing", "list", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaMixListResponse");
return $resultObject;
}
function count(KalturaMediaEntryFilter $filter = null)
{
$kparams = array();
if ($filter !== null)
$this->client->addParam($kparams, "filter", $filter->toParams());
$this->client->queueServiceActionCall("mixing", "count", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "integer");
return $resultObject;
}
function cloneAction($entryId)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->queueServiceActionCall("mixing", "clone", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaMixEntry");
return $resultObject;
}
function appendMediaEntry($mixEntryId, $mediaEntryId)
{
$kparams = array();
$this->client->addParam($kparams, "mixEntryId", $mixEntryId);
$this->client->addParam($kparams, "mediaEntryId", $mediaEntryId);
$this->client->queueServiceActionCall("mixing", "appendMediaEntry", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaMixEntry");
return $resultObject;
}
function requestFlattening($entryId, $fileFormat, $version = -1)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "fileFormat", $fileFormat);
$this->client->addParam($kparams, "version", $version);
$this->client->queueServiceActionCall("mixing", "requestFlattening", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "integer");
return $resultObject;
}
function getMixesByMediaId($mediaEntryId)
{
$kparams = array();
$this->client->addParam($kparams, "mediaEntryId", $mediaEntryId);
$this->client->queueServiceActionCall("mixing", "getMixesByMediaId", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "array");
return $resultObject;
}
function getReadyMediaEntries($mixId, $version = -1)
{
$kparams = array();
$this->client->addParam($kparams, "mixId", $mixId);
$this->client->addParam($kparams, "version", $version);
$this->client->queueServiceActionCall("mixing", "getReadyMediaEntries", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "array");
return $resultObject;
}
function anonymousRank($entryId, $rank)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "rank", $rank);
$this->client->queueServiceActionCall("mixing", "anonymousRank", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
}
class KalturaNotificationService extends KalturaServiceBase
{
function __construct(KalturaClient $client = null)
{
parent::__construct($client);
}
function getClientNotification($entryId, $type)
{
$kparams = array();
$this->client->addParam($kparams, "entryId", $entryId);
$this->client->addParam($kparams, "type", $type);
$this->client->queueServiceActionCall("notification", "getClientNotification", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaClientNotification");
return $resultObject;
}
}
class KalturaPartnerService extends KalturaServiceBase
{
function __construct(KalturaClient $client = null)
{
parent::__construct($client);
}
function register(KalturaPartner $partner, $cmsPassword = "")
{
$kparams = array();
$this->client->addParam($kparams, "partner", $partner->toParams());
$this->client->addParam($kparams, "cmsPassword", $cmsPassword);
$this->client->queueServiceActionCall("partner", "register", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaPartner");
return $resultObject;
}
function update(KalturaPartner $partner, $allowEmpty = false)
{
$kparams = array();
$this->client->addParam($kparams, "partner", $partner->toParams());
$this->client->addParam($kparams, "allowEmpty", $allowEmpty);
$this->client->queueServiceActionCall("partner", "update", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaPartner");
return $resultObject;
}
function getSecrets($partnerId, $adminEmail, $cmsPassword)
{
$kparams = array();
$this->client->addParam($kparams, "partnerId", $partnerId);
$this->client->addParam($kparams, "adminEmail", $adminEmail);
$this->client->addParam($kparams, "cmsPassword", $cmsPassword);
$this->client->queueServiceActionCall("partner", "getSecrets", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaPartner");
return $resultObject;
}
function getInfo()
{
$kparams = array();
$this->client->queueServiceActionCall("partner", "getInfo", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaPartner");
return $resultObject;
}
function getUsage($year = "", $month = 1, $resolution = "days")
{
$kparams = array();
$this->client->addParam($kparams, "year", $year);
$this->client->addParam($kparams, "month", $month);
$this->client->addParam($kparams, "resolution", $resolution);
$this->client->queueServiceActionCall("partner", "getUsage", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaPartnerUsage");
return $resultObject;
}
function listAction(KalturaPartnerFilter $filter = null, KalturaFilterPager $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("partner", "list", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaPartnerListResponse");
return $resultObject;
}
}
class KalturaPermissionItemService extends KalturaServiceBase
{
function __construct(KalturaClient $client = null)
{
parent::__construct($client);
}
function add(KalturaPermissionItem $permissionItem)
{
$kparams = array();
$this->client->addParam($kparams, "permissionItem", $permissionItem->toParams());
$this->client->queueServiceActionCall("permissionitem", "add", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaPermissionItem");
return $resultObject;
}
function get($permissionItemId)
{
$kparams = array();
$this->client->addParam($kparams, "permissionItemId", $permissionItemId);
$this->client->queueServiceActionCall("permissionitem", "get", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaPermissionItem");
return $resultObject;
}
function update($permissionItemId, KalturaPermissionItem $permissionItem)
{
$kparams = array();
$this->client->addParam($kparams, "permissionItemId", $permissionItemId);
$this->client->addParam($kparams, "permissionItem", $permissionItem->toParams());
$this->client->queueServiceActionCall("permissionitem", "update", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaPermissionItem");
return $resultObject;
}
function delete($permissionItemId)
{
$kparams = array();
$this->client->addParam($kparams, "permissionItemId", $permissionItemId);
$this->client->queueServiceActionCall("permissionitem", "delete", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaPermissionItem");
return $resultObject;
}
function listAction(KalturaPermissionItemFilter $filter = null, KalturaFilterPager $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("permissionitem", "list", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaPermissionItemListResponse");
return $resultObject;
}
}
class KalturaPermissionService extends KalturaServiceBase
{
function __construct(KalturaClient $client = null)
{
parent::__construct($client);
}
function add(KalturaPermission $permission)
{
$kparams = array();
$this->client->addParam($kparams, "permission", $permission->toParams());
$this->client->queueServiceActionCall("permission", "add", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaPermission");
return $resultObject;
}
function get($permissionName)
{
$kparams = array();
$this->client->addParam($kparams, "permissionName", $permissionName);
$this->client->queueServiceActionCall("permission", "get", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaPermission");
return $resultObject;
}
function update($permissionName, KalturaPermission $permission)
{
$kparams = array();
$this->client->addParam($kparams, "permissionName", $permissionName);
$this->client->addParam($kparams, "permission", $permission->toParams());
$this->client->queueServiceActionCall("permission", "update", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaPermission");
return $resultObject;
}
function delete($permissionName)
{
$kparams = array();
$this->client->addParam($kparams, "permissionName", $permissionName);
$this->client->queueServiceActionCall("permission", "delete", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaPermission");
return $resultObject;
}
function listAction(KalturaPermissionFilter $filter = null, KalturaFilterPager $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("permission", "list", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaPermissionListResponse");
return $resultObject;
}
function getCurrentPermissions()
{
$kparams = array();
$this->client->queueServiceActionCall("permission", "getCurrentPermissions", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "string");
return $resultObject;
}
}
class KalturaPlaylistService extends KalturaServiceBase
{
function __construct(KalturaClient $client = null)
{
parent::__construct($client);
}
function add(KalturaPlaylist $playlist, $updateStats = false)
{
$kparams = array();
$this->client->addParam($kparams, "playlist", $playlist->toParams());
$this->client->addParam($kparams, "updateStats", $updateStats);
$this->client->queueServiceActionCall("playlist", "add", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaPlaylist");
return $resultObject;
}
function get($id, $version = -1)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->addParam($kparams, "version", $version);
$this->client->queueServiceActionCall("playlist", "get", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaPlaylist");
return $resultObject;
}
function update($id, KalturaPlaylist $playlist, $updateStats = false)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->addParam($kparams, "playlist", $playlist->toParams());
$this->client->addParam($kparams, "updateStats", $updateStats);
$this->client->queueServiceActionCall("playlist", "update", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaPlaylist");
return $resultObject;
}
function delete($id)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->queueServiceActionCall("playlist", "delete", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "null");
return $resultObject;
}
function cloneAction($id, KalturaPlaylist $newPlaylist = null)
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
if ($newPlaylist !== null)
$this->client->addParam($kparams, "newPlaylist", $newPlaylist->toParams());
$this->client->queueServiceActionCall("playlist", "clone", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaPlaylist");
return $resultObject;
}
function listAction(KalturaPlaylistFilter $filter = null, KalturaFilterPager $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("playlist", "list", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "KalturaPlaylistListResponse");
return $resultObject;
}
function execute($id, $detailed = "")
{
$kparams = array();
$this->client->addParam($kparams, "id", $id);
$this->client->addParam($kparams, "detailed", $detailed);
$this->client->queueServiceActionCall("playlist", "execute", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "array");
return $resultObject;
}
function executeFromContent($playlistType, $playlistContent, $detailed = "")
{
$kparams = array();
$this->client->addParam($kparams, "playlistType", $playlistType);
$this->client->addParam($kparams, "playlistContent", $playlistContent);
$this->client->addParam($kparams, "detailed", $detailed);
$this->client->queueServiceActionCall("playlist", "executeFromContent", $kparams);
if ($this->client->isMultiRequest())
return $this->client->getMultiRequestResult();
$resultObject = $this->client->doQueue();
$this->client->throwExceptionIfError($resultObject);
$this->client->validateObjectType($resultObject, "array");
return $resultObject;
}
function executeFromFilters(array $filters, $totalResults, $detailed = "")
{
$kparams = array();
foreach($filters as $index => $obj)
{
$this->client->addParam($kparams, "filters:$index", $obj->toParams());
}
$this->client->addParam($kparams, "totalResults", $totalResults);
$this->client->addParam($kparams, "detailed", $detailed);
$this