My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

class Skjb_Validate_ForEach extends Zend_Validate_Abstract
{
private $_validator = null;

public function __construct(Zend_Validate $validator)
{
$this->_validator = $validator;
}

public function isValid($values)
{
$valid = true;

foreach ($values as $value) {
if (!$this->_validator->isValid($value)) {
$this->_messages = array_merge($this->_messages, $this->_validator->getMessages());
$this->_errors = array_merge($this->_errors, $this->_validator->getErrors());
$valid = false;
}
}

return $valid;
}
}

Change log

r59 by superhappycamperboy on May 26, 2010   Diff
Moving everything to the library subfolder
Go to: 
Project members, sign in to write a code review

Older revisions

r55 by superhappycamperboy on May 25, 2010   Diff
Moving Google Maps code and adding
Switch validator
r52 by superhappycamperboy on May 25, 2010   Diff
Adding table registry and validators
All revisions of this file

File info

Size: 670 bytes, 26 lines
Powered by Google Project Hosting