Public Member Functions | |
__construct ($oFieldValidator=null) | |
getRequiredFields () | |
setRequiredFields ($aFields) | |
getFieldValidator () | |
setFieldValidator ($oFieldValidator) | |
getInvalidFields () | |
validateFields ($oObject) | |
Private Member Functions | |
_setInvalidFields ($aFields) | |
Private Attributes | |
$_aRequiredFields = array() | |
$_aInvalidFields = array() | |
$_oFieldValidator = array() |
Class for validating address
Definition at line 7 of file oxrequiredfieldsvalidator.php.
oxRequiredFieldsValidator.__construct | ( | $ | oFieldValidator = null |
) |
Sets dependencies.
oxRequiredFieldValidator | $oFieldValidator |
Definition at line 36 of file oxrequiredfieldsvalidator.php.
oxRequiredFieldsValidator._setInvalidFields | ( | $ | aFields | ) | [private] |
Add fields to invalid fields array.
array | $aFields Invalid field name. |
Definition at line 123 of file oxrequiredfieldsvalidator.php.
oxRequiredFieldsValidator.getFieldValidator | ( | ) |
Returns required fields for address.
Definition at line 69 of file oxrequiredfieldsvalidator.php.
oxRequiredFieldsValidator.getInvalidFields | ( | ) |
oxRequiredFieldsValidator.getRequiredFields | ( | ) |
Returns required fields for address.
Definition at line 49 of file oxrequiredfieldsvalidator.php.
oxRequiredFieldsValidator.setFieldValidator | ( | $ | oFieldValidator | ) |
Sets required fields array
oxRequiredFieldValidator | $oFieldValidator |
Definition at line 79 of file oxrequiredfieldsvalidator.php.
oxRequiredFieldsValidator.setRequiredFields | ( | $ | aFields | ) |
Sets required fields array
array | $aFields Fields |
Definition at line 59 of file oxrequiredfieldsvalidator.php.
oxRequiredFieldsValidator.validateFields | ( | $ | oObject | ) |
Checks if all required fields are filled. Returns array of invalid fields or empty array if all fields are fine.
oxBase | $oObject Address fields with values. |
Definition at line 102 of file oxrequiredfieldsvalidator.php.
oxRequiredFieldsValidator.$_aInvalidFields = array() [private] |
Definition at line 22 of file oxrequiredfieldsvalidator.php.
oxRequiredFieldsValidator.$_aRequiredFields = array() [private] |
Definition at line 15 of file oxrequiredfieldsvalidator.php.
oxRequiredFieldsValidator.$_oFieldValidator = array() [private] |
Definition at line 29 of file oxrequiredfieldsvalidator.php.