\NetefxValidatorRuleIMPLIES
- Author: lx-berlin
Synopsis
class NetefxValidatorRuleIMPLIES
extends NetefxValidatorRule
{
- // Inherited members from NetefxValidatorRule
- protected $field;
- protected $args;
- protected $errorMsg;
- protected $errorMsgType;
- // methods
- public void __construct()
- public boolean validate()
- // Inherited methods from NetefxValidatorRule
- public string getField()
- public array getArgs()
- public string getErrorMessage()
- public string getErrorMessageType()
- public void setField()
- public void setArgs()
- public void setErrorMessage()
- public void setErrorMessageType()
- public void __construct()
- protected string evaluate()
- protected boolean checkNumeric()
- protected void numberFormatConversion()
- public abstract boolean validate()
- public void jsValidation()
Hierarchy
Extends
Members
protected
- $args
- $errorMsg
- $errorMsgType
- $field
Methods
public
- __construct() — Check if first rule is valid the second needs to be valid as well. If first rule is not valid true will be returned.
- validate()
Inherited from NetefxValidatorRule
protected
- checkNumeric()
- evaluate() — evaluates the given expression, having names of other fields included in the characters @ and ~ resp.
- numberFormatConversion() — converts custom number format to english number format (eg: german uses , instead of . for the decimal seperator)
public
- getArgs()
- getErrorMessage()
- getErrorMessageType()
- getField()
- jsValidation()
- setArgs() — Arguments differ depending on the Rule
- setErrorMessage()
- setErrorMessageType() — CSS class which will be added to the field if it is not valid (eg: 'validatonError')
- setField() — Name of the Field that this rule is applied to
- validate() — This function needs to be overwritten