ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.arConnectorMap.php
Go to the documentation of this file.
1 <?php
2 
10 
14  protected static $map = array();
15 
16 
21  public static function register(ActiveRecord $ar, arConnector $connector) {
22  self::$map[get_class($ar)] = $connector;
23  }
24 
25 
31  public static function get(ActiveRecord $ar) {
32  if (self::$map[get_class($ar)] instanceof arConnector) {
33  return self::$map[get_class($ar)];
34  }
35 
36  return new arConnectorDB();
37  }
38 }
39 
40 ?>
Class arConnectorDB.
Class ActiveRecord.
Class arConnector.
Class arConnectorMap.
Create styles array
The data for the language used.