Public Member Functions | |
getPathToModuleDirectory () | |
setPathToModuleDirectory ($sPathToModuleDirectory) | |
validate (oxModule $oModule) | |
getMissingFiles () | |
Protected Member Functions | |
_resetMissingFiles () | |
_allModuleExtensionsExists ($oModule) | |
_allModuleFilesExists ($oModule) | |
Private Member Functions | |
_allFilesExists ($aModuleExtendedFiles, $blAddExtension=false, $sListName= 'files') | |
_addDirectorySeparatorAtTheEndIfNeeded ($sPathToModuleDirectory) | |
Private Attributes | |
$_aMissingFiles = array() | |
$_sPathToModuleDirectory = null |
Module files validator class.
Definition at line 9 of file oxmodulefilesvalidator.php.
oxModuleFilesValidator._addDirectorySeparatorAtTheEndIfNeeded | ( | $ | sPathToModuleDirectory | ) | [private] |
Check if path has directory separator at the end. Add it if needed.
strig | $sPathToModuleDirectory Module directory pat |
Definition at line 152 of file oxmodulefilesvalidator.php.
oxModuleFilesValidator._allFilesExists | ( | $ | aModuleExtendedFiles, | |
$ | blAddExtension = false , |
|||
$ | sListName = 'files' | |||
) | [private] |
Return true if all requested file exists.
array | $aModuleExtendedFiles of files which must exist. | |
bool | $blAddExtension if add .php extension to checked files. | |
string | $sListName if add .php extension to checked files. |
Definition at line 126 of file oxmodulefilesvalidator.php.
oxModuleFilesValidator._allModuleExtensionsExists | ( | $ | oModule | ) | [protected] |
Return true if all module files which extends shop class exists.
oxModule | $oModule object to validate metadata. |
Definition at line 93 of file oxmodulefilesvalidator.php.
oxModuleFilesValidator._allModuleFilesExists | ( | $ | oModule | ) | [protected] |
Return true if all module independent PHP files exist.
oxModule | $oModule object to validate metadata. |
Definition at line 108 of file oxmodulefilesvalidator.php.
oxModuleFilesValidator._resetMissingFiles | ( | ) | [protected] |
Resets missing files array.
Definition at line 81 of file oxmodulefilesvalidator.php.
oxModuleFilesValidator.getMissingFiles | ( | ) |
Get missing files which result to invalid module.
Definition at line 73 of file oxmodulefilesvalidator.php.
oxModuleFilesValidator.getPathToModuleDirectory | ( | ) |
Gets path to module directory.
Definition at line 31 of file oxmodulefilesvalidator.php.
oxModuleFilesValidator.setPathToModuleDirectory | ( | $ | sPathToModuleDirectory | ) |
Sets path to module directory.
string | $sPathToModuleDirectory |
Definition at line 45 of file oxmodulefilesvalidator.php.
oxModuleFilesValidator.validate | ( | oxModule $ | oModule | ) |
Validates module files. Return true if module files exists. Return false if at least one module file does not exist.
oxModule | $oModule object to validate metadata. |
Implements oxIModuleValidator.
Definition at line 59 of file oxmodulefilesvalidator.php.
oxModuleFilesValidator.$_aMissingFiles = array() [private] |
Definition at line 17 of file oxmodulefilesvalidator.php.
oxModuleFilesValidator.$_sPathToModuleDirectory = null [private] |
Definition at line 24 of file oxmodulefilesvalidator.php.