View source
<?php
require_once dirname(__FILE__) . "/KalturaClientBase.php";
class KalturaAspectRatioType {
const KEEP_ORIG_RATIO = 1;
const KEEP_ORIG_DIMENSIONS = 2;
const ASPECT_4_3 = 3;
const ASPECT_16_9 = 4;
const KEEP_HEIGHT = 5;
}
class KalturaBatchJobStatus {
const PENDING = 0;
const QUEUED = 1;
const PROCESSING = 2;
const PROCESSED = 3;
const MOVEFILE = 4;
const FINISHED = 5;
const FAILED = 6;
const ABORTED = 7;
}
class KalturaBatchJobType {
const CONVERT = 0;
const IMPORT = 1;
const DELETE = 2;
const FLATTEN = 3;
const BULKUPLOAD = 4;
const DVDCREATOR = 5;
const DOWNLOAD = 6;
const OOCONVERT = 7;
const PRECONVERT = 10;
const POSTCONVERT = 11;
const PROJECT = 1000;
}
class KalturaDocumentType {
const DOCUMENT = 11;
const SWF = 12;
}
class KalturaEditorType {
const SIMPLE = 1;
const ADVANCED = 2;
}
class KalturaEntryStatus {
const ERROR_CONVERTING = -1;
const IMPORT = 0;
const PRECONVERT = 1;
const READY = 2;
const DELETED = 3;
const PENDING = 4;
const MODERATE = 5;
const BLOCKED = 6;
}
class KalturaEntryType {
const AUTOMATIC = -1;
const MEDIA_CLIP = 1;
const MIX = 2;
const PLAYLIST = 5;
const DATA = 6;
const DOCUMENT = 10;
}
class KalturaGender {
const UNKNOWN = 0;
const MALE = 1;
const FEMALE = 2;
}
class KalturaLicenseType {
const UNKNOWN = -1;
const NONE = 0;
const COPYRIGHTED = 1;
const PUBLIC_DOMAIN = 2;
const CREATIVECOMMONS_ATTRIBUTION = 3;
const CREATIVECOMMONS_ATTRIBUTION_SHARE_ALIKE = 4;
const CREATIVECOMMONS_ATTRIBUTION_NO_DERIVATIVES = 5;
const CREATIVECOMMONS_ATTRIBUTION_NON_COMMERCIAL = 6;
const CREATIVECOMMONS_ATTRIBUTION_NON_COMMERCIAL_SHARE_ALIKE = 7;
const CREATIVECOMMONS_ATTRIBUTION_NON_COMMERCIAL_NO_DERIVATIVES = 8;
const GFDL = 9;
const GPL = 10;
const AFFERO_GPL = 11;
const LGPL = 12;
const BSD = 13;
const APACHE = 14;
const MOZILLA = 15;
}
class KalturaMailJobStatus {
const PENDING = 1;
const SENT = 2;
const ERROR = 3;
const QUEUED = 4;
}
class KalturaMediaType {
const VIDEO = 1;
const IMAGE = 2;
const AUDIO = 5;
}
class KalturaModerationFlagStatus {
const PENDING = 1;
const MODERATED = 2;
}
class KalturaModerationFlagType {
const SEXUAL_CONTENT = 1;
const VIOLENT_REPULSIVE = 2;
const HARMFUL_DANGEROUS = 3;
const SPAM_COMMERCIALS = 4;
}
class KalturaModerationObjectType {
const ENTRY = 2;
const USER = 3;
}
class KalturaNotificationObjectType {
const ENTRY = 1;
const KSHOW = 2;
const USER = 3;
const BATCH_JOB = 4;
}
class KalturaNotificationStatus {
const PENDING = 1;
const SENT = 2;
const ERROR = 3;
const SHOULD_RESEND = 4;
const ERROR_RESENDING = 5;
const SENT_SYNCH = 6;
const QUEUED = 7;
}
class KalturaNotificationType {
const ENTRY_ADD = 1;
const ENTR_UPDATE_PERMISSIONS = 2;
const ENTRY_DELETE = 3;
const ENTRY_BLOCK = 4;
const ENTRY_UPDATE = 5;
const ENTRY_UPDATE_THUMBNAIL = 6;
const ENTRY_UPDATE_MODERATION = 7;
const USER_ADD = 21;
const USER_BANNED = 26;
}
class KalturaPartnerType {
const WIKI = 100;
const WORDPRESS = 101;
const DRUPAL = 102;
const DEKIWIKI = 103;
const COMMUNITY_EDITION = 105;
}
class KalturaPlaylistType {
const DYNAMIC = 10;
const STATIC_LIST = 3;
const EXTERNAL = 101;
}
class KalturaReportType {
const TOP_CONTENT = 1;
const CONTENT_DROPOFF = 2;
const CONTENT_INTERACTIONS = 3;
const MAP_OVERLAY = 4;
const TOP_CONTRIBUTORS = 5;
const TOP_SYNDICATION = 6;
const CONTENT_CONTRIBUTIONS = 7;
}
class KalturaSearchProviderType {
const FLICKR = 3;
const YOUTUBE = 4;
const MYSPACE = 7;
const PHOTOBUCKET = 8;
const JAMENDO = 9;
const CCMIXTER = 10;
const NYPL = 11;
const CURRENT = 12;
const MEDIA_COMMONS = 13;
const KALTURA = 20;
const KALTURA_USER_CLIPS = 21;
const ARCHIVE_ORG = 22;
const KALTURA_PARTNER = 23;
const METACAFE = 24;
const SEARCH_PROXY = 28;
}
class KalturaSessionType {
const USER = 0;
const ADMIN = 2;
}
class KalturaSourceType {
const FILE = 1;
const WEBCAM = 2;
const URL = 5;
const SEARCH_PROVIDER = 6;
}
class KalturaStatsEventType {
const WIDGET_LOADED = 1;
const MEDIA_LOADED = 2;
const PLAY = 3;
const PLAY_REACHED_25 = 4;
const PLAY_REACHED_50 = 5;
const PLAY_REACHED_75 = 6;
const PLAY_REACHED_100 = 7;
const OPEN_EDIT = 8;
const OPEN_VIRAL = 9;
const OPEN_DOWNLOAD = 10;
const OPEN_REPORT = 11;
const BUFFER_START = 12;
const BUFFER_END = 13;
const OPEN_FULL_SCREEN = 14;
const CLOSE_FULL_SCREEN = 15;
const REPLAY = 16;
const SEEK = 17;
const OPEN_UPLOAD = 18;
const SAVE_PUBLISH = 19;
const CLOSE_EDITOR = 20;
const PRE_BUMPER_PLAYED = 21;
const POST_BUMPER_PLAYED = 22;
const BUMPER_CLICKED = 23;
const FUTURE_USE_1 = 24;
const FUTURE_USE_2 = 25;
const FUTURE_USE_3 = 26;
}
class KalturaUiConfCreationMode {
const WIZARD = 2;
const ADVANCED = 3;
}
class KalturaUiConfObjType {
const PLAYER = 1;
const CONTRIBUTION_WIZARD = 2;
const SIMPLE_EDITOR = 3;
const ADVANCED_EDITOR = 4;
const PLAYLIST = 5;
const APP_STUDIO = 6;
}
class KalturaUserStatus {
const BLOCKED = 0;
const ACTIVE = 1;
const DELETED = 2;
}
class KalturaWidgetSecurityType {
const NONE = 1;
const TIMEHASH = 2;
}
class KalturaAdminUser extends KalturaObjectBase {
public $password = null;
public $email = null;
public $screenName = null;
}
class KalturaBaseEntry extends KalturaObjectBase {
public $id = null;
public $name = null;
public $description = null;
public $partnerId = null;
public $userId = null;
public $tags = null;
public $adminTags = null;
public $status = null;
public $type = null;
public $createdAt = null;
public $rank = null;
public $totalRank = null;
public $votes = null;
public $groupId = null;
public $partnerData = null;
public $downloadUrl = null;
public $searchText = null;
public $licenseType = null;
public $version = null;
public $thumbnailUrl = null;
}
class KalturaFilter extends KalturaObjectBase {
public $orderBy = null;
}
class KalturaBaseEntryFilter extends KalturaFilter {
public $idEqual = null;
public $idIn = null;
public $nameLike = null;
public $nameMultiLikeOr = null;
public $nameMultiLikeAnd = null;
public $nameEqual = null;
public $partnerIdEqual = null;
public $partnerIdIn = null;
public $userIdEqual = null;
public $tagsLike = null;
public $tagsMultiLikeOr = null;
public $tagsMultiLikeAnd = null;
public $adminTagsLike = null;
public $adminTagsMultiLikeOr = null;
public $adminTagsMultiLikeAnd = null;
public $statusEqual = null;
public $statusIn = null;
public $typeEqual = null;
public $typeIn = null;
public $createdAtGreaterThanOrEqual = null;
public $createdAtLessThanOrEqual = null;
public $groupIdEqual = null;
public $searchTextMatchAnd = null;
public $searchTextMatchOr = null;
public $tagsNameMultiLikeOr = null;
public $tagsAdminTagsMultiLikeOr = null;
public $tagsAdminTagsNameMultiLikeOr = null;
public $tagsNameMultiLikeAnd = null;
public $tagsAdminTagsMultiLikeAnd = null;
public $tagsAdminTagsNameMultiLikeAnd = null;
}
class KalturaBaseEntryListResponse extends KalturaObjectBase {
public $objects;
public $totalCount = null;
}
class KalturaBaseEntryOrderBy {
const NAME_ASC = "+name";
const NAME_DESC = "-name";
const CREATED_AT_ASC = "+createdAt";
const CREATED_AT_DESC = "-createdAt";
const RANK_ASC = "+rank";
const RANK_DESC = "-rank";
}
class KalturaBaseJob extends KalturaObjectBase {
public $id = null;
public $partnerId = null;
public $createdAt = null;
public $updatedAt = null;
public $processorName = null;
public $processorLocation = null;
public $processorExpiration = null;
}
class KalturaBatchGetExclusiveNotificationJobsResponse extends KalturaObjectBase {
public $notifications;
public $partners;
}
class KalturaBatchJob extends KalturaBaseJob {
public $entryId = null;
public $jobType = null;
public $data = null;
public $status = null;
public $abort = null;
public $checkAgainTimeout = null;
public $progress = null;
public $message = null;
public $description = null;
public $updatesCount = null;
public $parentJobId = null;
}
class KalturaBulkUpload extends KalturaObjectBase {
public $id = null;
public $uploadedBy = null;
public $uploadedOn = null;
public $numOfEntries = null;
public $status = null;
public $logFileUrl = null;
public $csvFileUrl = null;
}
class KalturaBulkUploadListResponse extends KalturaObjectBase {
public $objects;
public $totalCount = null;
}
class KalturaCEError extends KalturaObjectBase {
public $id = null;
public $partnerId = null;
public $browser = null;
public $serverIp = null;
public $serverOs = null;
public $phpVersion = null;
public $ceAdminEmail = null;
public $type = null;
public $description = null;
public $data = null;
}
class KalturaClientNotification extends KalturaObjectBase {
public $url = null;
public $data = null;
}
class KalturaCommercialUseType {
const COMMERCIAL_USE = "commercial_use";
const NON_COMMERCIAL_USE = "non-commercial_use";
}
class KalturaConversionProfile extends KalturaObjectBase {
public $id = null;
public $partnerId = null;
public $name = null;
public $profileType = null;
public $commercialTranscoder = null;
public $width = null;
public $height = null;
public $aspectRatioType = null;
public $bypassFlv = null;
public $createdAt = null;
public $updatedAt = null;
public $profileTypeSuffix = null;
}
class KalturaDataEntry extends KalturaBaseEntry {
public $dataContent = null;
}
class KalturaDataEntryFilter extends KalturaBaseEntryFilter {
}
class KalturaDataEntryOrderBy {
const NAME_ASC = "+name";
const NAME_DESC = "-name";
const CREATED_AT_ASC = "+createdAt";
const CREATED_AT_DESC = "-createdAt";
const RANK_ASC = "+rank";
const RANK_DESC = "-rank";
}
class KalturaDataListResponse extends KalturaObjectBase {
public $objects;
public $totalCount = null;
}
class KalturaDocumentEntry extends KalturaBaseEntry {
public $documentType = null;
}
class KalturaDocumentEntryFilter extends KalturaBaseEntryFilter {
public $documentTypeEqual = null;
public $documentTypeIn = null;
}
class KalturaDocumentEntryOrderBy {
const NAME_ASC = "+name";
const NAME_DESC = "-name";
const CREATED_AT_ASC = "+createdAt";
const CREATED_AT_DESC = "-createdAt";
const RANK_ASC = "+rank";
const RANK_DESC = "-rank";
}
class KalturaDocumentListResponse extends KalturaObjectBase {
public $objects;
public $totalCount = null;
}
class KalturaFilterPager extends KalturaObjectBase {
public $pageSize = null;
public $pageIndex = null;
}
class KalturaMailJob extends KalturaBaseJob {
public $mailType = null;
public $mailPriority = null;
public $status = null;
public $recipientName = null;
public $recipientEmail = null;
public $recipientId = null;
public $fromName = null;
public $fromEmail = null;
public $bodyParams = null;
public $subjectParams = null;
public $templatePath = null;
public $culture = null;
public $campaignId = null;
public $minSendDate = null;
}
class KalturaPlayableEntry extends KalturaBaseEntry {
public $plays = null;
public $views = null;
public $width = null;
public $height = null;
public $duration = null;
}
class KalturaMediaEntry extends KalturaPlayableEntry {
public $mediaType = null;
public $conversionQuality = null;
public $sourceType = null;
public $searchProviderType = null;
public $searchProviderId = null;
public $creditUserName = null;
public $creditUrl = null;
public $mediaDate = null;
public $dataUrl = null;
}
class KalturaPlayableEntryFilter extends KalturaBaseEntryFilter {
}
class KalturaMediaEntryFilter extends KalturaPlayableEntryFilter {
public $mediaTypeEqual = null;
public $mediaTypeIn = null;
public $mediaDateGreaterThanOrEqual = null;
public $mediaDateLessThanOrEqual = null;
}
class KalturaPlayableEntryOrderBy {
const PLAYS_ASC = "+plays";
const PLAYS_DESC = "-plays";
const VIEWS_ASC = "+views";
const VIEWS_DESC = "-views";
const NAME_ASC = "+name";
const NAME_DESC = "-name";
const CREATED_AT_ASC = "+createdAt";
const CREATED_AT_DESC = "-createdAt";
const RANK_ASC = "+rank";
const RANK_DESC = "-rank";
}
class KalturaMediaEntryOrderBy {
const PLAYS_ASC = "+plays";
const PLAYS_DESC = "-plays";
const VIEWS_ASC = "+views";
const VIEWS_DESC = "-views";
const NAME_ASC = "+name";
const NAME_DESC = "-name";
const CREATED_AT_ASC = "+createdAt";
const CREATED_AT_DESC = "-createdAt";
const RANK_ASC = "+rank";
const RANK_DESC = "-rank";
}
class KalturaMediaListResponse extends KalturaObjectBase {
public $objects;
public $totalCount = null;
}
class KalturaMixEntry extends KalturaPlayableEntry {
public $hasRealThumbnail = null;
public $editorType = null;
public $dataContent = null;
}
class KalturaMixEntryFilter extends KalturaPlayableEntryFilter {
}
class KalturaMixEntryOrderBy {
const PLAYS_ASC = "+plays";
const PLAYS_DESC = "-plays";
const VIEWS_ASC = "+views";
const VIEWS_DESC = "-views";
const NAME_ASC = "+name";
const NAME_DESC = "-name";
const CREATED_AT_ASC = "+createdAt";
const CREATED_AT_DESC = "-createdAt";
const RANK_ASC = "+rank";
const RANK_DESC = "-rank";
}
class KalturaMixListResponse extends KalturaObjectBase {
public $objects;
public $totalCount = null;
}
class KalturaModerationFlag extends KalturaObjectBase {
public $id = null;
public $partnerId = null;
public $userId = null;
public $objectType = null;
public $flaggedEntryId = null;
public $flaggedUserId = null;
public $status = null;
public $comments = null;
public $flagType = null;
public $createdAt = null;
public $updatedAt = null;
}
class KalturaModerationFlagListResponse extends KalturaObjectBase {
public $objects;
public $totalCount = null;
}
class KalturaNotification extends KalturaBaseJob {
public $puserId = null;
public $type = null;
public $objectId = null;
public $status = null;
public $notificationData = null;
public $numberOfAttempts = null;
public $notificationResult = null;
public $objectType = null;
}
class KalturaPartner extends KalturaObjectBase {
public $id = null;
public $name = null;
public $website = null;
public $notificationUrl = null;
public $appearInSearch = null;
public $createdAt = null;
public $adminName = null;
public $adminEmail = null;
public $description = null;
public $commercialUse = null;
public $landingPage = null;
public $userLandingPage = null;
public $contentCategories = null;
public $type = null;
public $phone = null;
public $describeYourself = null;
public $adultContent = null;
public $defConversionProfileType = null;
public $notify = null;
public $status = null;
public $allowQuickEdit = null;
public $mergeEntryLists = null;
public $notificationsConfig = null;
public $maxUploadSize = null;
public $partnerPackage = null;
public $secret = null;
public $adminSecret = null;
public $cmsPassword = null;
}
class KalturaPartnerUsage extends KalturaObjectBase {
public $hostingGB = null;
public $Percent = null;
public $packageBW = null;
public $usageGB = null;
public $reachedLimitDate = null;
public $usageGraph = null;
}
class KalturaPlaylist extends KalturaBaseEntry {
public $playlistContent = null;
public $playlistType = null;
public $plays = null;
public $views = null;
public $duration = null;
}
class KalturaPlaylistFilter extends KalturaBaseEntryFilter {
}
class KalturaPlaylistListResponse extends KalturaObjectBase {
public $objects;
public $totalCount = null;
}
class KalturaPlaylistOrderBy {
const NAME_ASC = "+name";
const NAME_DESC = "-name";
const CREATED_AT_ASC = "+createdAt";
const CREATED_AT_DESC = "-createdAt";
const RANK_ASC = "+rank";
const RANK_DESC = "-rank";
}
class KalturaReportGraph extends KalturaObjectBase {
public $id = null;
public $data = null;
}
class KalturaReportInputFilter extends KalturaObjectBase {
public $fromDate = null;
public $toDate = null;
public $keywords = null;
public $searchInTags = null;
public $searchInAdminTags = null;
}
class KalturaReportTable extends KalturaObjectBase {
public $header = null;
public $data = null;
public $totalCount = null;
}
class KalturaReportTotal extends KalturaObjectBase {
public $header = null;
public $data = null;
}
class KalturaSearch extends KalturaObjectBase {
public $keyWords = null;
public $searchSource = null;
public $mediaType = null;
public $extraData = null;
public $authData = null;
}
class KalturaSearchAuthData extends KalturaObjectBase {
public $authData = null;
public $loginUrl = null;
public $message = null;
}
class KalturaSearchResult extends KalturaSearch {
public $id = null;
public $title = null;
public $thumbUrl = null;
public $description = null;
public $tags = null;
public $url = null;
public $sourceLink = null;
public $credit = null;
public $licenseType = null;
public $flashPlaybackType = null;
}
class KalturaSearchResultResponse extends KalturaObjectBase {
public $objects;
public $needMediaInfo = null;
}
class KalturaStartWidgetSessionResponse extends KalturaObjectBase {
public $partnerId = null;
public $ks = null;
public $userId = null;
}
class KalturaStatsEvent extends KalturaObjectBase {
public $clientVer = null;
public $eventType = null;
public $eventTimestamp = null;
public $sessionId = null;
public $partnerId = null;
public $entryId = null;
public $uniqueViewer = null;
public $widgetId = null;
public $uiconfId = null;
public $userId = null;
public $currentPoint = null;
public $duration = null;
public $userIp = null;
public $processDuration = null;
public $controlId = null;
public $seek = null;
public $newPoint = null;
public $referrer = null;
public $isFirstInSession = null;
}
class KalturaUiConf extends KalturaObjectBase {
public $id = null;
public $name = null;
public $description = null;
public $partnerId = null;
public $objType = null;
public $objTypeAsString = null;
public $width = null;
public $height = null;
public $htmlParams = null;
public $swfUrl = null;
public $confFilePath = null;
public $confFile = null;
public $confFileFeatures = null;
public $confVars = null;
public $useCdn = null;
public $tags = null;
public $swfUrlVersion = null;
public $createdAt = null;
public $updatedAt = null;
public $creationMode = null;
}
class KalturaUiConfFilter extends KalturaFilter {
public $idEqual = null;
public $idIn = null;
public $nameLike = null;
public $tagsMultiLikeOr = null;
public $tagsMultiLikeAnd = null;
public $createdAtGreaterThanOrEqual = null;
public $createdAtLessThanOrEqual = null;
public $updatedAtGreaterThanOrEqual = null;
public $updatedAtLessThanOrEqual = null;
}
class KalturaUiConfListResponse extends KalturaObjectBase {
public $objects;
public $totalCount = null;
}
class KalturaUiConfOrderBy {
const CREATED_AT_ASC = "+createdAt";
const CREATED_AT_DESC = "-createdAt";
}
class KalturaUser extends KalturaObjectBase {
public $id = null;
public $partnerId = null;
public $screenName = null;
public $fullName = null;
public $email = null;
public $dateOfBirth = null;
public $country = null;
public $state = null;
public $city = null;
public $zip = null;
public $thumbnailUrl = null;
public $description = null;
public $tags = null;
public $adminTags = null;
public $gender = null;
public $status = null;
public $createdAt = null;
public $updatedAt = null;
public $partnerData = null;
public $indexedPartnerDataInt = null;
public $indexedPartnerDataString = null;
public $storageSize = null;
}
class KalturaUserFilter extends KalturaFilter {
public $idEqual = null;
public $idIn = null;
public $partnerIdEqual = null;
public $screenNameLike = null;
public $screenNameStartsWith = null;
public $emailLike = null;
public $emailStartsWith = null;
public $tagsMultiLikeOr = null;
public $tagsMultiLikeAnd = null;
public $createdAtGreaterThanOrEqual = null;
public $createdAtLessThanOrEqual = null;
}
class KalturaUserListResponse extends KalturaObjectBase {
public $objects;
public $totalCount = null;
}
class KalturaUserOrderBy {
const CREATED_AT_ASC = "+createdAt";
const CREATED_AT_DESC = "-createdAt";
}
class KalturaWidget extends KalturaObjectBase {
public $id = null;
public $sourceWidgetId = null;
public $rootWidgetId = null;
public $partnerId = null;
public $entryId = null;
public $uiConfId = null;
public $securityType = null;
public $securityPolicy = null;
public $createdAt = null;
public $updatedAt = null;
public $partnerData = null;
public $widgetHTML = null;
}
class KalturaWidgetFilter extends KalturaFilter {
public $idEqual = null;
public $idIn = null;
public $sourceWidgetIdEqual = null;
public $rootWidgetIdEqual = null;
public $partnerIdEqual = null;
public $entryIdEqual = null;
public $uiConfIdEqual = null;
public $createdAtGreaterThanOrEqual = null;
public $createdAtLessThanOrEqual = null;
public $updatedAtGreaterThanOrEqual = null;
public $updatedAtLessThanOrEqual = null;
public $partnerDataLike = null;
}
class KalturaWidgetListResponse extends KalturaObjectBase {
public $objects;
public $totalCount = null;
}
class KalturaWidgetOrderBy {
const CREATED_AT_ASC = "+createdAt";
const CREATED_AT_DESC = "-createdAt";
}
class KalturaMediaService extends KalturaServiceBase {
function __construct(KalturaClient $client) {
parent::__construct($client);
}
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 null;
}
$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 null;
}
$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 null;
}
$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 null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaMediaEntry");
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 null;
}
$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 null;
}
$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 null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "null");
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 null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaMediaListResponse");
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 null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "string");
return $resultObject;
}
function updateThumbnail($entryId, $timeOffset) {
$kparams = array();
$this->client
->addParam($kparams, "entryId", $entryId);
$this->client
->addParam($kparams, "timeOffset", $timeOffset);
$this->client
->queueServiceActionCall("media", "updateThumbnail", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$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 null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaMediaEntry");
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 null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "int");
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 null;
}
$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 null;
}
$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 null;
}
$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 null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaModerationFlagListResponse");
return $resultObject;
}
}
class KalturaMixingService extends KalturaServiceBase {
function __construct(KalturaClient $client) {
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 null;
}
$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 null;
}
$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 null;
}
$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 null;
}
$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 null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaMixListResponse");
return $resultObject;
}
function cloneAction($entryId) {
$kparams = array();
$this->client
->addParam($kparams, "entryId", $entryId);
$this->client
->queueServiceActionCall("mixing", "clone", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$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 null;
}
$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 null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "int");
return $resultObject;
}
function getMixesByMediaId($mediaEntryId) {
$kparams = array();
$this->client
->addParam($kparams, "mediaEntryId", $mediaEntryId);
$this->client
->queueServiceActionCall("mixing", "getMixesByMediaId", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$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 null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "array");
return $resultObject;
}
}
class KalturaDocumentService extends KalturaServiceBase {
function __construct(KalturaClient $client) {
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 null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaDocumentEntry");
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 null;
}
$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 null;
}
$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 null;
}
$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 null;
}
$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 null;
}
$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 null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "string");
return $resultObject;
}
}
class KalturaDataService extends KalturaServiceBase {
function __construct(KalturaClient $client) {
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 null;
}
$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 null;
}
$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 null;
}
$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 null;
}
$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 null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaDataListResponse");
return $resultObject;
}
}
class KalturaBaseEntryService extends KalturaServiceBase {
function __construct(KalturaClient $client) {
parent::__construct($client);
}
function addFromUploadedFile(KalturaBaseEntry $entry, $uploadTokenId, $type = -1) {
$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 null;
}
$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 null;
}
$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 null;
}
$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 null;
}
$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 null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaBaseEntryListResponse");
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 null;
}
$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 null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaMediaEntry");
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 null;
}
$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 null;
}
$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 null;
}
$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 null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaModerationFlagListResponse");
return $resultObject;
}
}
class KalturaSessionService extends KalturaServiceBase {
function __construct(KalturaClient $client) {
parent::__construct($client);
}
function start($secret, $userId = "", $type = 0, $partnerId = -1, $expiry = 86400, $privileges = null) {
$kparams = array();
$this->client
->addParam($kparams, "secret", $secret);
$this->client
->addParam($kparams, "userId", $userId);
$this->client
->addParam($kparams, "type", $type);
$this->client
->addParam($kparams, "partnerId", $partnerId);
$this->client
->addParam($kparams, "expiry", $expiry);
$this->client
->addParam($kparams, "privileges", $privileges);
$this->client
->queueServiceActionCall("session", "start", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "string");
return $resultObject;
}
function startWidgetSession($widgetId, $expiry = 86400) {
$kparams = array();
$this->client
->addParam($kparams, "widgetId", $widgetId);
$this->client
->addParam($kparams, "expiry", $expiry);
$this->client
->queueServiceActionCall("session", "startWidgetSession", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaStartWidgetSessionResponse");
return $resultObject;
}
}
class KalturaUiConfService extends KalturaServiceBase {
function __construct(KalturaClient $client) {
parent::__construct($client);
}
function add(KalturaUiConf $uiConf) {
$kparams = array();
$this->client
->addParam($kparams, "uiConf", $uiConf
->toParams());
$this->client
->queueServiceActionCall("uiconf", "add", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaUiConf");
return $resultObject;
}
function update($id, KalturaUiConf $uiConf) {
$kparams = array();
$this->client
->addParam($kparams, "id", $id);
$this->client
->addParam($kparams, "uiConf", $uiConf
->toParams());
$this->client
->queueServiceActionCall("uiconf", "update", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaUiConf");
return $resultObject;
}
function get($id) {
$kparams = array();
$this->client
->addParam($kparams, "id", $id);
$this->client
->queueServiceActionCall("uiconf", "get", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaUiConf");
return $resultObject;
}
function delete($id) {
$kparams = array();
$this->client
->addParam($kparams, "id", $id);
$this->client
->queueServiceActionCall("uiconf", "delete", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "null");
return $resultObject;
}
function cloneAction($id) {
$kparams = array();
$this->client
->addParam($kparams, "id", $id);
$this->client
->queueServiceActionCall("uiconf", "clone", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaUiConf");
return $resultObject;
}
function listAction(KalturaUiConfFilter $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("uiconf", "list", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaUiConfListResponse");
return $resultObject;
}
}
class KalturaPlaylistService extends KalturaServiceBase {
function __construct(KalturaClient $client) {
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 null;
}
$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 null;
}
$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 null;
}
$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 null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "null");
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 null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaPlaylistListResponse");
return $resultObject;
}
function execute($id, $detailed = false) {
$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 null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "array");
return $resultObject;
}
function executeFromContent($playlistType, $playlistContent, $detailed = false) {
$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 null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "array");
return $resultObject;
}
function getStatsFromContent($playlistType, $playlistContent) {
$kparams = array();
$this->client
->addParam($kparams, "playlistType", $playlistType);
$this->client
->addParam($kparams, "playlistContent", $playlistContent);
$this->client
->queueServiceActionCall("playlist", "getStatsFromContent", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaPlaylist");
return $resultObject;
}
}
class KalturaUserService extends KalturaServiceBase {
function __construct(KalturaClient $client) {
parent::__construct($client);
}
function add(KalturaUser $user) {
$kparams = array();
$this->client
->addParam($kparams, "user", $user
->toParams());
$this->client
->queueServiceActionCall("user", "add", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaUser");
return $resultObject;
}
function update($userId, KalturaUser $user) {
$kparams = array();
$this->client
->addParam($kparams, "userId", $userId);
$this->client
->addParam($kparams, "user", $user
->toParams());
$this->client
->queueServiceActionCall("user", "update", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaUser");
return $resultObject;
}
function get($userId) {
$kparams = array();
$this->client
->addParam($kparams, "userId", $userId);
$this->client
->queueServiceActionCall("user", "get", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaUser");
return $resultObject;
}
function delete($userId) {
$kparams = array();
$this->client
->addParam($kparams, "userId", $userId);
$this->client
->queueServiceActionCall("user", "delete", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaUser");
return $resultObject;
}
function listAction(KalturaUserFilter $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("user", "list", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaUserListResponse");
return $resultObject;
}
}
class KalturaWidgetService extends KalturaServiceBase {
function __construct(KalturaClient $client) {
parent::__construct($client);
}
function add(KalturaWidget $widget) {
$kparams = array();
$this->client
->addParam($kparams, "widget", $widget
->toParams());
$this->client
->queueServiceActionCall("widget", "add", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaWidget");
return $resultObject;
}
function update($id, KalturaWidget $widget) {
$kparams = array();
$this->client
->addParam($kparams, "id", $id);
$this->client
->addParam($kparams, "widget", $widget
->toParams());
$this->client
->queueServiceActionCall("widget", "update", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaWidget");
return $resultObject;
}
function get($id) {
$kparams = array();
$this->client
->addParam($kparams, "id", $id);
$this->client
->queueServiceActionCall("widget", "get", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaWidget");
return $resultObject;
}
function cloneAction(KalturaWidget $widget) {
$kparams = array();
$this->client
->addParam($kparams, "widget", $widget
->toParams());
$this->client
->queueServiceActionCall("widget", "clone", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaWidget");
return $resultObject;
}
function listAction(KalturaWidgetFilter $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("widget", "list", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaWidgetListResponse");
return $resultObject;
}
}
class KalturaSearchService extends KalturaServiceBase {
function __construct(KalturaClient $client) {
parent::__construct($client);
}
function search(KalturaSearch $search, KalturaFilterPager $pager = null) {
$kparams = array();
$this->client
->addParam($kparams, "search", $search
->toParams());
if ($pager !== null) {
$this->client
->addParam($kparams, "pager", $pager
->toParams());
}
$this->client
->queueServiceActionCall("search", "search", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaSearchResultResponse");
return $resultObject;
}
function getMediaInfo(KalturaSearchResult $searchResult) {
$kparams = array();
$this->client
->addParam($kparams, "searchResult", $searchResult
->toParams());
$this->client
->queueServiceActionCall("search", "getMediaInfo", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaSearchResult");
return $resultObject;
}
function searchUrl($mediaType, $url) {
$kparams = array();
$this->client
->addParam($kparams, "mediaType", $mediaType);
$this->client
->addParam($kparams, "url", $url);
$this->client
->queueServiceActionCall("search", "searchUrl", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaSearchResult");
return $resultObject;
}
function externalLogin($searchSource, $userName, $password) {
$kparams = array();
$this->client
->addParam($kparams, "searchSource", $searchSource);
$this->client
->addParam($kparams, "userName", $userName);
$this->client
->addParam($kparams, "password", $password);
$this->client
->queueServiceActionCall("search", "externalLogin", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaSearchAuthData");
return $resultObject;
}
}
class KalturaPartnerService extends KalturaServiceBase {
function __construct(KalturaClient $client) {
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 null;
}
$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 null;
}
$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 null;
}
$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 null;
}
$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 null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaPartnerUsage");
return $resultObject;
}
}
class KalturaAdminUserService extends KalturaServiceBase {
function __construct(KalturaClient $client) {
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 null;
}
$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 null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "null");
return $resultObject;
}
function login($email, $password) {
$kparams = array();
$this->client
->addParam($kparams, "email", $email);
$this->client
->addParam($kparams, "password", $password);
$this->client
->queueServiceActionCall("adminuser", "login", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "string");
return $resultObject;
}
}
class KalturaSystemService extends KalturaServiceBase {
function __construct(KalturaClient $client) {
parent::__construct($client);
}
function ping() {
$kparams = array();
$this->client
->queueServiceActionCall("system", "ping", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "boolean");
return $resultObject;
}
}
class KalturaBulkUploadService extends KalturaServiceBase {
function __construct(KalturaClient $client) {
parent::__construct($client);
}
function add($conversionProfileId, $csvFileData) {
$kparams = array();
$this->client
->addParam($kparams, "conversionProfileId", $conversionProfileId);
$kfiles = array();
$this->client
->addParam($kfiles, "csvFileData", $csvFileData);
$this->client
->queueServiceActionCall("bulkupload", "add", $kparams, $kfiles);
if ($this->client
->isMultiRequest()) {
return null;
}
$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 null;
}
$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 null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaBulkUploadListResponse");
return $resultObject;
}
}
class KalturaNotificationService extends KalturaServiceBase {
function __construct(KalturaClient $client) {
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 null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaClientNotification");
return $resultObject;
}
}
class KalturaBatchService extends KalturaServiceBase {
function __construct(KalturaClient $client) {
parent::__construct($client);
}
function addImportJob(KalturaBatchJob $importJob) {
$kparams = array();
$this->client
->addParam($kparams, "importJob", $importJob
->toParams());
$this->client
->queueServiceActionCall("batch", "addImportJob", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaBatchJob");
return $resultObject;
}
function getExclusiveImportJobs($processorLocation, $pocessorName, $maxExecutionTime, $numberOfJobs, $partnerGroups) {
$kparams = array();
$this->client
->addParam($kparams, "processorLocation", $processorLocation);
$this->client
->addParam($kparams, "pocessorName", $pocessorName);
$this->client
->addParam($kparams, "maxExecutionTime", $maxExecutionTime);
$this->client
->addParam($kparams, "numberOfJobs", $numberOfJobs);
$this->client
->addParam($kparams, "partnerGroups", $partnerGroups);
$this->client
->queueServiceActionCall("batch", "getExclusiveImportJobs", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "array");
return $resultObject;
}
function updateExclusiveImportJob($id, $processorLocation, $pocessorName, KalturaBatchJob $importJob, $entryStatus = null) {
$kparams = array();
$this->client
->addParam($kparams, "id", $id);
$this->client
->addParam($kparams, "processorLocation", $processorLocation);
$this->client
->addParam($kparams, "pocessorName", $pocessorName);
$this->client
->addParam($kparams, "importJob", $importJob
->toParams());
$this->client
->addParam($kparams, "entryStatus", $entryStatus);
$this->client
->queueServiceActionCall("batch", "updateExclusiveImportJob", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaBatchJob");
return $resultObject;
}
function freeExclusiveImportJob($id, $processorLocation, $pocessorName) {
$kparams = array();
$this->client
->addParam($kparams, "id", $id);
$this->client
->addParam($kparams, "processorLocation", $processorLocation);
$this->client
->addParam($kparams, "pocessorName", $pocessorName);
$this->client
->queueServiceActionCall("batch", "freeExclusiveImportJob", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaBatchJob");
return $resultObject;
}
function addPreConvertJob(KalturaBatchJob $preConvertJob) {
$kparams = array();
$this->client
->addParam($kparams, "preConvertJob", $preConvertJob
->toParams());
$this->client
->queueServiceActionCall("batch", "addPreConvertJob", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaBatchJob");
return $resultObject;
}
function getExclusivePreConvertJobs($processorLocation, $pocessorName, $maxExecutionTime, $numberOfJobs, $partnerGroups) {
$kparams = array();
$this->client
->addParam($kparams, "processorLocation", $processorLocation);
$this->client
->addParam($kparams, "pocessorName", $pocessorName);
$this->client
->addParam($kparams, "maxExecutionTime", $maxExecutionTime);
$this->client
->addParam($kparams, "numberOfJobs", $numberOfJobs);
$this->client
->addParam($kparams, "partnerGroups", $partnerGroups);
$this->client
->queueServiceActionCall("batch", "getExclusivePreConvertJobs", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "array");
return $resultObject;
}
function updateExclusivePreConvertJob($id, $processorLocation, $pocessorName, KalturaBatchJob $preConvertJob, $entryStatus = null) {
$kparams = array();
$this->client
->addParam($kparams, "id", $id);
$this->client
->addParam($kparams, "processorLocation", $processorLocation);
$this->client
->addParam($kparams, "pocessorName", $pocessorName);
$this->client
->addParam($kparams, "preConvertJob", $preConvertJob
->toParams());
$this->client
->addParam($kparams, "entryStatus", $entryStatus);
$this->client
->queueServiceActionCall("batch", "updateExclusivePreConvertJob", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaBatchJob");
return $resultObject;
}
function freeExclusivePreConvertJob($id, $processorLocation, $pocessorName) {
$kparams = array();
$this->client
->addParam($kparams, "id", $id);
$this->client
->addParam($kparams, "processorLocation", $processorLocation);
$this->client
->addParam($kparams, "pocessorName", $pocessorName);
$this->client
->queueServiceActionCall("batch", "freeExclusivePreConvertJob", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaBatchJob");
return $resultObject;
}
function createNotification(KalturaNotification $notificationJob) {
$kparams = array();
$this->client
->addParam($kparams, "notificationJob", $notificationJob
->toParams());
$this->client
->queueServiceActionCall("batch", "createNotification", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "null");
return $resultObject;
}
function getExclusiveNotificationJobs($processorLocation, $pocessorName, $maxExecutionTime, $numberOfJobs, $partnerGroups) {
$kparams = array();
$this->client
->addParam($kparams, "processorLocation", $processorLocation);
$this->client
->addParam($kparams, "pocessorName", $pocessorName);
$this->client
->addParam($kparams, "maxExecutionTime", $maxExecutionTime);
$this->client
->addParam($kparams, "numberOfJobs", $numberOfJobs);
$this->client
->addParam($kparams, "partnerGroups", $partnerGroups);
$this->client
->queueServiceActionCall("batch", "getExclusiveNotificationJobs", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaBatchGetExclusiveNotificationJobsResponse");
return $resultObject;
}
function updateExclusiveNotificationJob($id, $processorLocation, $pocessorName, KalturaNotification $notificationJob) {
$kparams = array();
$this->client
->addParam($kparams, "id", $id);
$this->client
->addParam($kparams, "processorLocation", $processorLocation);
$this->client
->addParam($kparams, "pocessorName", $pocessorName);
$this->client
->addParam($kparams, "notificationJob", $notificationJob
->toParams());
$this->client
->queueServiceActionCall("batch", "updateExclusiveNotificationJob", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaNotification");
return $resultObject;
}
function freeExclusiveNotificationJob($id, $processorLocation, $pocessorName, KalturaNotification $notificationJob = null) {
$kparams = array();
$this->client
->addParam($kparams, "id", $id);
$this->client
->addParam($kparams, "processorLocation", $processorLocation);
$this->client
->addParam($kparams, "pocessorName", $pocessorName);
if ($notificationJob !== null) {
$this->client
->addParam($kparams, "notificationJob", $notificationJob
->toParams());
}
$this->client
->queueServiceActionCall("batch", "freeExclusiveNotificationJob", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaBatchJob");
return $resultObject;
}
function addMailJob(KalturaMailJob $mailJob) {
$kparams = array();
$this->client
->addParam($kparams, "mailJob", $mailJob
->toParams());
$this->client
->queueServiceActionCall("batch", "addMailJob", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "null");
return $resultObject;
}
function getExclusiveMailJobs($processorLocation, $pocessorName, $maxExecutionTime, $numberOfJobs, $partnerGroups) {
$kparams = array();
$this->client
->addParam($kparams, "processorLocation", $processorLocation);
$this->client
->addParam($kparams, "pocessorName", $pocessorName);
$this->client
->addParam($kparams, "maxExecutionTime", $maxExecutionTime);
$this->client
->addParam($kparams, "numberOfJobs", $numberOfJobs);
$this->client
->addParam($kparams, "partnerGroups", $partnerGroups);
$this->client
->queueServiceActionCall("batch", "getExclusiveMailJobs", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "array");
return $resultObject;
}
function updateExclusiveMailJob($id, $processorLocation, $pocessorName, KalturaMailJob $mailJob) {
$kparams = array();
$this->client
->addParam($kparams, "id", $id);
$this->client
->addParam($kparams, "processorLocation", $processorLocation);
$this->client
->addParam($kparams, "pocessorName", $pocessorName);
$this->client
->addParam($kparams, "mailJob", $mailJob
->toParams());
$this->client
->queueServiceActionCall("batch", "updateExclusiveMailJob", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaMailJob");
return $resultObject;
}
function freeExclusiveMailJob($id, $processorLocation, $pocessorName) {
$kparams = array();
$this->client
->addParam($kparams, "id", $id);
$this->client
->addParam($kparams, "processorLocation", $processorLocation);
$this->client
->addParam($kparams, "pocessorName", $pocessorName);
$this->client
->queueServiceActionCall("batch", "freeExclusiveMailJob", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaMailJob");
return $resultObject;
}
}
class KalturaReportService extends KalturaServiceBase {
function __construct(KalturaClient $client) {
parent::__construct($client);
}
function getGraph() {
$kparams = array();
$this->client
->queueServiceActionCall("report", "getGraph", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaReportGraph");
return $resultObject;
}
function getGraphs($reportType, KalturaReportInputFilter $reportInputFilter, $dimension = null, $objectIds = null) {
$kparams = array();
$this->client
->addParam($kparams, "reportType", $reportType);
$this->client
->addParam($kparams, "reportInputFilter", $reportInputFilter
->toParams());
$this->client
->addParam($kparams, "dimension", $dimension);
$this->client
->addParam($kparams, "objectIds", $objectIds);
$this->client
->queueServiceActionCall("report", "getGraphs", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "array");
return $resultObject;
}
function getTotal($reportType, KalturaReportInputFilter $reportInputFilter, $objectIds = null) {
$kparams = array();
$this->client
->addParam($kparams, "reportType", $reportType);
$this->client
->addParam($kparams, "reportInputFilter", $reportInputFilter
->toParams());
$this->client
->addParam($kparams, "objectIds", $objectIds);
$this->client
->queueServiceActionCall("report", "getTotal", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaReportTotal");
return $resultObject;
}
function getTable($reportType, KalturaReportInputFilter $reportInputFilter, KalturaFilterPager $pager, $order = null, $objectIds = null) {
$kparams = array();
$this->client
->addParam($kparams, "reportType", $reportType);
$this->client
->addParam($kparams, "reportInputFilter", $reportInputFilter
->toParams());
$this->client
->addParam($kparams, "pager", $pager
->toParams());
$this->client
->addParam($kparams, "order", $order);
$this->client
->addParam($kparams, "objectIds", $objectIds);
$this->client
->queueServiceActionCall("report", "getTable", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaReportTable");
return $resultObject;
}
function getUrlForReportAsCsv($reportTitle, $reportText, $headers, $reportType, KalturaReportInputFilter $reportInputFilter, $dimension = null, KalturaFilterPager $pager = null, $order = null, $objectIds = null) {
$kparams = array();
$this->client
->addParam($kparams, "reportTitle", $reportTitle);
$this->client
->addParam($kparams, "reportText", $reportText);
$this->client
->addParam($kparams, "headers", $headers);
$this->client
->addParam($kparams, "reportType", $reportType);
$this->client
->addParam($kparams, "reportInputFilter", $reportInputFilter
->toParams());
$this->client
->addParam($kparams, "dimension", $dimension);
if ($pager !== null) {
$this->client
->addParam($kparams, "pager", $pager
->toParams());
}
$this->client
->addParam($kparams, "order", $order);
$this->client
->addParam($kparams, "objectIds", $objectIds);
$this->client
->queueServiceActionCall("report", "getUrlForReportAsCsv", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "string");
return $resultObject;
}
}
class KalturaConversionProfileService extends KalturaServiceBase {
function __construct(KalturaClient $client) {
parent::__construct($client);
}
function addCurrent(KalturaConversionProfile $conversionProfile) {
$kparams = array();
$this->client
->addParam($kparams, "conversionProfile", $conversionProfile
->toParams());
$this->client
->queueServiceActionCall("conversionprofile", "addCurrent", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaConversionProfile");
return $resultObject;
}
function getCurrent() {
$kparams = array();
$this->client
->queueServiceActionCall("conversionprofile", "getCurrent", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaConversionProfile");
return $resultObject;
}
}
class KalturaStatsService extends KalturaServiceBase {
function __construct(KalturaClient $client) {
parent::__construct($client);
}
function collect(KalturaStatsEvent $event) {
$kparams = array();
$this->client
->addParam($kparams, "event", $event
->toParams());
$this->client
->queueServiceActionCall("stats", "collect", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "null");
return $resultObject;
}
function reportKceError(KalturaCEError $kalturaCEError) {
$kparams = array();
$this->client
->addParam($kparams, "kalturaCEError", $kalturaCEError
->toParams());
$this->client
->queueServiceActionCall("stats", "reportKceError", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaCEError");
return $resultObject;
}
}
class KalturaClient extends KalturaClientBase {
public $media = null;
public $mixing = null;
public $document = null;
public $data = null;
public $baseEntry = null;
public $session = null;
public $uiConf = null;
public $playlist = null;
public $user = null;
public $widget = null;
public $search = null;
public $partner = null;
public $adminUser = null;
public $system = null;
public $bulkUpload = null;
public $notification = null;
public $batch = null;
public $report = null;
public $conversionProfile = null;
public $stats = null;
public function __construct(KalturaConfiguration $config) {
parent::__construct($config);
$this->media = new KalturaMediaService($this);
$this->mixing = new KalturaMixingService($this);
$this->document = new KalturaDocumentService($this);
$this->data = new KalturaDataService($this);
$this->baseEntry = new KalturaBaseEntryService($this);
$this->session = new KalturaSessionService($this);
$this->uiConf = new KalturaUiConfService($this);
$this->playlist = new KalturaPlaylistService($this);
$this->user = new KalturaUserService($this);
$this->widget = new KalturaWidgetService($this);
$this->search = new KalturaSearchService($this);
$this->partner = new KalturaPartnerService($this);
$this->adminUser = new KalturaAdminUserService($this);
$this->system = new KalturaSystemService($this);
$this->bulkUpload = new KalturaBulkUploadService($this);
$this->notification = new KalturaNotificationService($this);
$this->batch = new KalturaBatchService($this);
$this->report = new KalturaReportService($this);
$this->conversionProfile = new KalturaConversionProfileService($this);
$this->stats = new KalturaStatsService($this);
}
}