Bitrix API

Helper

Filter helper for specific values preparation.

Tags
subpackage

main

Table of Contents

Constants

FT_MIN_TOKEN_SIZE  = 3

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
int

matchAgainstWildcard()

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
string

parseFulltextPhrase()

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
Return values
array<string|int, mixed>

        
On this page

Search results