OXID eShop CE  4.10.7
 All Classes Namespaces 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 25 of file oxregistry.php.

static oxRegistry::getConfig ( )
static

Returns oxConfig instance

Returns
oxConfig

Definition at line 67 of file oxregistry.php.

static oxRegistry::getKeys ( )
static

Return set instances.

Returns
array

Definition at line 113 of file oxregistry.php.

static oxRegistry::getLang ( )
static

Returns oxLang instance

Returns
oxLang

Definition at line 91 of file oxregistry.php.

static oxRegistry::getSession ( )
static

Returns oxSession instance

Returns
oxSession

Definition at line 79 of file oxregistry.php.

static oxRegistry::getUtils ( )
static

Returns oxUtils instance

Returns
oxUtils

Definition at line 103 of file oxregistry.php.

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

Instance setter

Parameters
string$sClassNameClass name
object$oInstanceObject instance
Returns
null

Definition at line 47 of file oxregistry.php.

Member Data Documentation

oxRegistry::$_aInstances = array()
staticprotected

Definition at line 14 of file oxregistry.php.


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