public function FrxSQLQueryBuilder::filter in Forena Reports 7.5
Same name and namespace in other branches
- 6.2 FrxSQLQueryBuilder.inc \FrxSQLQueryBuilder::filter()
- 6 FrxSQLQueryBuilder.inc \FrxSQLQueryBuilder::filter()
- 7.2 FrxSQLQueryBuilder.inc \FrxSQLQueryBuilder::filter()
- 7.3 FrxSQLQueryBuilder.inc \FrxSQLQueryBuilder::filter()
- 7.4 FrxSQLQueryBuilder.inc \FrxSQLQueryBuilder::filter()
Filters the query that is being executed Enter description here ...
Parameters
string $field:
string $comparison:
2 calls to FrxSQLQueryBuilder::filter()
- FrxSQLQueryBuilder::condition in ./
FrxSQLQueryBuilder.inc - Removing Enter description here ...
- FrxSQLQueryBuilder::filter_not_null in ./
FrxSQLQueryBuilder.inc - Filters the query if the value is present Enter description here ...
File
- ./
FrxSQLQueryBuilder.inc, line 97 - FrxSQLQueryBuilder.inc FrxSQLQuery SQL Builder This class defines a common query builder that is used to make SQL safe queries based on named column filteres. @author metzlerd
Class
- FrxSQLQueryBuilder
- @file FrxSQLQueryBuilder.inc FrxSQLQuery SQL Builder This class defines a common query builder that is used to make SQL safe queries based on named column filteres. @author metzlerd
Code
public function filter($field, $comparison, $include = TRUE) {
if ($include === NULL) {
$include = !empty($this->data[$field]);
}
if ($include && @$this->comparison_operators[$comparison]) {
$this->where_clause[] = $field . ' ' . $comparison . ' :' . $field;
}
return $this;
}