Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
eZ
Publish
Core
FieldType
Validator
FloatValueValidator
PHP Class eZ\Publish\Core\FieldType\Validator\FloatValueValidator
Note that this validator can be limited by limitation on precision when dealing with floating point numbers, and conversions.
Inheritance:
extends
eZ\Publish\Core\FieldType\Validator
显示文件
Open project: ezsystems/ezpublish-kernel
Class Usage Examples
Protected Properties
Property
Type
Description
$constraints
$constraintsSchema
Public Methods
Method
Description
validate
(
Value
$value
) :
boolean
Perform validation on $value.
validateConstraints
(
$constraints
)
Method Details
validate()
public
method
Will return true when all constraints are matched. If one or more constraints fail, the method will return false. When a check against a constant has failed, an entry will be added to the $errors array.
public
validate
(
Value
$value
) :
boolean
$value
eZ\Publish\Core\FieldType\Value
return
boolean
validateConstraints()
public
method
public
validateConstraints
(
$constraints
)
Property Details
$constraints
protected_oe property
protected
$constraints
$constraintsSchema
protected_oe property
protected
$constraintsSchema