__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
string
Recommend using FormRule constant to determine rule types
mixed
A single form element or an array of form elements
mixed
Some elements may set a value (e.g. a maximum width of 5 would use the value 5).
string
A validation message to be used if the rule fails validation.
getElement() : object
object
getType() : string
string
getValidationMessage() : string
string
getValue() : string
string
setValidationMessage(string $value)
string