Changeset 1574 for trunk/src/main/php/net
- Timestamp:
- 05/22/08 15:03:52 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/ipo/request/validator/stubPreSelectValidator.php
r1547 r1574 34 34 35 35 /** 36 * returns list of allowed values 37 * 38 * @return array 39 */ 40 public function getAllowedValues() 41 { 42 return $this->allowedValues; 43 } 44 45 /** 36 46 * validate that the given value is within a list of allowed values 37 47 * … … 44 54 return in_array($value, $this->allowedValues); 45 55 } 56 46 57 foreach ($value as $val) { 47 58 if (!in_array($val, $this->allowedValues)) { … … 49 60 } 50 61 } 62 51 63 return true; 52 64 }
