You are here

public function FrxSQLQueryBuilder::filter in Forena Reports 6

Same name and namespace in other branches
  1. 6.2 FrxSQLQueryBuilder.inc \FrxSQLQueryBuilder::filter()
  2. 7.5 FrxSQLQueryBuilder.inc \FrxSQLQueryBuilder::filter()
  3. 7.2 FrxSQLQueryBuilder.inc \FrxSQLQueryBuilder::filter()
  4. 7.3 FrxSQLQueryBuilder.inc \FrxSQLQueryBuilder::filter()
  5. 7.4 FrxSQLQueryBuilder.inc \FrxSQLQueryBuilder::filter()

* Filters the query that is being executeed * Enter description here ... *

Parameters

string $field: * @param string $comparison

File

./FrxSQLQueryBuilder.inc, line 105

Class

FrxSQLQueryBuilder
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) {
  if (@$this->clauses[$field][$comparison]) {
    $this->where_clause .= ' AND ' . $this->clauses[$field][$comparison];
  }
  return $this;
}