PHP Class Search\Model\Filter\Like

Inheritance: extends Base
Afficher le fichier Open project: friendsofcake/search

Protected Properties

Свойство Type Description
$_defaultConfig array Default configuration.

Méthodes publiques

Méthode Description
__construct ( string $name, Manager $manager, array $config = [] ) {@inheritDoc}
process ( ) : void Process a LIKE condition ($x LIKE $y).

Méthodes protégées

Méthode Description
_formatWildcards ( string $value ) : string Replace substitutions with original wildcards but first, escape the original wildcards in the text to use them as normal search text
_wildcards ( string $value ) : string | false Wrap wild cards around the value.

Method Details

__construct() public méthode

{@inheritDoc}
public __construct ( string $name, Manager $manager, array $config = [] )
$name string Name.
$manager Search\Manager Manager.
$config array Config.

_formatWildcards() protected méthode

Replace substitutions with original wildcards but first, escape the original wildcards in the text to use them as normal search text
protected _formatWildcards ( string $value ) : string
$value string Value.
Résultat string Value

_wildcards() protected méthode

Wrap wild cards around the value.
protected _wildcards ( string $value ) : string | false
$value string Value.
Résultat string | false Either the wildcard decorated input value, or `false` when encountering a non-string value.

process() public méthode

Process a LIKE condition ($x LIKE $y).
public process ( ) : void
Résultat void

Property Details

$_defaultConfig protected_oe property

Default configuration.
protected array $_defaultConfig
Résultat array