OXID eShop CE  4.8.11
 All Classes Files Functions Variables Pages
oxRegistry Class Reference
+ Collaboration diagram for oxRegistry:

Static Public Member Functions

static get ($sClassName)
static set ($sClassName, $oInstance)
static getConfig ()
static getSession ()
static getLang ()
static getUtils ()
static getKeys ()

Static Protected Attributes

static $_aInstances = array()

Detailed Description

Object registry design pattern implementation. Stores the instances of objects

Definition at line 6 of file oxregistry.php.

Member Function Documentation

static oxRegistry::get (   $sClassName)
static

Instance getter. Return existing instance or initializes the new one

Parameters
string$sClassNameClass name
Returns
Object

Definition at line 24 of file oxregistry.php.

static oxRegistry::getConfig ( )
static

Returns OxConfig instance

Returns
OxConfig

Definition at line 64 of file oxregistry.php.

static oxRegistry::getKeys ( )
static

Return set instances.

Returns
array

Definition at line 110 of file oxregistry.php.

static oxRegistry::getLang ( )
static

Returns oxLang instance

Returns
oxLang

Definition at line 88 of file oxregistry.php.

static oxRegistry::getSession ( )
static

Returns OxSession instance

Returns
OxSession

Definition at line 76 of file oxregistry.php.

static oxRegistry::getUtils ( )
static

Returns oxUtils instance

Returns
oxUtils

Definition at line 100 of file oxregistry.php.

static oxRegistry::set (   $sClassName,
  $oInstance 
)
static

Instance setter

Parameters
string$sClassNameClass name
object$oInstanceObject instance
Returns
null

Definition at line 45 of file oxregistry.php.

Member Data Documentation

oxRegistry::$_aInstances = array()
staticprotected

Definition at line 13 of file oxregistry.php.


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