HumHub Documentation (unofficial)

MatcherInterface

MatcherInterface should be implemented by all matchers that are used in a filter.

Tags
author

Mark Jebri mark.github@yandex.ru

since
2.0

Table of Contents

Methods

hasValue()  : bool
Checks if base value is set
match()  : bool
Checks if the value passed matches base value.
setValue()  : mixed
Sets base value to match against

Methods

hasValue()

Checks if base value is set

public hasValue() : bool
Return values
bool

if base value is set

match()

Checks if the value passed matches base value.

public match(mixed $value) : bool
Parameters
$value : mixed

value to be matched

Return values
bool

if there is a match

setValue()

Sets base value to match against

public setValue(mixed $value) : mixed
Parameters
$value : mixed

        
On this page

Search results