public function setFetchMode($mode)
    {
        //check for PDO extension
        if (!extension_loaded('pdo')) {
            /**
             * @see Zend_Db_Adapter_Exception
             */
            // require_once 'Zend/Db/Adapter/Exception.php';
            throw new Zend_Db_Adapter_Exception('The PDO extension is required for this adapter but the extension is not loaded');
        }
        switch ($mode) {
            case PDO::FETCH_LAZY:
            case PDO::FETCH_ASSOC:
            case PDO::FETCH_NUM:
            case PDO::FETCH_BOTH:
            case PDO::FETCH_NAMED:
            case PDO::FETCH_OBJ:
                $this->_fetchMode = $mode;
                break;
            default:
                /**
                 * @see Zend_Db_Adapter_Exception
                 */
                // require_once 'Zend/Db/Adapter/Exception.php';
                throw new Zend_Db_Adapter_Exception("Invalid fetch mode '$mode' specified");
                break;
        }
    }
public function setFetchMode($mode)
    {
        //check for PDO extension
        if (!extension_loaded('pdo')) {
            /**
             * @see Zend_Db_Adapter_Exception
             */
            // require_once 'Zend/Db/Adapter/Exception.php';
            throw new Zend_Db_Adapter_Exception('The PDO extension is required for this adapter but the extension is not loaded');
        }
        switch ($mode) {
            case PDO::FETCH_LAZY:
            case PDO::FETCH_ASSOC:
            case PDO::FETCH_NUM:
            case PDO::FETCH_BOTH:
            case PDO::FETCH_NAMED:
            case PDO::FETCH_OBJ:
                $this->_fetchMode = $mode;
                break;
            default:
                /**
                 * @see Zend_Db_Adapter_Exception
                 */
                // require_once 'Zend/Db/Adapter/Exception.php';
                throw new Zend_Db_Adapter_Exception("Invalid fetch mode '$mode' specified");
                break;
        }
    }
public function setFetchMode ( $ mode ) { //check for PDO extension if ( ! extension_loaded ( 'pdo' ) ) { /**
             * @see Zend_Db_Adapter_Exception
             */ // require_once 'Zend/Db/Adapter/Exception.php'; throw new Zend_Db_Adapter_Exception ( 'The PDO extension is required for this adapter but the extension is not loaded' ) ; } switch ( $ mode ) { case PDO :: FETCH_LAZY : case PDO :: FETCH_ASSOC : case PDO :: FETCH_NUM : case PDO :: FETCH_BOTH : case PDO :: FETCH_NAMED : case PDO :: FETCH_OBJ : $ this -> _fetchMode = $ mode ; break ; default : /**
                 * @see Zend_Db_Adapter_Exception
                 */ // require_once 'Zend/Db/Adapter/Exception.php'; throw new Zend_Db_Adapter_Exception ( "Invalid fetch mode '$mode' specified" ) ; break ; } }
Set the PDO fetch mode.

@todo Support FETCH_CLASS and FETCH_INTO.

@param int $mode A PDO fetch mode.
@return void
@throws Zend_Db_Adapter_Exception
Set the PDO fetch mode .