OXID eShop CE  6.1.5
OxidEsales\EshopCommunity\Core\Module\ModuleTranslationPathFinder Class Reference

Public Member Functions

 findTranslationPath ($language, $admin, $modulePath)
 

Protected Member Functions

 getModulesDirectory ()
 
 hasUppercaseApplicationDirectory ($pathToModule)
 
 hasLowercaseApplicationDirectory ($pathToModule)
 
 directoryExists ($path)
 

Member Function Documentation

◆ directoryExists()

OxidEsales\EshopCommunity\Core\Module\ModuleTranslationPathFinder::directoryExists (   $path)
protected

Does the given path points to an existing directory?

Parameters
string$pathThe path we want to check, if itexists.
Returns
bool Does the given path points to an existing directory?

◆ findTranslationPath()

OxidEsales\EshopCommunity\Core\Module\ModuleTranslationPathFinder::findTranslationPath (   $language,
  $admin,
  $modulePath 
)

Find the full path of the translation in the given module.

Parameters
string$languageThe language short form. (e.g. 'de')
bool$adminAre we searching for the admin files?
string$modulePathThe relative (to the module directory) path to the module, in which we want to find the translations file.
Returns
string

◆ getModulesDirectory()

OxidEsales\EshopCommunity\Core\Module\ModuleTranslationPathFinder::getModulesDirectory ( )
protected

Getter for the modules directory.

Returns
string The modules directory.

◆ hasLowercaseApplicationDirectory()

OxidEsales\EshopCommunity\Core\Module\ModuleTranslationPathFinder::hasLowercaseApplicationDirectory (   $pathToModule)
protected

Check, if the module directory has an folder called 'application'.

Parameters
string$pathToModuleThe path to the module to check.
Returns
bool Has the given module a folder 'application'?

◆ hasUppercaseApplicationDirectory()

OxidEsales\EshopCommunity\Core\Module\ModuleTranslationPathFinder::hasUppercaseApplicationDirectory (   $pathToModule)
protected

Check, if the module directory has an folder called 'Application'.

Parameters
string$pathToModuleThe path to the module to check.
Returns
bool Has the given module a folder Application?

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