本文整理汇总了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);
}
}
示例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);
}
}
示例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');
}
}
示例4: partnerRequired
protected function partnerRequired($actionName)
{
if ($actionName === 'getCurrentPermissions') {
return false;
}
return parent::partnerRequired($actionName);
}
示例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);
}
}
示例6: initService
public function initService($serviceId, $serviceName, $actionName)
{
parent::initService($serviceId, $serviceName, $actionName);
if ($actionName == 'add') {
categoryPeer::setIgnoreDeleted(true);
}
}
示例7: globalPartnerAllowed
protected function globalPartnerAllowed($actionName)
{
if ($actionName === 'getFlavorAssetsWithParams') {
return true;
}
return parent::globalPartnerAllowed($actionName);
}
示例8: partnerRequired
protected function partnerRequired($actionName)
{
if ($actionName == 'ping' || $actionName == 'getTime') {
return false;
}
return parent::partnerRequired($actionName);
}
示例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);
}
}
示例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());
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}