Class

eZ\Publish\API\Repository\Values\Content\Query\FacetBuilder\DateRangeFacetBuilder

abstract class DateRangeFacetBuilder extends FacetBuilder

Build a date range facet.

If provided the search service returns a DateRangeFacet depending on the provided type (PUBLISHED, CREATED, MODIFIED)

Constants

PUBLISHED

CREATED

MODIFIED

Properties

string $name The name of the facet.
bool $global If true the facet runs in a global mode not restricted by the query.
Criterion $filter An additional facet filter that will further filter the documents the facet will be executed on.
int $limit Number of facets (terms) returned.
int $minCount Specifies the minimum count.
$type

Methods

addUnboundedFrom(DateTime $to)

Adds a range entry with explicit to and unbounded from.

addRange(DateTime $from, DateTime $to)

Adds a date range.

addUnboundedTo(DateTime $from)

Adds a range entry with explicit from and unbounded to.

Details

at line 32
abstract public addUnboundedFrom(DateTime $to)

Adds a range entry with explicit to and unbounded from.

Parameters

DateTime $to

at line 40
abstract public addRange(DateTime $from, DateTime $to)

Adds a date range.

Parameters

DateTime $from
DateTime $to

at line 47
abstract public addUnboundedTo(DateTime $from)

Adds a range entry with explicit from and unbounded to.

Parameters

DateTime $from