# Contract

abstract class Contract

## Traits

SearchFilter

## Properties

protected | $customFilter |  | from SearchFilter
protected | $page |  |
protected | $offset |  |
protected | $limit |  |
protected | $num_rows |  |
protected | $documents |  |
protected | $custom_fields |  |
protected | $criteria |  |
protected | $filter |  |
protected | $execute |  |
protected | $error |  |
| $query_time |  |
| $searchable_fields |  |
| $stop_words |  |

## Methods

setCustomFilter($filter)

No description

from SearchFilter
getFilter($opac, $build = false)

No description

from SearchFilter
getYears()

No description

from SearchFilter
getCollectionType()

No description

from SearchFilter
getGMD()

No description

from SearchFilter
getLocation()

No description

from SearchFilter
getLanguage()

No description

from SearchFilter
string
buildFilter($opac, $filters)

No description

from SearchFilter
reOrder($filters)

No description

from SearchFilter
__construct()

No description

void
setCriteria(Criteria $criteria)

No description

void
setFilter(Criteria $criteria)

No description

void
setLimit(int $limit)

No description

int
getLimit()

No description

int
getNumRows()

No description

string
getError()

No description

dump(array $query)

No description

getDocuments()

No description

toArray()

No description

toJSON()

No description

toHTML()

No description

toXML()

No description

toRSS()

No description

## Details

###
in SearchFilter at line 11
`setCustomFilter($filter)`

No description

#### Parameters

| $filter |

###
in SearchFilter at line 16
`getFilter($opac, $build = false)`

No description

#### Parameters

| $opac |
| $build |

###
in SearchFilter at line 102
`getYears()`

No description

###
in SearchFilter at line 108
`getCollectionType()`

No description

###
in SearchFilter at line 114
`getGMD()`

No description

###
in SearchFilter at line 120
`getLocation()`

No description

###
in SearchFilter at line 126
`getLanguage()`

No description

###
in SearchFilter at line 132
`string buildFilter($opac, $filters)`

No description

#### Parameters

| $opac |
| $filters |

#### Return Value

string |

###
in SearchFilter at line 237
`reOrder($filters)`

No description

#### Parameters

| $filters |

###
at line 44
`__construct()`

No description

###
at line 55
`void setCriteria(Criteria $criteria)`

No description

#### Parameters

Criteria | $criteria |

#### Return Value

void |

###
at line 63
`void setFilter(Criteria $criteria)`

No description

#### Parameters

Criteria | $criteria |

#### Return Value

void |

###
at line 71
`void setLimit(int $limit)`

No description

#### Parameters

int | $limit |

#### Return Value

void |

###
at line 79
`int getLimit()`

No description

#### Return Value

int |

###
at line 87
`int getNumRows()`

No description

#### Return Value

int |

###
at line 95
`string getError()`

No description

#### Return Value

string |

###
at line 100
`abstract dump(array $query)`

No description

#### Parameters

array | $query |

###
at line 102
`abstract getDocuments()`

No description

###
at line 104
`abstract toArray()`

No description

###
at line 106
`abstract toJSON()`

No description

###
at line 108
`abstract toHTML()`

No description

###
at line 110
`abstract toXML()`

No description

###
at line 112
`abstract toRSS()`

No description