當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。