# DefaultEngine

class DefaultEngine extends Contract

## Traits

SearchFilter

## Properties

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

## 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

from Contract
void
setCriteria(Criteria $criteria)

No description

from Contract
void
setFilter(Criteria $criteria)

No description

from Contract
void
setLimit(int $limit)

No description

from Contract
int
getLimit()

No description

from Contract
int
getNumRows()

No description

from Contract
string
getError()

No description

from Contract
dump(array $sql)

No description

getDocuments()

No description

toArray()

No description

toJSON()

No description

toHTML()

No description

toXML()

No description

toRSS()

No description

array
buildSQL()

No description

string
buildCriteria($criteria)

No description

xmlAuthor($xml, $biblio_id)

No description

xmlAttachment($xml, $biblio_id)

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 |

###
in Contract at line 44
`__construct()`

No description

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

No description

#### Parameters

Criteria | $criteria |

#### Return Value

void |

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

No description

#### Parameters

Criteria | $criteria |

#### Return Value

void |

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

No description

#### Parameters

int | $limit |

#### Return Value

void |

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

No description

#### Return Value

int |

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

No description

#### Return Value

int |

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

No description

#### Return Value

string |

###
at line 606
`dump(array $sql)`

No description

#### Parameters

array | $sql |

###
at line 37
`getDocuments()`

No description

###
at line 386
`toArray()`

No description

###
at line 391
`toJSON()`

No description

###
at line 442
`toHTML()`

No description

###
at line 460
`toXML()`

No description

###
at line 601
`toRSS()`

No description

###
at line 67
`array buildSQL()`

No description

#### Return Value

array |

###
at line 133
`string buildCriteria($criteria)`

No description

#### Parameters

| $criteria |

#### Return Value

string |

###
at line 559
`xmlAuthor($xml, $biblio_id)`

No description

#### Parameters

| $xml |
| $biblio_id |

###
at line 580
`xmlAttachment($xml, $biblio_id)`

No description

#### Parameters

| $xml |
| $biblio_id |