static function getInstanceByDbObject(kRuleAction $dbObject)
 {
     switch ($dbObject->getType()) {
         case RuleActionType::BLOCK:
             return new KalturaAccessControlBlockAction();
         case RuleActionType::PREVIEW:
             return new KalturaAccessControlPreviewAction();
         case RuleActionType::LIMIT_FLAVORS:
             return new KalturaAccessControlLimitFlavorsAction();
         default:
             return KalturaPluginManager::loadObject('KalturaAccessControlAction', $dbObject->getType());
     }
 }
예제 #2
0
 static function getInstanceByDbObject(kRuleAction $dbObject)
 {
     switch ($dbObject->getType()) {
         case RuleActionType::BLOCK:
             return new KalturaAccessControlBlockAction();
         case RuleActionType::PREVIEW:
             return new KalturaAccessControlPreviewAction();
         case RuleActionType::LIMIT_FLAVORS:
             return new KalturaAccessControlLimitFlavorsAction();
         case RuleActionType::ADD_TO_STORAGE:
             return new KalturaStorageAddAction();
         case RuleActionType::LIMIT_DELIVERY_PROFILES:
             return new KalturaAccessControlLimitDeliveryProfilesAction();
         default:
             return KalturaPluginManager::loadObject('KalturaRuleAction', $dbObject->getType());
     }
 }
예제 #3
0
 static function getInstanceByDbObject(kRuleAction $dbObject)
 {
     switch ($dbObject->getType()) {
         case RuleActionType::BLOCK:
             return new KalturaAccessControlBlockAction();
         case RuleActionType::PREVIEW:
             return new KalturaAccessControlPreviewAction();
         case RuleActionType::LIMIT_FLAVORS:
             return new KalturaAccessControlLimitFlavorsAction();
         case RuleActionType::ADD_TO_STORAGE:
             return new KalturaStorageAddAction();
         case RuleActionType::LIMIT_DELIVERY_PROFILES:
             return new KalturaAccessControlLimitDeliveryProfilesAction();
         case RuleActionType::SERVE_FROM_REMOTE_SERVER:
             return new KalturaAccessControlServeRemoteEdgeServerAction();
         case RuleActionType::REQUEST_HOST_REGEX:
             return new KalturaAccessControlModifyRequestHostRegexAction();
         default:
             return KalturaPluginManager::loadObject('KalturaRuleAction', $dbObject->getType());
     }
 }
 public function __construct()
 {
     parent::__construct(DrmAccessControlActionType::DRM_POLICY);
 }
 public function __construct()
 {
     parent::__construct(RuleActionType::SERVE_FROM_REMOTE_SERVER);
 }
 public function __construct()
 {
     parent::__construct(RuleActionType::LIMIT_DELIVERY_PROFILES);
 }
 public function __construct()
 {
     parent::__construct(RuleActionType::LIMIT_FLAVORS);
 }
 public function __construct()
 {
     parent::__construct(RuleActionType::REQUEST_HOST_REGEX);
 }
 public function __construct()
 {
     parent::__construct(RuleActionType::PREVIEW);
 }