OXID eShop CE  6.4.2
OxidEsales\EshopCommunity\Core\Autoload\ModuleAutoload Class Reference
+ Collaboration diagram for OxidEsales\EshopCommunity\Core\Autoload\ModuleAutoload:

Static Public Member Functions

static autoload ($class)
 
static getInstance ()
 

Public Attributes

 $triedClasses = []
 

Protected Member Functions

 __construct ()
 
 getFilePath ($class)
 
 createExtensionClassChain ($class)
 

Private Member Functions

 __clone ()
 

Static Private Attributes

static $instance = null
 

Detailed Description

Deprecated:
6.6 Will be removed completely

Autoloader for module classes and extensions.

Constructor & Destructor Documentation

◆ __construct()

OxidEsales\EshopCommunity\Core\Autoload\ModuleAutoload::__construct ( )
protected

ModuleAutoload constructor.

Make constructor protected to ensure Singleton pattern

Member Function Documentation

◆ __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
string$classClass name.
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
string$class

◆ 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
string$class
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.

Member Data Documentation

◆ $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: