__construct()
getElement()
getType()
getValidationMessage()
getValue()
setValidationMessage()
Contains rule methods applied to an element. The FormItBuilder object is then assigned rules using the addRules method.
| package | FormItBuilder |
|---|
__construct(string $type, mixed $element, mixed $value, string $validationMessage)
Form Rule constructor
stringRecommend using FormRule constant to determine rule types
mixedA single form element or an array of form elements
mixedSome elements may set a value (e.g. a maximum width of 5 would use the value 5).
stringA validation message to be used if the rule fails validation.
getElement() : object
objectgetType() : string
stringgetValidationMessage() : string
stringgetValue() : string
stringsetValidationMessage(string $value)
string