# \CGExtensions\queryquery

An abstract class to provide the basic interface for a query class.

descendents of this class should implement at least the limit, and offset parameters to allow the pagination class to work.

This class supports accessing members as either object members with the -> operator, or as array members with the [] operator.

## Summary

Methods
Properties
Constants
__construct()
OffsetGet()
OffsetSet()
OffsetExists()
OffsetUnset()
execute()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A
abstract

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

## Tags

todo |

## Methods

### __construct()

    __construct(array $parms)

Constructor.

This method accepts an array of parameters, and sets internal data for the query object. Identically to calling $this['key'] = $val multiple times.

#### Parameters

array | $parms |

#

abstract

## Tags

todo |

### OffsetGet()

    OffsetGet(string $key) : mixed

Return the value of a currently set variable.

#### Parameters

string | $key |

#### Returns

mixed

#

abstract

## Tags

todo |

### OffsetSet()

    OffsetSet(string $key, mixed $value)

Set a value into the query object.

#### Parameters

string | $key |
mixed | $value |

#

abstract

## Tags

todo |

### OffsetExists()

    OffsetExists(string $key) : bool

Test if the key is set in the data object.

#### Parameters

string | $key |

#### Returns

bool

#

abstract

## Tags

todo |

### OffsetUnset()

    OffsetUnset(string $key)

Unset a variable in the object

#### Parameters

string | $key |

#

## Tags

todo |

### execute()

    execute() : \CGExtensions\query\resultset

Execute the query and return the resultset

#### Returns

\CGExtensions\query\resultset

#

abstract

## Tags

todo |

### class.query.php