classes/phing/tasks/ext/pdo/PDOSQLExecTask.php
public function setFetchmode($mode)
    {
        if (is_numeric($mode)) {
            $this->fetchMode = (int) $mode;
        } else {
            if (defined($mode)) {
                $this->fetchMode = constant($mode);
            } else {
                throw new BuildException("Invalid PDO fetch mode specified: " . $mode, $this->getLocation());
            }
        }
    }
public function setFetchmode($mode)
    {
        if (is_numeric($mode)) {
            $this->fetchMode = (int) $mode;
        } else {
            if (defined($mode)) {
                $this->fetchMode = constant($mode);
            } else {
                throw new BuildException("Invalid PDO fetch mode specified: " . $mode, $this->getLocation());
            }
        }
    }
public function setFetchmode ( $ mode ) { if ( is_numeric ( $ mode ) ) { $ this -> fetchMode = ( int ) $ mode ; } else { if ( defined ( $ mode ) ) { $ this -> fetchMode = constant ( $ mode ) ; } else { throw new BuildException ( "Invalid PDO fetch mode specified: " . $ mode , $ this -> getLocation ( ) ) ; } } }
Sets the fetch mode to use for the PDO resultset.

@param  mixed $mode The PDO fetchmode integer or constant name.
@throws BuildException
Sets the fetch mode to use for the PDO resultset .