PHP Class luya\validators\FloatValidator

Since: 1.0.0-beta8
Author: Basil Suter ([email protected])
Author: Martin Petrasch ([email protected])
Inheritance: extends yii\validators\Validator
Show file Open project: luyadev/luya

Public Properties

Property Type Description
$message The messaged to send when an error appears.

Public Methods

Method Description
validateAttribute ( $model, $attribute ) Validate the value if is_numeric or if not is_float.

Method Details

validateAttribute() public method

Validate the value if is_numeric or if not is_float.
See also: yii\validators\Validator::validateAttribute()
public validateAttribute ( $model, $attribute )

Property Details

$message public property

The messaged to send when an error appears.
public $message