symfony API

sfDatabaseManager Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

Packages

You are currently browsing the symfony API for the 1.0 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

sfDatabaseManager allows you to setup your database connectivity before the

Method Summary

  • mixed getDatabase()
    Retrieves the database connection associated with this sfDatabase implementation.
  • bool initialize()
    Initializes this sfDatabaseManager object
  • void shutdown()
    Executes the shutdown procedure

Method Details

  • (mixed) getDatabase ()

    Retrieves the database connection associated with this sfDatabase implementation.

    returns A Database instance

    throws sfDatabaseException If the requested database name does not exist

  • (bool) initialize ()

    Initializes this sfDatabaseManager object

    returns true, if initialization completes successfully, otherwise false

    throws sfInitializationException If an error occurs while initializing this sfDatabaseManager object

  • (void) shutdown ()

    Executes the shutdown procedure

    throws sfDatabaseException If an error occurs while shutting down this DatabaseManager