DatabaseQuerySelectFulltext::forceLike()

Call forceLike(true) to force use of LIKE, or omit argument to get current setting

This forces LIKE only for matching operators that have a LIKE equivalent. This includes these operators: *=, ^=, $=, ~=, ~|=.

Available since version 3.0.182.

Usage

// basic usage
$bool = $databaseQuerySelectFulltext->forceLike();

// usage with all arguments
$bool = $databaseQuerySelectFulltext->forceLike($forceLike = null);

Arguments

NameType(s)Description
$forceLike (optional)bool null

Return value

bool


DatabaseQuerySelectFulltext methods and properties

API reference based on ProcessWire core version 3.0.265