- Deprecated:
- 6.6 Will be removed completely
Autoloader for module classes and extensions.
◆ __construct()
OxidEsales\EshopCommunity\Core\Autoload\ModuleAutoload::__construct |
( |
| ) |
|
|
protected |
ModuleAutoload constructor.
Make constructor protected to ensure Singleton pattern
◆ __clone()
OxidEsales\EshopCommunity\Core\Autoload\ModuleAutoload::__clone |
( |
| ) |
|
|
private |
Magic clone method.
Make method private to ensure Singleton pattern
◆ autoload()
static OxidEsales\EshopCommunity\Core\Autoload\ModuleAutoload::autoload |
( |
|
$class | ) |
|
|
static |
Tries to autoload given class. If class was not found in module files array, checks module extensions.
- Parameters
-
- Returns
- bool
◆ createExtensionClassChain()
OxidEsales\EshopCommunity\Core\Autoload\ModuleAutoload::createExtensionClassChain |
( |
|
$class | ) |
|
|
protected |
When module is extending other module's extension (module class, which is extending shop class), this class comes to autoload and class chain has to be created.
- Parameters
-
◆ getFilePath()
OxidEsales\EshopCommunity\Core\Autoload\ModuleAutoload::getFilePath |
( |
|
$class | ) |
|
|
protected |
Tries to find file path for given class. Returns empty string on path not found.
- Parameters
-
- Returns
- string
◆ getInstance()
static OxidEsales\EshopCommunity\Core\Autoload\ModuleAutoload::getInstance |
( |
| ) |
|
|
static |
Returns the singleton instance of this class or of a sub class of this class.
- Returns
- ModuleAutoload The singleton instance.
◆ $instance
OxidEsales\EshopCommunity\Core\Autoload\ModuleAutoload::$instance = null |
|
staticprivate |
◆ $triedClasses
OxidEsales\EshopCommunity\Core\Autoload\ModuleAutoload::$triedClasses = [] |
The documentation for this class was generated from the following file: