SystemUpdateConnectionMapper Class Reference
Allows switching complete modules to another DB connection. More...
Static Public Member Functions |
|
static | get_all_connections () |
Return all connections, kind of SELECT
DISTINCT. |
|
static | get_module_connection ($module) |
Return conenction for given module. |
|
static | set_module_connection ($module, $connection) |
Set module connection. |
|
Static Public Attributes |
|
static | $connections = array() |
Detailed Description
Allows switching complete modules to another DB connection.
Definition at line 5 of file systemupdateconnectionmapper.cls.php.
Member Function Documentation
static SystemUpdateConnectionMapper::get_all_connections | ( | ) | [static] |
Return all connections, kind of SELECT DISTINCT.
- Returns:
- array
Definition at line 13 of file systemupdateconnectionmapper.cls.php.
00013 { 00014 $ret = array(); 00015 foreach(self::$connections as $module => $connection) { 00016 $ret[$connection] = $connection; 00017 } 00018 $ret[DB::DEFAULT_CONNECTION] = DB::DEFAULT_CONNECTION; 00019 return $ret; 00020 }
static SystemUpdateConnectionMapper::get_module_connection | ( | $ | module | ) | [static] |
Return conenction for given module.
Definition at line 25 of file systemupdateconnectionmapper.cls.php.
00025 { 00026 return Arr::get_item(self::$connections, $module, DB::DEFAULT_CONNECTION); 00027 }
static SystemUpdateConnectionMapper::set_module_connection | ( | $ | module, | |
$ | connection | |||
) | [static] |
Set module connection.
Definition at line 32 of file systemupdateconnectionmapper.cls.php.
Member Data Documentation
SystemUpdateConnectionMapper::$connections =
array() [static] |
Definition at line 6 of file systemupdateconnectionmapper.cls.php.
The documentation for this class was generated from the following file:
- gyro/modules/systemupdate/lib/components/systemupdateconnectionmapper.cls.php