ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
arConnectorMap Class Reference

Class arConnectorMap. More...

+ Collaboration diagram for arConnectorMap:

Static Public Member Functions

static register (ActiveRecord $ar, arConnector $connector)
static get (ActiveRecord $ar)

Static Protected Attributes

static $map = array()

Detailed Description

Class arConnectorMap.

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Version
1.0.0

Definition at line 9 of file class.arConnectorMap.php.

Member Function Documentation

static arConnectorMap::get ( ActiveRecord  $ar)
static
Parameters
ActiveRecord$ar
Returns
arConnector

Definition at line 31 of file class.arConnectorMap.php.

{
if (self::$map[get_class($ar)] instanceof arConnector) {
return self::$map[get_class($ar)];
}
return new arConnectorDB();
}
static arConnectorMap::register ( ActiveRecord  $ar,
arConnector  $connector 
)
static
Parameters
ActiveRecord$ar
arConnector$connector

Definition at line 21 of file class.arConnectorMap.php.

Referenced by ActiveRecord\__construct().

{
self::$map[get_class($ar)] = $connector;
}

+ Here is the caller graph for this function:

Field Documentation

arConnectorMap::$map = array()
staticprotected

Definition at line 14 of file class.arConnectorMap.php.


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