Class XML_Query2XML_Driver_PDO

Description

Driver for the database abstraction layer PDO.

usage:

  1.  $driver XML_Query2XML_Driver::factory(new PDO(...));

Located in /Query2XML/Driver/PDO.php (line 38)

XML_Query2XML_Driver
   |
   --XML_Query2XML_Driver_PDO
Method Summary
XML_Query2XML_Driver_PDO __construct ( $db)
array getAllRecords (mixed $sql, string $configPath)
Methods
Constructor __construct (line 54)

Constructor

  • throws: XML_Query2XML_DBException If PDO::ATTR_ERRMODE cannot be set to PDO::ERRMODE_EXCEPTION.
  • access: public
XML_Query2XML_Driver_PDO __construct ( $db)
  • PDO $db: An instance of PDO.
getAllRecords (line 76)

Execute a SQL SELECT stement and fetch all records from the result set.

array getAllRecords (mixed $sql, string $configPath)
  • mixed $sql: The SQL query as a string or an array.
  • string $configPath: The config path; used for exception messages.

Redefinition of:
XML_Query2XML_Driver::getAllRecords()
This method, when implemented executes the query passed as the first argument and returns all records from the result set.

Inherited Methods

Inherited From XML_Query2XML_Driver

XML_Query2XML_Driver::factory()
XML_Query2XML_Driver::getAllRecords()
XML_Query2XML_Driver::preprocessQuery()

Documentation generated on Sun, 03 Apr 2011 13:13:09 +0200 by phpDocumentor 1.4.1