protected function getHeaderField($headerName, $properties) { if (isset($properties[$headerName . '_email'])) { $headerEmailProperty = $headerName . '_email'; $headerNameProperty = $headerName . '_name'; if (strlen(trim($properties[$headerEmailProperty]))) { $email = new Kaltura_Client_Type_StringValue(); $email->value = $properties[$headerEmailProperty]; $name = null; if (isset($properties[$headerNameProperty]) && strlen(trim($properties[$headerNameProperty]))) { $name = new Kaltura_Client_Type_StringValue(); $name->value = $properties[$headerNameProperty]; } $recipient = new Kaltura_Client_EmailNotification_Type_EmailNotificationRecipient(); $recipient->email = $email; $recipient->name = $name; $recipientProvider = new Kaltura_Client_EmailNotification_Type_EmailNotificationStaticRecipientProvider(); $recipientProvider->emailRecipients = array(); $recipientProvider->emailRecipients[] = $recipient; return $recipientProvider; } else { return Kaltura_Client_ClientBase::getKalturaNullValue(); } } }
/** * Kaltura client constructor * * @param Kaltura_Client_Configuration $config */ public function __construct(Kaltura_Client_Configuration $config) { parent::__construct($config); $this->accessControlProfile = new Kaltura_Client_AccessControlProfileService($this); $this->accessControl = new Kaltura_Client_AccessControlService($this); $this->adminUser = new Kaltura_Client_AdminUserService($this); $this->baseEntry = new Kaltura_Client_BaseEntryService($this); $this->bulkUpload = new Kaltura_Client_BulkUploadService($this); $this->categoryEntry = new Kaltura_Client_CategoryEntryService($this); $this->category = new Kaltura_Client_CategoryService($this); $this->categoryUser = new Kaltura_Client_CategoryUserService($this); $this->conversionProfileAssetParams = new Kaltura_Client_ConversionProfileAssetParamsService($this); $this->conversionProfile = new Kaltura_Client_ConversionProfileService($this); $this->data = new Kaltura_Client_DataService($this); $this->document = new Kaltura_Client_DocumentService($this); $this->EmailIngestionProfile = new Kaltura_Client_EmailIngestionProfileService($this); $this->flavorAsset = new Kaltura_Client_FlavorAssetService($this); $this->flavorParamsOutput = new Kaltura_Client_FlavorParamsOutputService($this); $this->flavorParams = new Kaltura_Client_FlavorParamsService($this); $this->liveStream = new Kaltura_Client_LiveStreamService($this); $this->mediaInfo = new Kaltura_Client_MediaInfoService($this); $this->media = new Kaltura_Client_MediaService($this); $this->mixing = new Kaltura_Client_MixingService($this); $this->notification = new Kaltura_Client_NotificationService($this); $this->partner = new Kaltura_Client_PartnerService($this); $this->permissionItem = new Kaltura_Client_PermissionItemService($this); $this->permission = new Kaltura_Client_PermissionService($this); $this->playlist = new Kaltura_Client_PlaylistService($this); $this->report = new Kaltura_Client_ReportService($this); $this->schema = new Kaltura_Client_SchemaService($this); $this->search = new Kaltura_Client_SearchService($this); $this->session = new Kaltura_Client_SessionService($this); $this->stats = new Kaltura_Client_StatsService($this); $this->storageProfile = new Kaltura_Client_StorageProfileService($this); $this->syndicationFeed = new Kaltura_Client_SyndicationFeedService($this); $this->system = new Kaltura_Client_SystemService($this); $this->thumbAsset = new Kaltura_Client_ThumbAssetService($this); $this->thumbParamsOutput = new Kaltura_Client_ThumbParamsOutputService($this); $this->thumbParams = new Kaltura_Client_ThumbParamsService($this); $this->uiConf = new Kaltura_Client_UiConfService($this); $this->upload = new Kaltura_Client_UploadService($this); $this->uploadToken = new Kaltura_Client_UploadTokenService($this); $this->userRole = new Kaltura_Client_UserRoleService($this); $this->user = new Kaltura_Client_UserService($this); $this->widget = new Kaltura_Client_WidgetService($this); $this->xInternal = new Kaltura_Client_XInternalService($this); }