38 if (is_null($oFieldValidator)) {
39 $oFieldValidator =
oxNew(
'oxRequiredFieldValidator');
61 $this->_aRequiredFields = $aFields;
81 $this->_oFieldValidator = $oFieldValidator;
107 $aInvalidFields = array();
108 foreach ($aRequiredFields as $sFieldName) {
109 if (!$oFieldValidator->validateFieldValue($oObject->getFieldData($sFieldName))) {
110 $aInvalidFields[] = $sFieldName;
115 return empty($aInvalidFields);
125 $this->_aInvalidFields = $aFields;