當前位置: 首頁>>代碼示例>>PHP>>正文


PHP KalturaBaseService類代碼示例

本文整理匯總了PHP中KalturaBaseService的典型用法代碼示例。如果您正苦於以下問題:PHP KalturaBaseService類的具體用法?PHP KalturaBaseService怎麽用?PHP KalturaBaseService使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了KalturaBaseService類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: initService

 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     if (!DrmPlugin::isAllowedPartner(kCurrentContext::$ks_partner_id)) {
         throw new KalturaAPIException(KalturaErrors::FEATURE_FORBIDDEN, DrmPlugin::PLUGIN_NAME);
     }
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:7,代碼來源:DrmLicenseAccessService.php

示例2: initService

 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     if (!AdminConsolePlugin::isAllowedPartner($this->getPartnerId())) {
         throw new KalturaAPIException(KalturaErrors::SERVICE_FORBIDDEN, $this->serviceName . '->' . $this->actionName);
     }
 }
開發者ID:richhl,項目名稱:kalturaCE,代碼行數:7,代碼來源:UiConfAdminService.php

示例3: initService

 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     if (in_array(strtolower($actionName), array('execute', 'getcsv'), true)) {
         $this->applyPartnerFilterForClass('Report');
     }
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:7,代碼來源:ReportService.php

示例4: partnerRequired

 protected function partnerRequired($actionName)
 {
     if ($actionName === 'getCurrentPermissions') {
         return false;
     }
     return parent::partnerRequired($actionName);
 }
開發者ID:EfncoPlugins,項目名稱:Media-Management-based-on-Kaltura,代碼行數:7,代碼來源:PermissionService.php

示例5: initService

 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     if ($this->getPartnerId() != Partner::BATCH_PARTNER_ID && $this->getPartnerId() != Partner::ADMIN_CONSOLE_PARTNER_ID) {
         throw new KalturaAPIException(KalturaErrors::SERVICE_FORBIDDEN, $this->serviceName . '->' . $this->actionName);
     }
 }
開發者ID:EfncoPlugins,項目名稱:Media-Management-based-on-Kaltura,代碼行數:7,代碼來源:FlavorParamsOutputService.php

示例6: initService

 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     if ($actionName == 'add') {
         categoryPeer::setIgnoreDeleted(true);
     }
 }
開發者ID:dozernz,項目名稱:server,代碼行數:7,代碼來源:CategoryService.php

示例7: globalPartnerAllowed

 protected function globalPartnerAllowed($actionName)
 {
     if ($actionName === 'getFlavorAssetsWithParams') {
         return true;
     }
     return parent::globalPartnerAllowed($actionName);
 }
開發者ID:richhl,項目名稱:kalturaCE,代碼行數:7,代碼來源:FlavorAssetService.php

示例8: partnerRequired

 protected function partnerRequired($actionName)
 {
     if ($actionName == 'ping' || $actionName == 'getTime') {
         return false;
     }
     return parent::partnerRequired($actionName);
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:7,代碼來源:SystemService.php

示例9: initService

 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     if (!QuizPlugin::isAllowedPartner($this->getPartnerId())) {
         throw new KalturaAPIException(KalturaErrors::FEATURE_FORBIDDEN, QuizPlugin::PLUGIN_NAME);
     }
 }
開發者ID:ace3535,項目名稱:server,代碼行數:7,代碼來源:QuizService.php

示例10: initService

 /**
  * @ignore
  */
 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     if ($this->getPartnerId() != Partner::ADMIN_CONSOLE_PARTNER_ID) {
         parent::applyPartnerFilterForClass(new BatchJobPeer());
     }
 }
開發者ID:EfncoPlugins,項目名稱:Media-Management-based-on-Kaltura,代碼行數:10,代碼來源:JobsService.php

示例11: initService

 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     parent::applyPartnerFilterForClass(new assetPeer());
     if (!AsperaPlugin::isAllowedPartner($this->getPartnerId())) {
         throw new KalturaAPIException(KalturaErrors::SERVICE_FORBIDDEN, $this->serviceName . '->' . $this->actionName);
     }
 }
開發者ID:EfncoPlugins,項目名稱:Media-Management-based-on-Kaltura,代碼行數:8,代碼來源:AsperaService.php

示例12: initService

 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     $this->applyPartnerFilterForClass('GenericDistributionProvider');
     if (!ContentDistributionPlugin::isAllowedPartner($this->getPartnerId())) {
         throw new KalturaAPIException(KalturaErrors::FEATURE_FORBIDDEN, ContentDistributionPlugin::PLUGIN_NAME);
     }
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:8,代碼來源:DistributionProviderService.php

示例13: initService

 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     $this->applyPartnerFilterForClass('DrmProfile');
     if (!DrmPlugin::isAllowedPartner($this->getPartnerId())) {
         throw new KalturaAPIException(KalturaErrors::FEATURE_FORBIDDEN, DrmPlugin::PLUGIN_NAME);
     }
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:8,代碼來源:DrmProfileService.php

示例14: initService

 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     if (in_array(strtolower($actionName), array('execute', 'getcsv'), true)) {
         $partnerGroup = $this->partnerGroup . ',0';
         parent::applyPartnerFilterForClass(new ReportPeer(), $partnerGroup);
     }
 }
開發者ID:EfncoPlugins,項目名稱:Media-Management-based-on-Kaltura,代碼行數:8,代碼來源:ReportService.php

示例15: initService

 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     myPartnerUtils::addPartnerToCriteria(new GenericDistributionProviderActionPeer(), $this->getPartnerId(), $this->private_partner_data, $this->partnerGroup());
     if (!ContentDistributionPlugin::isAllowedPartner(kCurrentContext::$master_partner_id)) {
         throw new KalturaAPIException(KalturaErrors::SERVICE_FORBIDDEN, $this->serviceName . '->' . $this->actionName);
     }
 }
開發者ID:richhl,項目名稱:kalturaCE,代碼行數:8,代碼來源:GenericDistributionProviderActionService.php


注:本文中的KalturaBaseService類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。