original_string: 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;
          }
      }
code: 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;
          }
      }
code_tokens: 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 ; } }
docstring: 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
docstring_tokens: Set the PDO fetch mode .