Class

eZ\Publish\Core\QueryType\ArrayQueryTypeRegistry

class ArrayQueryTypeRegistry implements QueryTypeRegistry

A QueryType registry based on an array.

Methods

addQueryType(string $name, QueryType $queryType)

Registers $queryType as $name.

addQueryTypes(array $queryTypes)

Registers QueryTypes from the $queryTypes array.

QueryType getQueryType(string $name)

Get the QueryType $name.

Details

at line 18
public addQueryType(string $name, QueryType $queryType)

Registers $queryType as $name.

Parameters

string $name
QueryType $queryType

at line 23
public addQueryTypes(array $queryTypes)

Registers QueryTypes from the $queryTypes array.

Parameters

array $queryTypes An array of QueryTypes, with their name as the index

at line 28
public QueryType getQueryType(string $name)

Get the QueryType $name.

Parameters

string $name

Return Value

QueryType