ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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

◆ get()

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

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

Referenced by ActiveRecord\getArConnector(), and ActiveRecordList\getArConnector().

31  {
32  if (self::$map[get_class($ar)] instanceof arConnector) {
33  return self::$map[get_class($ar)];
34  }
35 
36  return new arConnectorDB();
37  }
Class arConnectorDB.
Class arConnector.
+ Here is the caller graph for this function:

◆ register()

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().

21  {
22  self::$map[get_class($ar)] = $connector;
23  }
+ Here is the caller graph for this function:

Field Documentation

◆ $map

arConnectorMap::$map = array()
staticprotected

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


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