- Timestamp:
- 04/14/07 21:30:40 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/rdbms/stubDatabaseConnectionPool.php
r400 r527 32 32 */ 33 33 protected static $connectionData = array(); 34 34 35 35 /** 36 36 * returns a connection … … 65 65 return self::$connections[$id]; 66 66 } 67 67 68 68 /** 69 69 * adds connection data to the list of known connection data … … 75 75 self::$connectionData[$connectionData->getId()] = $connectionData; 76 76 } 77 77 78 78 /** 79 79 * checks whether connection data for a given id is available … … 86 86 return isset(self::$connectionData[$id]); 87 87 } 88 88 89 89 /** 90 90 * returns the connection data for a given id … … 101 101 return null; 102 102 } 103 103 104 /** 105 * returns a list of all ids of all connection data objects in the pool 106 * 107 * @return array<string> 108 */ 109 public static function getConnectionDataIds() 110 { 111 return array_keys(self::$connectionData); 112 } 113 104 114 /** 105 115 * removes the connection data with the given id … … 111 121 if (isset(self::$connectionData[$id]) == true) { 112 122 self::$connectionData[$id] = null; 123 unset(self::$connectionData[$id]); 113 124 } 114 125 } 115 126 116 127 /** 117 128 * closes the connection with the given id … … 128 139 } 129 140 } 130 141 131 142 /** 132 143 * sets a connection for the given id
