-
(mixed) getDatabase ($name)
Browse code
Retrieves the database connection associated with this sfDatabase implementation.
returns A Database instance
throws sfDatabaseException If the requested database name does not exist
-
Returns the names of all database connections.
returns An array containing all database connection names
-
(bool) initialize ($configuration)
Browse code
| $configuration |
A sfProjectConfiguration instance |
Initializes this sfDatabaseManager object
returns true, if initialization completes successfully, otherwise false
throws sfInitializationException If an error occurs while initializing this sfDatabaseManager object
-
Loads database configuration.
-
setDatabase ($name, $database)
Browse code
| $name |
The database name |
| $database |
A sfDatabase instance |
Sets a database connection.
-
Executes the shutdown procedure
throws sfDatabaseException If an error occurs while shutting down this DatabaseManager
-
Class constructor.