OXID eShop CE  6.1.5
OxidEsales\EshopCommunity\Setup\Core Class Reference
+ Inheritance diagram for OxidEsales\EshopCommunity\Setup\Core:
+ Collaboration diagram for OxidEsales\EshopCommunity\Setup\Core:

Public Member Functions

 getInstance ($sInstanceName)
 
 __call ($sMethod, $aArgs)
 

Protected Member Functions

 getClass ($sInstanceName)
 
 getSetupInstance ()
 
 getLanguageInstance ()
 
 getUtilitiesInstance ()
 
 getSessionInstance ()
 
 getDatabaseInstance ()
 
 userDecidedOverwriteDB ()
 
 userDecidedIgnoreDBWarning ()
 

Static Protected Attributes

static $_aInstances = []
 

Private Member Functions

 classExists ($className)
 

Detailed Description

Core setup class, setup instance holder

Member Function Documentation

◆ __call()

OxidEsales\EshopCommunity\Setup\Core::__call (   $sMethod,
  $aArgs 
)

Only used for convenience in UNIT tests by doing so we avoid writing extended classes for testing protected or private methods

Parameters
string$sMethodMethods name
array$aArgsArgument array
Exceptions
oxSystemComponentExceptionThrows an exception if the called method does not exist or is not accessable in current class
Returns
string

◆ classExists()

OxidEsales\EshopCommunity\Setup\Core::classExists (   $className)
private

Check if class exists. Ignore autoloader exceptions which might appear if database does not exist.

Parameters
string$className
Returns
bool

◆ getClass()

OxidEsales\EshopCommunity\Setup\Core::getClass (   $sInstanceName)
protected

Methods returns class according edition.

Parameters
string$sInstanceName
Returns
string

◆ getDatabaseInstance()

OxidEsales\EshopCommunity\Setup\Core::getDatabaseInstance ( )
protected
Returns
Database

◆ getInstance()

OxidEsales\EshopCommunity\Setup\Core::getInstance (   $sInstanceName)

Returns requested instance object

Parameters
string$sInstanceNameinstance name
Returns
Core

◆ getLanguageInstance()

OxidEsales\EshopCommunity\Setup\Core::getLanguageInstance ( )
protected
Returns
Language

◆ getSessionInstance()

OxidEsales\EshopCommunity\Setup\Core::getSessionInstance ( )
protected
Returns
Session

◆ getSetupInstance()

OxidEsales\EshopCommunity\Setup\Core::getSetupInstance ( )
protected
Returns
Setup

◆ getUtilitiesInstance()

OxidEsales\EshopCommunity\Setup\Core::getUtilitiesInstance ( )
protected
Returns
Utilities

◆ userDecidedIgnoreDBWarning()

OxidEsales\EshopCommunity\Setup\Core::userDecidedIgnoreDBWarning ( )
protected

Return true if user already decided to ignore database recommended version related warnings.

Returns
bool

◆ userDecidedOverwriteDB()

OxidEsales\EshopCommunity\Setup\Core::userDecidedOverwriteDB ( )
protected

Return true if user already decided to overwrite database.

Returns
bool

Member Data Documentation

◆ $_aInstances

OxidEsales\EshopCommunity\Setup\Core::$_aInstances = []
staticprotected

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