ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.arConnectorMap.php
Go to the documentation of this file.
1
<?
php
2
9
class
arConnectorMap
10
{
11
15
protected
static
$map
= array();
16
17
22
public
static
function
register
(
ActiveRecord
$ar,
arConnector
$connector)
23
{
24
self::$map
[get_class($ar)] = $connector;
25
}
26
27
33
public
static
function
get
(
ActiveRecord
$ar)
34
{
35
if
(
self::$map
[get_class($ar)] instanceof
arConnector
) {
36
return
self::$map
[get_class($ar)];
37
}
38
39
return
new
arConnectorDB
();
40
}
41
}
arConnectorDB
Class arConnectorDB.
Definition:
class.arConnectorDB.php:12
ActiveRecord
Class ActiveRecord.
Definition:
class.ActiveRecord.php:24
arConnectorMap\$map
static $map
Definition:
class.arConnectorMap.php:15
arConnector
Class arConnector.
Definition:
class.arConnector.php:12
arConnectorMap
Class arConnectorMap.
Definition:
class.arConnectorMap.php:9
php
$map
$map
Definition:
fetch_windows_zones.php:13
Services
ActiveRecord
Connector
class.arConnectorMap.php
Generated on Thu Jan 30 2025 19:01:51 for ILIAS by
1.8.13 (using
Doxyfile
)