# \CGExtensions\querybase_resultset

An abstract class to query the database and manage the results.

## Summary

Methods
Properties
Constants
__construct()
get_query()
RecordCount()
MoveNext()
MoveFirst()
Rewind()
MoveLast()
EOF()
Close()
TotalMatches()
get_object()
get_pagination()
FetchAll()
No public properties found
No constants found
_query()
$_filter
$_totalmatching
N/A
No private methods found
No private properties found
N/A
abstract

File
  lib/query/class.base_resultset.php
Class hierarchy
  \CGExtensions\query\base_resultset

## Tags

todo |

## Properties

### $_filter

    $_filter

The current filter object.

#

## Tags

todo |

### $_totalmatching

    $_totalmatching

The total number of records matching the query (independent of limit and offset)

#

## Tags

todo |

## Methods

### __construct()

    __construct(\CGExtensions\query\query $query)

The constructor

#### Parameters

\CGExtensions\query\query | $query |

#

## Tags

todo |

### get_query()

    get_query() : \CGExtensions\query\query

Return the query object

#### Returns

\CGExtensions\query\query

#

## Tags

todo |

### RecordCount()

    RecordCount() : int

Get the number of records returned in this recordset.

#### Returns

int

#

abstract

## Tags

todo |

### MoveNext()

    MoveNext()

Move the pointer to the next matching row in the recordset.

#

abstract

## Tags

todo |

### MoveFirst()

    MoveFirst()

Move the pointer to the first matching row in the recordset.

#

abstract

## Tags

todo |

### Rewind()

    Rewind()

Move the pointer to the first matching row in the recordset.

#

abstract

## Tags

todo |

### MoveLast()

    MoveLast()

Move the pointer to the last matching row in the recordset.

#

abstract

## Tags

todo |

### EOF()

    EOF() : bool

Test if the pointer is at the end of the recordset (there are no more records)

#### Returns

bool

#

abstract

## Tags

todo |

### Close()

    Close()

Close the recordset, and free resources.

#

abstract

## Tags

todo |

### TotalMatches()

    TotalMatches() : int

return the total number of matches (independent of limit and offset)

#### Returns

int

#

abstract

## Tags

todo |

### get_object()

    get_object() : object

Get an object representing the data at the current pointer position

#### Returns

object

#

abstract

## Tags

todo |

### get_pagination()

    get_pagination() : \CGExtensions\query\pagination

Get a pagination object for this query and resultset

#### Returns

\CGExtensions\query\pagination

#

abstract

## Tags

todo |

### FetchAll()

    FetchAll() : object[]

Fetch all of the records in this resultset as an array of objects.

#### Returns

object[]

#

abstract

## Tags

todo |

### _query()

    _query()

Use the data from the query object, perform the database query and set the recordset member.

This method should first see if the recordset has been set and not repeat the query... for the same of optimal behavior.

#

abstract

## Tags

todo |

### class.base_resultset.php