本文整理汇总了PHP中KalturaBaseService类的典型用法代码示例。如果您正苦于以下问题:PHP KalturaBaseService类的具体用法?PHP KalturaBaseService怎么用?PHP KalturaBaseService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了KalturaBaseService类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: partnerGroup
protected function partnerGroup($peer = null)
{
if ($this->actionName == 'add' || $this->actionName == 'update') {
assetParamsPeer::setIsDefaultInDefaultCriteria(false);
return $this->partnerGroup . ',0';
}
return parent::partnerGroup();
}
开发者ID:DBezemer,项目名称:server,代码行数:8,代码来源:ConversionProfileService.php
示例17: initService
public function initService($serviceId, $serviceName, $actionName)
{
parent::initService($serviceId, $serviceName, $actionName);
//Don;t apply partner filter if action is list to avoid returning default partner 0 response profiles on every call
if ($actionName !== "list") {
$this->applyPartnerFilterForClass('ResponseProfile');
}
}
开发者ID:DBezemer,项目名称:server,代码行数:8,代码来源:ResponseProfileService.php
示例18: kalturaNetworkAllowed
protected function kalturaNetworkAllowed($actionName)
{
if ($actionName == 'list') {
$this->partnerGroup .= ',0';
return true;
}
return parent::kalturaNetworkAllowed($actionName);
}
开发者ID:DBezemer,项目名称:server,代码行数:8,代码来源:MetadataService.php
示例19: 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
示例20: initService
public function initService($serviceId, $serviceName, $actionName)
{
parent::initService($serviceId, $serviceName, $actionName);
if ($actionName != 'goto') {
$this->applyPartnerFilterForClass('ShortLink');
$this->applyPartnerFilterForClass('kuser');
}
}
开发者ID:DBezemer,项目名称:server,代码行数:8,代码来源:ShortLinkService.php
注:本文中的KalturaBaseService类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论