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

Core/FieldType/Checkbox/Value.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\FieldType\Checkbox;
8
9 use eZ\Publish\Core\FieldType\Value as BaseValue;
10
14 class Value extends BaseValue
15 {
21 public $bool;
22
28 public function __construct($boolValue = false)
29 {
30 $this->bool = $boolValue;
31 }
32
38 public function __toString()
39 {
40 return $this->bool ? '1' : '0';
41 }
42 }
eZ\Publish\API\Repository\Values\Content\Query\Criterion\Value
Struct that stores extra value information for a Criterion object.
Definition: API/Repository/Values/Content/Query/Criterion/Value.php:13
eZ\Publish\Core\FieldType\Checkbox\Value\$bool
$bool
Definition: Core/FieldType/Checkbox/Value.php:21
eZ\Publish\Core\FieldType\Checkbox\Value\__construct
__construct($boolValue=false)
Construct a new Value object and initialize it $boolValue.
Definition: Core/FieldType/Checkbox/Value.php:28
eZ\Publish\Core\FieldType\Checkbox\Value\__toString
__toString()
Definition: Core/FieldType/Checkbox/Value.php:38
eZ\Publish\Core\FieldType\Value
Abstract class for all field value classes.
Definition: Core/FieldType/Value.php:17
eZ\Publish\Core\FieldType\Checkbox
Definition: Checkbox/SearchField.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.