本文整理汇总了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());
}
}
示例2: initService
/**
* @ignore
*/
public function initService($serviceId, $serviceName, $actionName)
{
parent::initService($serviceId, $serviceName, $actionName);
if (strtolower($actionName) != 'listtemplates') {
parent::applyPartnerFilterForClass(new uiConfPeer());
}
}
示例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);
}
}
示例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);
}
}
示例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());
}
示例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());
}
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例12: initService
/**
* @ignore
*/
public function initService($serviceId, $serviceName, $actionName)
{
parent::initService($serviceId, $serviceName, $actionName);
parent::applyPartnerFilterForClass(new widgetPeer());
}
示例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);
}
}
}