Class Sylar_DataBaseManager

Description

DataBases manager This class manage all databases supported by Sylar

Located in /sylar/classes/common/db/DataBaseManager.php (line 38)


	
			
Method Summary
 Sylar_DataBaseManager __construct ()
 void __destruct ()
 Sylar_DataBaseDriver driverDispatcher (Sylar_DataBaseConfiguration $oDbConfig)
 boolean driverIsInstalled (string $sDriverName)
 string getDriverClassPath (Sylar_DataBaseConfiguration $oDbConfig)
Methods
Constructor __construct (line 44)
Sylar_DataBaseManager __construct ()
Destructor __destruct (line 47)
void __destruct ()
driverDispatcher (line 76)

Return the Db Object It return the DataBase Driver Interfaces Type with the right implementation.

The implementation dipends on Driver defined in the Configuration

  • access: public
Sylar_DataBaseDriver driverDispatcher (Sylar_DataBaseConfiguration $oDbConfig)
driverIsInstalled (line 59)

Check for installed driver It controls if the request driver is avaiable in Sylar Framework

  • access: public
boolean driverIsInstalled (string $sDriverName)
  • string $sDriverName: the driver name
getDefaultDbConfiguration (line 134)

Default Db Config It return the object with the default Database configuration, if doesn't exists return null

  • static:
  • access: public
Sylar_DataBaseConfiguration getDefaultDbConfiguration ()
getDriverClassPath (line 115)

Get Specified Db Class Path

It return the specified DataBase Driver classpath path for use it in the import function. It return something like: sylar.common.db.mysql sylar.common.db.oracle It depend on Driver defined in the configuration

  • access: public
string getDriverClassPath (Sylar_DataBaseConfiguration $oDbConfig)

Documentation generated on Thu, 24 Apr 2008 16:14:14 +0200 by phpDocumentor 1.3.0RC3