ILIAS  release_8 Revision v8.24
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 array $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 21 of file class.arConnectorMap.php.

Member Function Documentation

◆ get()

static arConnectorMap::get ( ActiveRecord  $ar)
static

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

31 {
32 if (isset(self::$map[get_class($ar)]) && self::$map[get_class($ar)] instanceof arConnector) {
33 return self::$map[get_class($ar)];
34 }
35
36 return new arConnectorDB();
37 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class arConnector.

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

+ Here is the caller graph for this function:

◆ register()

Field Documentation

◆ $map

array arConnectorMap::$map = array()
staticprotected

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


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