DHTMLX Docs & Samples Explorer

Index
dhtmlxconnector
Filter Interface Object

## Filter Interface Object

### clear

clears all defined settings

      $coll->clear();

### index

check if options for named field exist in collection and return related hash. Returns false if named field not found in collection.

      $index = $coll->index("some_field");

### add

adds new filtering rule to collection

      $coll->add("some_field","abc");  // some_field LIKE "%abc%"
      $coll->add("other_field","5","<"); //some_field < 5

### rules

array of all already defined sorting rules. Each element has two properties

- name - name of related field
- value - filtering value
- operation - filtering operation, if empty then default LIKE instruction will be used

      $name = $coll->rules[0]["name"]
      $coll->rules[0]["value"]="cde";