Class PHRUTS_DataSourceFactory

Description

Factory for data source instances.

The general usage pattern for this class is:

  • Call createFactory to retrieve a PHRUTS_DataSourceFactory instance.
  • Call the createDataSource method of the factory to retrieve a newly instantiated data source instance.

  • author: John WILDENAUER <jwilde@users.sourceforge.net> (PHP4 port of Struts)
  • author: Olivier HENRY <oliv.henry@gmail.com> (PHP5 port of Struts)
  • version: $Id: PHRUTS_DataSourceFactory.php,v 1.2 2008/05/28 15:52:27 ohenry Exp $
  • copyright: Copyright PHruts 2008
  • abstract:

Located in /util/PHRUTS_DataSourceFactory.php (line 38)


	
			
Direct descendents
Class Description
PHRUTS_PDODataSourceFactory Factory for PDO data source instances.
Variable Summary
Method Summary
static string getFactoryClass ()
static void setFactoryClass (string $factoryClass)
object createDataSource ()
void setConfig ( $config)
Variables
static string $factoryClass =
'phruts::util::PHRUTS_PDODataSourceFactory'
(line 45)

The fully qualified class name to be used for PHRUTS_DataSourceFactory instances.

  • access: protected
PHRUTS_DataSourceConfig $config = null (line 67)

Data source configuration.

  • access: protected
Methods
static method createFactory (line 90)

Create and return a PHRUTS_DataSourceFactory instance of the appropriate class, which can be used to create customized data source instances.

  • access: public
static PHRUTS_DataSourceFactory createFactory ( $config)
static method getFactoryClass (line 51)
  • access: public
static string getFactoryClass ()
static method setFactoryClass (line 58)
  • access: public
static void setFactoryClass (string $factoryClass)
  • string $factoryClass
createDataSource (line 111)

Create a data source object.

  • abstract:
  • throws: Exception
  • access: public
object createDataSource ()

Redefined in descendants as:
getConfig (line 72)
  • access: public
setConfig (line 79)
  • access: public
void setConfig ( $config)

Documentation generated on Sat, 31 May 2008 15:46:03 +0200 by phpDocumentor 1.4.1