An match-node in the livestatus filter node tree. More...
Public Member Functions | |
get_hash () | |
generate unqiue hash for the current filter | |
get_field () | |
Get the name of the field to match. | |
get_op () | |
Get the operator to filter on. | |
get_value () | |
Get the value to match. | |
__construct ($field, $value, $op="=") | |
Generate a match-filter. | |
prefix ($prefix) | |
Returns a copy of the filter, but with a variables prefixed. | |
visit (LivestatusFilterVisitor $visitor, $data) | |
Visit the filter node with a visitor, to generate a filter query. | |
negate () | |
Negate the current filter. | |
equals ($filter) | |
Test if two filters are equal. |
An match-node in the livestatus filter node tree.
LivestatusFilterMatch::equals | ( | $ | filter | ) |
Test if two filters are equal.
This is used for simplifications, return true if sure about equality. Return false if not equal, or unsure.
Should only give false negatives.
Reimplemented from LivestatusFilterBase.
LivestatusFilterMatch::negate | ( | ) |
Negate the current filter.
FIXME: This NEEDS to be type aware.
simplify "not (list >= "kaka")" would be simplified to list < "kaka". >= in this case is a "contains"-operator