-
Connects to the database.
throws sfDatabaseException If a connection could not be created
-
(mixed) getConnection ()
Browse code
Retrieves the database connection associated with this sfDatabase implementation.
When this is executed on a Database implementation that isn't an
abstraction layer, a copy of the resource will be returned.
returns A database connection
throws sfDatabaseException If a connection could not be retrieved
-
(string) getParameter (, , )
Browse code
Gets the parameter associated with the given key.
This is a shortcut for:
$this->getParameterHolder()->get()
returns The value associated with the key
-
(sfParameterHolder) getParameterHolder ()
Browse code
Gets the parameter holder for this object.
returns A sfParameterHolder instance
-
(mixed) getResource ()
Browse code
Retrieves a raw database resource associated with this sfDatabase implementation.
returns A database resource
throws sfDatabaseException If a resource could not be retrieved
-
(boolean) hasParameter (, )
Browse code
Returns true if the given key exists in the parameter holder.
This is a shortcut for:
$this->getParameterHolder()->has()
returns true if the given key exists, false otherwise
-
Initializes this sfDatabase object.
returns true, if initialization completes successfully, otherwise false
throws sfInitializationException If an error occurs while initializing this sfDatabase object
-
Sets the value for the given key.
This is a shortcut for:
$this->getParameterHolder()->set()
-
Executes the shutdown procedure.
throws sfDatabaseException If an error occurs while shutting down this database