PHP Класс Flarum\Core\Search\AbstractRegexGambit

Наследование: implements Flarum\Core\Search\GambitInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$pattern string The regex pattern to match the bit against.

Открытые методы

Метод Описание
apply ( AbstractSearch $search, $bit )

Защищенные методы

Метод Описание
conditions ( AbstractSearch $search, array $matches, boolean $negate ) : mixed Apply conditions to the search, given that the gambit was matched.
match ( string $bit ) : array Match the bit against this gambit.

Описание методов

apply() публичный Метод

public apply ( AbstractSearch $search, $bit )
$search AbstractSearch

conditions() абстрактный защищенный Метод

Apply conditions to the search, given that the gambit was matched.
abstract protected conditions ( AbstractSearch $search, array $matches, boolean $negate ) : mixed
$search AbstractSearch The search object.
$matches array An array of matches from the search bit.
$negate boolean Whether or not the bit was negated, and thus whether or not the conditions should be negated.
Результат mixed

match() защищенный Метод

Match the bit against this gambit.
protected match ( string $bit ) : array
$bit string
Результат array

Описание свойств

$pattern защищенное свойство

The regex pattern to match the bit against.
protected string $pattern
Результат string