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


PHP KalturaBaseService::applyPartnerFilterForClass方法代码示例

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


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

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

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

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

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

示例5: initService

 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     parent::applyPartnerFilterForClass(flavorAssetPeer::getInstance());
     parent::applyPartnerFilterForClass(flavorParamsPeer::getInstance());
     parent::applyPartnerFilterForClass(flavorParamsOutputPeer::getInstance());
     parent::applyPartnerFilterForClass(new entryPeer());
     parent::applyPartnerFilterForClass(new syndicationFeedPeer());
 }
开发者ID:richhl,项目名称:kalturaCE,代码行数:9,代码来源:SyndicationFeedService.php

示例6: initService

 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     parent::applyPartnerFilterForClass(new conversionProfile2Peer());
     $partnerGroup = null;
     if ($actionName == 'list') {
         $partnerGroup = $this->partnerGroup . ',0';
     }
     parent::applyPartnerFilterForClass(new assetParamsPeer(), $partnerGroup);
 }
开发者ID:EfncoPlugins,项目名称:Media-Management-based-on-Kaltura,代码行数:10,代码来源:ConversionProfileAssetParamsService.php

示例7: initService

 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     if (kCurrentContext::$master_partner_id != Partner::ADMIN_CONSOLE_PARTNER_ID && kCurrentContext::$master_partner_id != Partner::BATCH_PARTNER_ID) {
         if (!$this->getPartner()->getEnabledService(PermissionName::FEATURE_REMOTE_STORAGE)) {
             throw new KalturaAPIException(KalturaErrors::SERVICE_FORBIDDEN, $this->serviceName . '->' . $this->actionName);
         }
         parent::applyPartnerFilterForClass(new StorageProfilePeer());
     }
 }
开发者ID:EfncoPlugins,项目名称:Media-Management-based-on-Kaltura,代码行数:10,代码来源:StorageProfileService.php

示例8: initService

 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     parent::applyPartnerFilterForClass(new conversionProfile2Peer());
     parent::applyPartnerFilterForClass(flavorParamsOutputPeer::getInstance());
     parent::applyPartnerFilterForClass(flavorAssetPeer::getInstance());
     $partnerGroup = null;
     if ($actionName == 'get' || $actionName == 'list' || $actionName == 'getByEntryId' || $actionName == 'getDownloadUrl' || $actionName == 'getWebPlayableByEntryId' || $actionName == 'getFlavorAssetsWithParams' || $actionName == 'convert' || $actionName == 'reconvert') {
         $partnerGroup = $this->partnerGroup . ',0';
     }
     parent::applyPartnerFilterForClass(flavorParamsPeer::getInstance(), $partnerGroup);
 }
开发者ID:richhl,项目名称:kalturaCE,代码行数:12,代码来源:FlavorAssetService.php

示例9: initService

 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     parent::applyPartnerFilterForClass(flavorAssetPeer::getInstance());
     parent::applyPartnerFilterForClass(flavorParamsOutputPeer::getInstance());
     parent::applyPartnerFilterForClass(new conversionProfile2Peer());
     $partnerGroup = null;
     if ($actionName == 'add' || $actionName == 'update') {
         $partnerGroup = $this->partnerGroup . ',0';
     }
     parent::applyPartnerFilterForClass(flavorParamsPeer::getInstance(), $partnerGroup);
 }
开发者ID:richhl,项目名称:kalturaCE,代码行数:12,代码来源:ConversionProfileService.php

示例10: initService

 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     parent::applyPartnerFilterForClass(new conversionProfile2Peer());
     parent::applyPartnerFilterForClass(new assetParamsOutputPeer());
     $fullActionName = "{$serviceName}.{$actionName}";
     if (!in_array($fullActionName, array('flavorAsset.getByEntryId', 'flavorAsset.getWebPlayableByEntryId', 'flavorAsset.list'))) {
         parent::applyPartnerFilterForClass(new assetPeer());
     }
     parent::applyPartnerFilterForClass(new assetParamsPeer());
     $this->mediaTypes = KalturaPluginManager::getExtendedTypes(entryPeer::OM_CLASS, KalturaEntryType::MEDIA_CLIP);
 }
开发者ID:EfncoPlugins,项目名称:Media-Management-based-on-Kaltura,代码行数:12,代码来源:KalturaAssetService.php

示例11: initService

 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     parent::applyPartnerFilterForClass(new assetPeer());
     parent::applyPartnerFilterForClass(new assetParamsOutputPeer());
     parent::applyPartnerFilterForClass(new conversionProfile2Peer());
     $partnerGroup = null;
     if ($actionName == 'add' || $actionName == 'update') {
         $partnerGroup = $this->partnerGroup . ',0';
         assetParamsPeer::setIsDefaultInDefaultCriteria(false);
     }
     parent::applyPartnerFilterForClass(new assetParamsPeer(), $partnerGroup);
 }
开发者ID:EfncoPlugins,项目名称:Media-Management-based-on-Kaltura,代码行数:13,代码来源:ConversionProfileService.php

示例12: initService

 /**
  * @ignore
  */
 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     parent::applyPartnerFilterForClass(new widgetPeer());
 }
开发者ID:richhl,项目名称:kalturaCE,代码行数:8,代码来源:WidgetService.php

示例13: validateAccessControlId

 /**
  * Throws an error if trying to set invalid Access Control Profile
  * 
  * @param KalturaBaseEntry $entry
  */
 protected function validateAccessControlId(KalturaBaseEntry $entry)
 {
     if ($entry->accessControlId !== null) {
         parent::applyPartnerFilterForClass(new accessControlPeer());
         $accessControl = accessControlPeer::retrieveByPK($entry->accessControlId);
         if (!$accessControl) {
             throw new KalturaAPIException(KalturaErrors::ACCESS_CONTROL_ID_NOT_FOUND, $entry->accessControlId);
         }
     }
 }
开发者ID:EfncoPlugins,项目名称:Media-Management-based-on-Kaltura,代码行数:15,代码来源:KalturaEntryService.php


注:本文中的KalturaBaseService::applyPartnerFilterForClass方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。