OXID eShop CE  4.10.5
 All Classes Namespaces Files Functions Variables Pages
oxModuleMetadataAgainstShopValidator Class Reference
+ Inheritance diagram for oxModuleMetadataAgainstShopValidator:
+ Collaboration diagram for oxModuleMetadataAgainstShopValidator:

Public Member Functions

 validate (oxModule $oModule)

Private Member Functions

 _moduleExtensionsInformationExistsInShop (oxModule $oModule)
 _moduleFilesInformationExistInShop (oxModule $oModule)
 _moduleHasAllExtensions (oxModule $oModule)
 _moduleHasAllFiles (oxModule $oModule)

Detailed Description

Module metadata equivalence with saved shop configuration validator class. Validates metadata contents and checks if it was not changed after module activation.

Definition at line 10 of file oxmodulemetadataagainstshopvalidator.php.

Member Function Documentation

oxModuleMetadataAgainstShopValidator::_moduleExtensionsInformationExistsInShop ( oxModule  $oModule)
private

Check if all module extensions exists in shop information.

Parameters
oxModule$oModulemodule object
Returns
bool

Definition at line 43 of file oxmodulemetadataagainstshopvalidator.php.

oxModuleMetadataAgainstShopValidator::_moduleFilesInformationExistInShop ( oxModule  $oModule)
private

Check if all module files exists in shop.

Parameters
oxModule$oModulemodule object
Returns
bool

Definition at line 71 of file oxmodulemetadataagainstshopvalidator.php.

oxModuleMetadataAgainstShopValidator::_moduleHasAllExtensions ( oxModule  $oModule)
private

Check if all module files exists by shop information.

Parameters
oxModule$oModulemodule object
Returns
bool

Definition at line 91 of file oxmodulemetadataagainstshopvalidator.php.

oxModuleMetadataAgainstShopValidator::_moduleHasAllFiles ( oxModule  $oModule)
private

Check if all PHP files exists by shop information.

Parameters
oxModule$oModulemodule object
Returns
bool

Definition at line 103 of file oxmodulemetadataagainstshopvalidator.php.

oxModuleMetadataAgainstShopValidator::validate ( oxModule  $oModule)

Validates module metadata. Return true if module metadata is valid. Return false if module metadata is not valid, or if metadata file does not exist.

Parameters
oxModule$oModuleobject to validate metadata.
Returns
bool

Implements oxIModuleValidator.

Definition at line 22 of file oxmodulemetadataagainstshopvalidator.php.


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