ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 33 of file class.arConnectorMap.php.

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

34  {
35  if (self::$map[get_class($ar)] instanceof arConnector) {
36  return self::$map[get_class($ar)];
37  }
38 
39  return new arConnectorDB();
40  }
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 22 of file class.arConnectorMap.php.

Referenced by ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistenceTest\testCannotUpdateUnknownBucket().

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

Field Documentation

◆ $map

arConnectorMap::$map = array()
staticprotected

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


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