Helper
Filter helper for specific values preparation.
Tags
Table of Contents
Constants
Methods
- getMinTokenSize() : int
- matchAgainstWildcard() : string
- Places + and * for each word in a phrase.
- parseFulltextPhrase() : mixed
- splitWords() : array<string|int, mixed>
- Splits a string to words by any non-word symbols.
Constants
FT_MIN_TOKEN_SIZE
public
mixed
FT_MIN_TOKEN_SIZE
= 3
Methods
getMinTokenSize()
public
static getMinTokenSize() : int
Return values
intmatchAgainstWildcard()
Places + and * for each word in a phrase.
public
static matchAgainstWildcard(string $phrase[, string $wildcard = '*' ][, int|null $minTokenSize = null ]) : string
Parameters
- $phrase : string
- $wildcard : string = '*'
-
'*' or '' actually
- $minTokenSize : int|null = null
Return values
stringparseFulltextPhrase()
public
static parseFulltextPhrase(mixed $phrase[, mixed $minTokenSize = null ]) : mixed
Parameters
- $phrase : mixed
- $minTokenSize : mixed = null
splitWords()
Splits a string to words by any non-word symbols.
public
static splitWords(mixed $string) : array<string|int, mixed>
Parameters
- $string : mixed