* Application.php, Registry.php: Return registry key of database for easier use of setDefaultDatabase()
/trunk/Registry.php |
---|
12,16 → 12,18 |
* @var array |
*/ |
protected static $_data = array(); |
/** |
* Puts data in storage |
* |
* @param string $key |
* @param mixed $value |
* @return mixed The stored value |
*/ |
public static function set($key, $value) |
{ |
self::$_data[$key] = $value; |
return self::get($key); |
} |
/** |