# QueryFilter

class QueryFilter

Database Query Filter

## Constants

FILTER_FETCH_CHILDREN |
FILTER_PARENT_ID |
FILTER_RELATION_TYPE |

## Properties

protected integer | $limit | Query item count limitation |
protected multiple: | $filters | Query item filter (where) |

## Methods

__construct($limit = null)

Constructor

QueryFilter
setLimit(integer $limit)

Limit Setter

integer
getLimit()

Limit Getter

bool
isLimit()

No description

QueryFilter
setFilters(array $filters)

Filters Setter

multiple:
getFilters()

Filters Getter

QueryFilter
addFilter(string $key, string $value)

Add one Filter

boolean
deleteFilter(string $key)

Delete one Filter

boolean
isFilter(string $key)

No description

mixed|NULL
getFilter(string $key)

No description

boolean
overrideFilter(string $oldKey, string $newKey, mixed $value = null)

No description

set(stdClass $obj)

Setter

## Details

###
at line 45
`__construct($limit = null)`

Constructor

#### Parameters

| $limit |

###
at line 60
`QueryFilter setLimit(integer $limit)`

Limit Setter

#### Parameters

integer | $limit |

#### Return Value

QueryFilter |

###
at line 71
`integer getLimit()`

Limit Getter

#### Return Value

integer |

###
at line 79
`bool isLimit()`

#### Return Value

bool |

###
at line 90
`QueryFilter setFilters(array $filters)`

Filters Setter

#### Parameters

array | $filters | string $filters

#### Return Value

QueryFilter |

###
at line 101
`multiple: getFilters()`

Filters Getter

#### Return Value

multiple: | string

###
at line 113
`QueryFilter addFilter(string $key, string $value)`

Add one Filter

#### Parameters

string | $key | Filter key
string | $value | Filter value

#### Return Value

QueryFilter |

###
at line 129
`boolean deleteFilter(string $key)`

Delete one Filter

#### Parameters

string | $key |

#### Return Value

boolean |

###
at line 145
`boolean isFilter(string $key)`

#### Parameters

string | $key |

#### Return Value

boolean |

###
at line 155
`mixed|NULL getFilter(string $key)`

#### Parameters

string | $key |

#### Return Value

mixed|NULL |

###
at line 171
`boolean overrideFilter(string $oldKey, string $newKey, mixed $value = null)`

#### Parameters

string | $oldKey |
string | $newKey |
mixed | $value |

#### Return Value

boolean |

###
at line 192
`set(stdClass $obj)`

Setter

#### Parameters

stdClass | $obj |