当前位置: 首页>>代码示例>>PHP>>正文


PHP KalturaBaseService::initService方法代码示例

本文整理汇总了PHP中KalturaBaseService::initService方法的典型用法代码示例。如果您正苦于以下问题:PHP KalturaBaseService::initService方法的具体用法?PHP KalturaBaseService::initService怎么用?PHP KalturaBaseService::initService使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在KalturaBaseService的用法示例。


在下文中一共展示了KalturaBaseService::initService方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: 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

示例2: initService

 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     myPartnerUtils::addPartnerToCriteria(new UserRolePeer(), $this->getPartnerId(), $this->private_partner_data, $this->partnerGroup());
     myPartnerUtils::addPartnerToCriteria(new PermissionPeer(), $this->getPartnerId(), $this->private_partner_data, $this->partnerGroup());
     myPartnerUtils::addPartnerToCriteria(new PermissionItemPeer(), $this->getPartnerId(), $this->private_partner_data, $this->partnerGroup());
 }
开发者ID:richhl,项目名称:kalturaCE,代码行数:7,代码来源:UserRoleService.php

示例3: 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

示例4: 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

示例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

 /**
  * @ignore
  */
 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     if (strtolower($actionName) != 'listtemplates') {
         parent::applyPartnerFilterForClass(new uiConfPeer());
     }
 }
开发者ID:richhl,项目名称:kalturaCE,代码行数:10,代码来源:UiConfService.php

示例7: initService

 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     $this->applyPartnerFilterForClass('UserRole');
     $this->applyPartnerFilterForClass('Permission');
     $this->applyPartnerFilterForClass('PermissionItem');
 }
开发者ID:DBezemer,项目名称:server,代码行数:7,代码来源:UserRoleService.php

示例8: initService

 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     if ($actionName == 'add') {
         categoryPeer::setIgnoreDeleted(true);
     }
 }
开发者ID:dozernz,项目名称:server,代码行数:7,代码来源:CategoryService.php

示例9: 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

示例10: 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

示例11: 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

示例12: 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

示例13: initService

 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     $this->applyPartnerFilterForClass('LiveChannelSegment');
     if (!PermissionPeer::isValidForPartner(PermissionName::FEATURE_LIVE_CHANNEL, $this->getPartnerId())) {
         throw new KalturaAPIException(KalturaErrors::SERVICE_FORBIDDEN, $this->serviceName . '->' . $this->actionName);
     }
 }
开发者ID:DBezemer,项目名称:server,代码行数:8,代码来源:LiveChannelSegmentService.php

示例14: initService

 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     $this->applyPartnerFilterForClass('asset');
     $this->applyPartnerFilterForClass('assetParamsOutput');
     $this->applyPartnerFilterForClass('conversionProfile2');
     $this->applyPartnerFilterForClass('assetParams');
 }
开发者ID:DBezemer,项目名称:server,代码行数:8,代码来源:ConversionProfileService.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::initService方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。