Source for file DbAdaptor.php

Documentation is available at DbAdaptor.php

  1. <?php
  2. class My_DbAdaptor extends Zend_Db_Adapter_Pdo_Mysql  
  3.          
  4. /** 
  5.  * Wrapper function for query function to allow for nicer debugging
  6.  * 
  7.  * @param string|Zend_Db_Select$sql The SQL statement with placeholders.
  8.  * @param array $bind An array of data to bind to the placeholders.
  9.  * @return Zend_Db_Pdo_Statement 
  10.  * @throws Exception To re-throw PDOException.
  11.  */ 
  12. public function query($sql$bind array()) 
  13.   try 
  14.     return parent::query($sql$bind)
  15.   catch (Exception $e
  16.     //check if website is live or local. if live, email and supress error, if 
  17.     //local then spit out error message including the sql and bind params 
  18.  
  19.     throw $e
  20.   
  21. public function factory()
  22. {
  23. parent::factory();
  24. }
  25. }

Documentation generated on Fri, 27 Mar 2009 13:48:31 +0000 by phpDocumentor 1.4.1