Changeset 1925
- Timestamp:
- 05/11/07 10:32:35 (20 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/0.11/src/validator/AgaviNotoperatorValidator.class.php
r1746 r1925 53 53 54 54 /** 55 * Adds a validation result for a given field. 56 * 57 * @param AgaviValidator The validator. 58 * @param string The name of the field which has been validated. 59 * @param int The result of the validation. 60 * 61 * @author Dominik del Bondio <ddb@bitxtender.com> 62 * @since 0.11.0 63 */ 64 public function addFieldResult($validator, $fieldname, $result) 65 { 66 // prevent reporting of any child validators 67 } 68 69 /** 70 * Adds an incident to the validation result. 71 * 72 * @param AgaviValidationIncident The incident. 73 * 74 * @author Dominik del Bondio <ddb@bitxtender.com> 75 * @since 0.11.0 76 */ 77 public function addIncident(AgaviValidationIncident $incident) 78 { 79 // prevent reporting of any child validators 80 } 81 82 /** 55 83 * Validates the operator by returning the inverse result of the child 56 84 * validator … … 70 98 if($result == AgaviValidator::CRITICAL || $result == AgaviValidator::SUCCESS) { 71 99 $this->result = max(AgaviValidator::ERROR, $result); 72 $this->throwError( );100 $this->throwError(null, $child->getFullArgumentNames()); 73 101 return false; 74 102 } else { 103 // lets mark the fields of the child validator all as successful 104 $affectedFields = $child->getFullArgumentNames(); 105 foreach($affectedFields as $field) { 106 parent::addFieldResult($this, $field, AgaviValidator::SUCCESS); 107 } 75 108 return true; 76 109 }

