CoolCMS API

RuleValueControl
in package
implements Control

FinalYes

A value posing as a form control, so the Nette validators (`Validator::validate*()`) evaluate a rule condition over a stored value exactly as over the form field ({@see ParameterRuleEvaluator::formConditionHolds()}).

Some validators normalize the value (setValue()); the change stays inside this object.

Table of Contents

Interfaces

Control

Properties

$value  : mixed

Methods

__construct()  : mixed
getErrors()  : array<int, string>
getValue()  : mixed
isOmitted()  : bool
setValue()  : static
validate()  : void

Properties

Methods

__construct()

public __construct(mixed $value) : mixed
Parameters
$value : mixed

getErrors()

public getErrors() : array<int, string>
Return values
array<int, string>

setValue()

public setValue(mixed $value) : static
Parameters
$value : mixed
Return values
static
On this page

Search results