Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

IsFieldEmpty.php
Go to the documentation of this file.
1 <?php
2
7 declare(strict_types=1);
8
9 namespace eZ\Publish\API\Repository\Values\Content\Query\Criterion;
10
11 use eZ\Publish\API\Repository\Values\Content\Query\Criterion;
12 use eZ\Publish\API\Repository\Values\Content\Query\Criterion\Operator\Specifications;
13
17 class IsFieldEmpty extends Criterion
18 {
25 public function __construct(string $fieldDefinitionIdentifier, bool $value = true)
26 {
27 parent::__construct($fieldDefinitionIdentifier, null, $value);
28 }
29
30 public function getSpecifications()
31 {
32 return [
33 new Specifications(Operator::EQ, Specifications::FORMAT_SINGLE, Specifications::TYPE_BOOLEAN),
34 ];
35 }
36 }
eZ\Publish\API\Repository\Values\Content\Query\Criterion\IsFieldEmpty
A criterion that matches content based on if Field is empty.
Definition: IsFieldEmpty.php:18
eZ\Publish\API\Repository\Values\Content\Query\Criterion\IsFieldEmpty\__construct
__construct(string $fieldDefinitionIdentifier, bool $value=true)
Definition: IsFieldEmpty.php:25
eZ\Publish\API\Repository\Values\Content\Query\Criterion\IsFieldEmpty\getSpecifications
getSpecifications()
Criterion description function.
Definition: IsFieldEmpty.php:30
eZ\Publish\API\Repository\Values\Content\Query\Criterion\Operator\Specifications
This class is used by Criteria to describe which operators they support.
Definition: Specifications.php:15
eZ\Publish\API\Repository\Values\Content\Query\Criterion\Operator\Specifications\FORMAT_SINGLE
const FORMAT_SINGLE
Criterion input type description constants.
Definition: Specifications.php:19
eZ\Publish\API\Repository\Values\Content\Query\Criterion\Operator\Specifications\TYPE_BOOLEAN
const TYPE_BOOLEAN
Definition: Specifications.php:28
eZ\Publish\API\Repository\Values\Content\Query\Criterion\Operator\EQ
const EQ
Definition: API/Repository/Values/Content/Query/Criterion/Operator.php:16
eZ\Publish\API\Repository\Values\Content\Query\Criterion
Definition: API/Repository/Values/Content/Query/Criterion.php:15
eZ\Publish\API\Repository\Values\Content\Query\Criterion\$value
$value
Definition: API/Repository/Values/Content/Query/Criterion.php:28
eZ\Publish\API\Repository\Values\Content\Query\Criterion
Definition: API/Repository/Values/Content/Query/Criterion/Ancestor.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.