ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.arConnectorMap.php
Go to the documentation of this file.
1 <?php
2 
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 }
Class arConnectorDB.
Class ActiveRecord.
Class arConnector.
Class arConnectorMap.
Create styles array
The data for the language used.