Class ActiveRecord_Connection_Provider

Description

Implements interfaces:

ActiveRecord implementation of Support_Resources_DBProvider. This differs from the default implementation only in that it returns an instance of ActiveRecord_Connection instead of a plain PDO instance.

Located in /activerecord/lib/ActiveRecord/Connection/Provider.php (line 11)


	
			
Variable Summary
 mixed $connection
Method Summary
 ActiveRecord_Connection_Provider __construct ()
 void connect ()
 PDO get ([boolean $writer = true], [boolean $unique = false])
Variables
mixed $connection (line 12)
  • access: protected
Methods
Constructor __construct (line 17)

Constructor

  • access: public
ActiveRecord_Connection_Provider __construct ()
connect (line 40)

Connect to the database

  • access: protected
void connect ()
get (line 28)

Return an instance of a database connection.

  • access: public
PDO get ([boolean $writer = true], [boolean $unique = false])
  • boolean $writer: If true, the returned connection must be writing to the database (default is true)
  • boolean $unique: If true, forces the provider to return a unique, unshared connection (default is false)
get_new_connection (line 49)

Returns a new PDO connection

  • access: protected
void get_new_connection ()

Documentation generated on Wed, 25 Apr 2012 09:46:44 -0700 by phpDocumentor 1.4.3