OXID eShop CE  6.4.2
OxidEsales\EshopCommunity\Internal\Framework\Module\Setup\Validator\EventsValidator Class Reference
+ Inheritance diagram for OxidEsales\EshopCommunity\Internal\Framework\Module\Setup\Validator\EventsValidator:
+ Collaboration diagram for OxidEsales\EshopCommunity\Internal\Framework\Module\Setup\Validator\EventsValidator:

Public Member Functions

 __construct (ShopAdapterInterface $shopAdapter)
 
 validate (ModuleConfiguration $configuration, int $shopId)
 

Private Member Functions

 checkIfMethodIsCallable (string $method)
 
 isNamespacedClass (string $method)
 

Private Attributes

 $validEvents = ['onActivate', 'onDeactivate']
 
 $shopAdapter
 

Constructor & Destructor Documentation

◆ __construct()

OxidEsales\EshopCommunity\Internal\Framework\Module\Setup\Validator\EventsValidator::__construct ( ShopAdapterInterface  $shopAdapter)
Parameters
ShopAdapterInterface$shopAdapter

Member Function Documentation

◆ checkIfMethodIsCallable()

OxidEsales\EshopCommunity\Internal\Framework\Module\Setup\Validator\EventsValidator::checkIfMethodIsCallable ( string  $method)
private
Parameters
string$method
Exceptions
ModuleSettingNotValidException

◆ isNamespacedClass()

OxidEsales\EshopCommunity\Internal\Framework\Module\Setup\Validator\EventsValidator::isNamespacedClass ( string  $method)
private
Deprecated:
6.6 Will be removed completely

This is needed only for the modules which has non namespaced classes. This method MUST be removed when support for non namespaced modules will be dropped (metadata v1.*).

Parameters
string$method
Returns
bool

◆ validate()

OxidEsales\EshopCommunity\Internal\Framework\Module\Setup\Validator\EventsValidator::validate ( ModuleConfiguration  $configuration,
int  $shopId 
)

There is another service for syntax validation and we won't validate syntax in this method.

Parameters
ModuleConfiguration$configuration
int$shopId
Exceptions
ModuleSettingNotValidException

Implements OxidEsales\EshopCommunity\Internal\Framework\Module\Setup\Validator\ModuleConfigurationValidatorInterface.

Member Data Documentation

◆ $shopAdapter

OxidEsales\EshopCommunity\Internal\Framework\Module\Setup\Validator\EventsValidator::$shopAdapter
private

◆ $validEvents

OxidEsales\EshopCommunity\Internal\Framework\Module\Setup\Validator\EventsValidator::$validEvents = ['onActivate', 'onDeactivate']
private

The documentation for this class was generated from the following file: