Build a date range facet.
since eZ Platform 3.2.0, to be removed in Ibexa 4.0.0.
If provided the search service returns a DateRangeFacet depending on the provided
type (PUBLISHED, CREATED, MODIFIED)
Tags
-
Deprecated
-
since eZ Platform 3.2.0, to be removed in Ibexa 4.0.0.
Constants
|
public mixed MODIFIED = 2
|
|
public mixed PUBLISHED = 0
|
Properties
An additional facet filter that will further filter the documents the facet will be executed on.
If true the facet runs in a global mode not restricted by the query.
|
public bool $global = false
|
Number of facets (terms) returned.
Specifies the minimum count. Only facet groups with more or equal results are returned.
The name of the facet.
|
public mixed $type = self::PUBLISHED
|
Methods
Construct object optionally with a set of properties.
|
public __construct([array<string|int, mixed> $properties = [] ])
|
Readonly properties values must be set using $properties as they are not writable anymore
after object has been created.
Parameters
Name |
Type |
Default value |
Description |
$properties
|
array<string|int, mixed>
|
[]
|
-
|
Adds a date range.
|
public abstract addRange(DateTime $from, DateTime $to) : mixed
|
Parameters
Name |
Type |
Default value |
Description |
$from
|
DateTime
|
-
|
-
|
$to
|
DateTime
|
-
|
-
|
Adds a range entry with explicit to and unbounded from.
|
public abstract addUnboundedFrom(DateTime $to) : mixed
|
Parameters
Name |
Type |
Default value |
Description |
$to
|
DateTime
|
-
|
-
|
Adds a range entry with explicit from and unbounded to.
|
public abstract addUnboundedTo(DateTime $from) : mixed
|
Parameters
Name |
Type |
Default value |
Description |
$from
|
DateTime
|
-
|
-
|
Function where list of properties are returned.
|
protected getProperties([array<string|int, mixed> $dynamicProperties = [] ]) : array<string|int, mixed>
|
Used by attributes(), override to add dynamic properties
Parameters
Name |
Type |
Default value |
Description |
$dynamicProperties
|
array<string|int, mixed>
|
[]
|
Additional dynamic properties exposed on the object
|
Return values
array<string|int, mixed>