• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • Examples
  • File List

E:/E/GEAMP/www/openbiz/openbiz/others/Zend/Db/Statement/Pdo/Ibm.php

00001 <?php
00026 require_once 'Zend/Db/Statement/Pdo.php';
00027 
00040 class Zend_Db_Statement_Pdo_Ibm extends Zend_Db_Statement_Pdo
00041 {
00054     public function fetchAll($style = null, $col = null)
00055     {
00056         $data = parent::fetchAll($style, $col);
00057         $results = array();
00058         $remove = $this->_adapter->foldCase('ZEND_DB_ROWNUM');
00059 
00060         foreach ($data as $row) {
00061             if (is_array($row) && array_key_exists($remove, $row)) {
00062                 unset($row[$remove]);
00063             }
00064             $results[] = $row;
00065         }
00066         return $results;
00067     }
00068 
00080     public function _bindParam($parameter, &$variable, $type = null, $length = null, $options = null)
00081     {
00082         try {
00083             if (($type === null) && ($length === null) && ($options === null)) {
00084                 return $this->_stmt->bindParam($parameter, $variable);
00085             } else {
00086                 return $this->_stmt->bindParam($parameter, $variable, $type, $length, $options);
00087             }
00088         } catch (PDOException $e) {
00089             require_once 'Zend/Db/Statement/Exception.php';
00090             throw new Zend_Db_Statement_Exception($e->getMessage(), $e->getCode(), $e);
00091         }
00092     }
00093 
00094 }

Generated on Thu Apr 19 2012 17:01:17 for openbiz by  doxygen 1.7.2