mojavi
[ class tree: mojavi ] [ index: mojavi ] [ all elements ]

Class: DatabaseManager

Source Location: /database/DatabaseManager.class.php

Class Overview

MojaviObject
   |
   --DatabaseManager

DatabaseManager allows you to setup your database connectivity before the request is handled. This eliminates the need for a filter to manage database connections.


Author(s):

  • Sean Kerr (skerr@mojavi.org)

Version:

  • $Id: DatabaseManager.class.php 580 2004-12-06 03:15:21Z seank $

Copyright:

Methods


Inherited Methods

Class: MojaviObject

MojaviObject::toString()
Retrieve a string representation of this object.

Class Details

[line 25]
DatabaseManager allows you to setup your database connectivity before the request is handled. This eliminates the need for a filter to manage database connections.



Tags:

version:  $Id: DatabaseManager.class.php 580 2004-12-06 03:15:21Z seank $
since:  3.0.0
copyright:  (c) Sean Kerr, http://www.mojavi.org
author:  Sean Kerr (skerr@mojavi.org)


[ Top ]


Class Methods


method getDatabase [line 50]

mixed getDatabase( [string $name = 'default'])

Retrieve the database connection associated with this Database implementation.



Tags:

return:  A Database instance.
access:  public
throws:  DatabaseException If the requested database name does not exist.


Parameters:

string   $name   A database name.

[ Top ]

method initialize [line 82]

bool initialize( )

Initialize this DatabaseManager.



Tags:

return:  true, if initialization completes successfully, otherwise false.
access:  public
since:  3.0.0
author:  Sean Kerr (skerr@mojavi.org)
throws:  InitializationException If an error occurs while initializing this DatabaseManager.


[ Top ]

method shutdown [line 103]

void shutdown( )

Execute the shutdown procedure.



Tags:

access:  public
since:  3.0.0
author:  Sean Kerr (skerr@mojavi.org)
throws:  DatabaseException If an error occurs while shutting down this DatabaseManager.


[ Top ]


Documentation generated on Tue, 21 Feb 2006 01:45:15 +0900 by phpDocumentor 1.3.0RC5