Gdn_DataSet::previousRow PHP Method

previousRow() public method

Returns the previous row in the requested format.
public previousRow ( string $DatasetType = false )
$DatasetType string The format in which the result should be returned: object or array.
    public function &previousRow($DatasetType = false)
    {
        $Result =& $this->result($DatasetType);
        --$this->_Cursor;
        if (isset($Result[$this->_Cursor])) {
            return $Result[$this->_Cursor];
        }
        return $this->_EOF;
    }