CoolCMS API

ParameterRuleConditionInterface

Single rule condition: "parameter X satisfies validator V over values Y".

validator is a constant from ParameterRuleConditionValidator (:equal, :blank, :all_in, …) and is also a Nette validation rule, so it is passed straight to addConditionOn().

Table of Contents

Methods

getParameterId()  : int|null
getValidator()  : string
getValues()  : array<int|string, mixed>
Elements are {@see ParameterRuleConditionValueInterface}; `mixed` on purpose, see {@see ParameterRuleInterface::getConditions()} (untyped Doctrine collections + `instanceof` in Core).

Methods

getValues()

Elements are {@see ParameterRuleConditionValueInterface}; `mixed` on purpose, see {@see ParameterRuleInterface::getConditions()} (untyped Doctrine collections + `instanceof` in Core).

public getValues() : array<int|string, mixed>
Return values
array<int|string, mixed>
On this page

Search results