FieldtypePage::getMatchQuery() method

Update a DatabaseQuerySelect object to match a Page

Possible template method: If overridden, children should NOT call this parent method.

Usage

$databaseQuery = $fieldtypePage->getMatchQuery($query, string $table, string $subfield, string $operator, string $value);

Arguments

NameType(s)Description
queryDatabaseQuerySelect, PageFinderDatabaseQuerySelect
tablestring

The table name to use

subfieldstring

Name of the field (typically 'data', unless selector explicitly specified another)

operatorstring

The comparison operator

valuestring

The value to find

Return value

Exceptions

Method can throw exceptions on error:

  • WireException


FieldtypePage methods and properties

API reference based on ProcessWire core version 3.0.248

Latest news

“ProcessWire is like a breath of fresh air. So powerful yet simple to build with and customise, and web editors love it too.” —Margaret Chatwin, Web developer