Changeset 7902
- Timestamp:
- 03/15/08 14:17:33 (7 months ago)
- Files:
-
- branches/1.1/UPGRADE (modified) (1 diff)
- branches/1.1/lib/autoload/sfCoreAutoload.class.php (modified) (1 diff)
- branches/1.1/lib/plugins/sfCompat10Plugin/lib/validator/sfCallbackValidator.class.php (modified) (1 diff)
- branches/1.1/lib/plugins/sfCompat10Plugin/lib/validator/sfCompareValidator.class.php (modified) (1 diff)
- branches/1.1/lib/plugins/sfCompat10Plugin/lib/validator/sfDateValidator.class.php (modified) (1 diff)
- branches/1.1/lib/plugins/sfCompat10Plugin/lib/validator/sfEmailValidator.class.php (modified) (1 diff)
- branches/1.1/lib/plugins/sfCompat10Plugin/lib/validator/sfFileValidator.class.php (modified) (1 diff)
- branches/1.1/lib/plugins/sfCompat10Plugin/lib/validator/sfNumberValidator.class.php (modified) (1 diff)
- branches/1.1/lib/plugins/sfCompat10Plugin/lib/validator/sfRegexValidator.class.php (modified) (1 diff)
- branches/1.1/lib/plugins/sfCompat10Plugin/lib/validator/sfStringValidator.class.php (modified) (1 diff)
- branches/1.1/lib/plugins/sfCompat10Plugin/lib/validator/sfUrlValidator.class.php (modified) (1 diff)
- branches/1.1/lib/plugins/sfCompat10Plugin/lib/validator/sfValidator.class.php (moved) (moved from branches/1.1/lib/plugins/sfCompat10Plugin/lib/validator/sfValidatorBase.class.php) (1 diff)
- branches/1.1/lib/plugins/sfCompat10Plugin/test/unit/validator/sfValidatorTest.php (moved) (moved from branches/1.1/lib/plugins/sfCompat10Plugin/test/unit/validator/sfValidatorBaseTest.php) (1 diff)
- branches/1.1/lib/plugins/sfPropelPlugin/lib/propel/validator/sfValidatorPropelChoice.class.php (modified) (3 diffs)
- branches/1.1/lib/plugins/sfPropelPlugin/lib/propel/validator/sfValidatorPropelChoiceMany.class.php (modified) (1 diff)
- branches/1.1/lib/validator/sfValidatorAnd.class.php (modified) (9 diffs)
- branches/1.1/lib/validator/sfValidatorBase.class.php (moved) (moved from branches/1.1/lib/validator/sfValidator.class.php) (3 diffs)
- branches/1.1/lib/validator/sfValidatorBoolean.class.php (modified) (3 diffs)
- branches/1.1/lib/validator/sfValidatorCSRFToken.class.php (modified) (2 diffs)
- branches/1.1/lib/validator/sfValidatorCallback.class.php (modified) (3 diffs)
- branches/1.1/lib/validator/sfValidatorChoice.class.php (modified) (3 diffs)
- branches/1.1/lib/validator/sfValidatorChoiceMany.class.php (modified) (1 diff)
- branches/1.1/lib/validator/sfValidatorDate.class.php (modified) (4 diffs)
- branches/1.1/lib/validator/sfValidatorDecorator.class.php (modified) (17 diffs)
- branches/1.1/lib/validator/sfValidatorError.class.php (modified) (2 diffs)
- branches/1.1/lib/validator/sfValidatorErrorSchema.class.php (modified) (1 diff)
- branches/1.1/lib/validator/sfValidatorFile.class.php (modified) (4 diffs)
- branches/1.1/lib/validator/sfValidatorFromDescription.class.php (modified) (1 diff)
- branches/1.1/lib/validator/sfValidatorInteger.class.php (modified) (3 diffs)
- branches/1.1/lib/validator/sfValidatorNumber.class.php (modified) (3 diffs)
- branches/1.1/lib/validator/sfValidatorOr.class.php (modified) (9 diffs)
- branches/1.1/lib/validator/sfValidatorPass.class.php (modified) (2 diffs)
- branches/1.1/lib/validator/sfValidatorRegex.class.php (modified) (3 diffs)
- branches/1.1/lib/validator/sfValidatorSchema.class.php (modified) (15 diffs)
- branches/1.1/lib/validator/sfValidatorSchemaCompare.class.php (modified) (3 diffs)
- branches/1.1/lib/validator/sfValidatorSchemaFilter.class.php (modified) (3 diffs)
- branches/1.1/lib/validator/sfValidatorSchemaForEach.class.php (modified) (2 diffs)
- branches/1.1/lib/validator/sfValidatorString.class.php (modified) (3 diffs)
- branches/1.1/test/unit/validator/sfValidatorBaseTest.php (moved) (moved from branches/1.1/test/unit/validator/sfValidatorTest.php) (3 diffs)
- branches/1.1/test/unit/validator/sfValidatorSchemaTest.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/UPGRADE
r7790 r7902 351 351 * `->moveFile()` 352 352 353 sfValidator class354 -----------------355 356 If you use the symfony 1.0 interface for validation, your custom validators must357 now extend the `sfValidatorBase` class.358 359 353 `->initialize()` methods 360 354 ------------------------ branches/1.1/lib/autoload/sfCoreAutoload.class.php
r7892 r7902 358 358 'sfValidatorI18nChoiceCountry' => 'validator/i18n', 359 359 'sfValidatorI18nChoiceLanguage' => 'validator/i18n', 360 'sfValidator' => 'validator',361 360 'sfValidatorAnd' => 'validator', 361 'sfValidatorBase' => 'validator', 362 362 'sfValidatorBoolean' => 'validator', 363 363 'sfValidatorCallback' => 'validator', branches/1.1/lib/plugins/sfCompat10Plugin/lib/validator/sfCallbackValidator.class.php
r5384 r7902 29 29 * @version SVN: $Id$ 30 30 */ 31 class sfCallbackValidator extends sfValidator Base31 class sfCallbackValidator extends sfValidator 32 32 { 33 33 /** branches/1.1/lib/plugins/sfCompat10Plugin/lib/validator/sfCompareValidator.class.php
r5384 r7902 35 35 * @version SVN: $Id$ 36 36 */ 37 class sfCompareValidator extends sfValidator Base37 class sfCompareValidator extends sfValidator 38 38 { 39 39 /** branches/1.1/lib/plugins/sfCompat10Plugin/lib/validator/sfDateValidator.class.php
r7792 r7902 20 20 * @version SVN: $Id$ 21 21 */ 22 class sfDateValidator extends sfValidator Base22 class sfDateValidator extends sfValidator 23 23 { 24 24 /** branches/1.1/lib/plugins/sfCompat10Plugin/lib/validator/sfEmailValidator.class.php
r7792 r7902 20 20 * @version SVN: $Id$ 21 21 */ 22 class sfEmailValidator extends sfValidator Base22 class sfEmailValidator extends sfValidator 23 23 { 24 24 /** branches/1.1/lib/plugins/sfCompat10Plugin/lib/validator/sfFileValidator.class.php
r5384 r7902 28 28 * @version SVN: $Id$ 29 29 */ 30 class sfFileValidator extends sfValidator Base30 class sfFileValidator extends sfValidator 31 31 { 32 32 /** branches/1.1/lib/plugins/sfCompat10Plugin/lib/validator/sfNumberValidator.class.php
r7792 r7902 34 34 * @version SVN: $Id$ 35 35 */ 36 class sfNumberValidator extends sfValidator Base36 class sfNumberValidator extends sfValidator 37 37 { 38 38 /** branches/1.1/lib/plugins/sfCompat10Plugin/lib/validator/sfRegexValidator.class.php
r7792 r7902 33 33 * @version SVN: $Id$ 34 34 */ 35 class sfRegexValidator extends sfValidator Base35 class sfRegexValidator extends sfValidator 36 36 { 37 37 /** branches/1.1/lib/plugins/sfCompat10Plugin/lib/validator/sfStringValidator.class.php
r7792 r7902 40 40 * @version SVN: $Id$ 41 41 */ 42 class sfStringValidator extends sfValidator Base42 class sfStringValidator extends sfValidator 43 43 { 44 44 /** branches/1.1/lib/plugins/sfCompat10Plugin/lib/validator/sfUrlValidator.class.php
r5384 r7902 17 17 * @version SVN: $Id$ 18 18 */ 19 class sfUrlValidator extends sfValidator Base19 class sfUrlValidator extends sfValidator 20 20 { 21 21 /** branches/1.1/lib/plugins/sfCompat10Plugin/lib/validator/sfValidator.class.php
r7792 r7902 19 19 * @version SVN: $Id$ 20 20 */ 21 abstract class sfValidator Base21 abstract class sfValidator 22 22 { 23 23 protected branches/1.1/lib/plugins/sfCompat10Plugin/test/unit/validator/sfValidatorTest.php
r5384 r7902 14 14 $t = new lime_test(11, new lime_output_color()); 15 15 16 class myValidator extends sfValidator Base16 class myValidator extends sfValidator 17 17 { 18 18 function execute (&$value, &$error) {} branches/1.1/lib/plugins/sfPropelPlugin/lib/propel/validator/sfValidatorPropelChoice.class.php
r7149 r7902 17 17 * @version SVN: $Id$ 18 18 */ 19 class sfValidatorPropelChoice extends sfValidator 19 class sfValidatorPropelChoice extends sfValidatorBase 20 20 { 21 21 /** … … 30 30 * * connection: The Propel connection to use (null by default) 31 31 * 32 * @see sfValidator 32 * @see sfValidatorBase 33 33 */ 34 34 protected function configure($options = array(), $messages = array()) … … 41 41 42 42 /** 43 * @see sfValidator 43 * @see sfValidatorBase 44 44 */ 45 45 protected function doClean($value) branches/1.1/lib/plugins/sfPropelPlugin/lib/propel/validator/sfValidatorPropelChoiceMany.class.php
r7147 r7902 20 20 { 21 21 /** 22 * @see sfValidator 22 * @see sfValidatorBase 23 23 */ 24 24 protected function doClean($values) branches/1.1/lib/validator/sfValidatorAnd.class.php
r6951 r7902 17 17 * @version SVN: $Id$ 18 18 */ 19 class sfValidatorAnd extends sfValidator 19 class sfValidatorAnd extends sfValidatorBase 20 20 { 21 21 protected … … 28 28 * 29 29 * * null 30 * * a sfValidator instance31 * * an array of sfValidator instances30 * * a sfValidatorBase instance 31 * * an array of sfValidatorBase instances 32 32 * 33 33 * @param mixed Initial validators … … 35 35 * @param array An array of error messages 36 36 * 37 * @see sfValidator 37 * @see sfValidatorBase 38 38 */ 39 39 public function __construct($validators = null, $options = array(), $messages = array()) 40 40 { 41 if ($validators instanceof sfValidator )41 if ($validators instanceof sfValidatorBase) 42 42 { 43 43 $this->addValidator($validators); … … 52 52 else if (!is_null($validators)) 53 53 { 54 throw new InvalidArgumentException('sfValidatorAnd constructor takes a sfValidator object, or a sfValidatorarray.');54 throw new InvalidArgumentException('sfValidatorAnd constructor takes a sfValidatorBase object, or a sfValidatorBase array.'); 55 55 } 56 56 … … 59 59 60 60 /** 61 * @see sfValidator 61 * @see sfValidatorBase 62 62 */ 63 63 protected function configure($options = array(), $messages = array()) … … 69 69 * Adds a validator. 70 70 * 71 * @param sfValidator A sfValidatorinstance71 * @param sfValidatorBase A sfValidatorBase instance 72 72 */ 73 public function addValidator(sfValidator $validator)73 public function addValidator(sfValidatorBase $validator) 74 74 { 75 75 $this->validators[] = $validator; … … 79 79 * Returns an array of the validators. 80 80 * 81 * @return array An array of sfValidator instances81 * @return array An array of sfValidatorBase instances 82 82 */ 83 83 public function getValidators() … … 87 87 88 88 /** 89 * @see sfValidator 89 * @see sfValidatorBase 90 90 */ 91 91 protected function doClean($value) … … 119 119 120 120 /** 121 * @see sfValidator 121 * @see sfValidatorBase 122 122 */ 123 123 public function asString($indent = 0) branches/1.1/lib/validator/sfValidatorBase.class.php
r6942 r7902 10 10 11 11 /** 12 * sfValidator is the base class for all validators.12 * sfValidatorBase is the base class for all validators. 13 13 * 14 14 * It also implements the required option for all validators. … … 19 19 * @version SVN: $Id$ 20 20 */ 21 abstract class sfValidator 21 abstract class sfValidatorBase 22 22 { 23 23 protected static … … 86 86 * during validator creation. 87 87 * 88 * If some options and messages are given in the sfValidator constructor88 * If some options and messages are given in the sfValidatorBase constructor 89 89 * they will take precedence over the options and messages you configure 90 90 * in this method. branches/1.1/lib/validator/sfValidatorBoolean.class.php
r5882 r7902 17 17 * @version SVN: $Id$ 18 18 */ 19 class sfValidatorBoolean extends sfValidator 19 class sfValidatorBoolean extends sfValidatorBase 20 20 { 21 21 /** … … 27 27 * * false_values: The list of false values 28 28 * 29 * @see sfValidator 29 * @see sfValidatorBase 30 30 */ 31 31 protected function configure($options = array(), $messages = array()) … … 38 38 39 39 /** 40 * @see sfValidator 40 * @see sfValidatorBase 41 41 */ 42 42 protected function doClean($value) branches/1.1/lib/validator/sfValidatorCSRFToken.class.php
r6022 r7902 17 17 * @version SVN: $Id$ 18 18 */ 19 class sfValidatorCSRFToken extends sfValidator 19 class sfValidatorCSRFToken extends sfValidatorBase 20 20 { 21 21 /** 22 * @see sfValidator 22 * @see sfValidatorBase 23 23 */ 24 24 protected function configure($options = array(), $messages = array()) … … 32 32 33 33 /** 34 * @see sfValidator 34 * @see sfValidatorBase 35 35 */ 36 36 protected function doClean($value) branches/1.1/lib/validator/sfValidatorCallback.class.php
r6968 r7902 17 17 * @version SVN: $Id$ 18 18 */ 19 class sfValidatorCallback extends sfValidator 19 class sfValidatorCallback extends sfValidatorBase 20 20 { 21 21 /** … … 27 27 * * arguments: An array of arguments to pass to the callback 28 28 * 29 * @see sfValidator 29 * @see sfValidatorBase 30 30 */ 31 31 protected function configure($options = array(), $messages = array()) … … 38 38 39 39 /** 40 * @see sfValidator 40 * @see sfValidatorBase 41 41 */ 42 42 protected function doClean($value) branches/1.1/lib/validator/sfValidatorChoice.class.php
r5819 r7902 17 17 * @version SVN: $Id$ 18 18 */ 19 class sfValidatorChoice extends sfValidator 19 class sfValidatorChoice extends sfValidatorBase 20 20 { 21 21 /** … … 26 26 * * choices: An array of expected values (required) 27 27 * 28 * @see sfValidator 28 * @see sfValidatorBase 29 29 */ 30 30 protected function configure($options = array(), $messages = array()) … … 34 34 35 35 /** 36 * @see sfValidator 36 * @see sfValidatorBase 37 37 */ 38 38 protected function doClean($value) branches/1.1/lib/validator/sfValidatorChoiceMany.class.php
r5838 r7902 20 20 { 21 21 /** 22 * @see sfValidator 22 * @see sfValidatorBase 23 23 */ 24 24 protected function doClean($values) branches/1.1/lib/validator/sfValidatorDate.class.php
r7437 r7902 17 17 * @version SVN: $Id$ 18 18 */ 19 class sfValidatorDate extends sfValidator 19 class sfValidatorDate extends sfValidatorBase 20 20 { 21 21 /** … … 34 34 * * bad_format 35 35 * 36 * @see sfValidator 36 * @see sfValidatorBase 37 37 */ 38 38 protected function configure($options = array(), $messages = array()) … … 48 48 49 49 /** 50 * @see sfValidator 50 * @see sfValidatorBase 51 51 */ 52 52 protected function doClean($value) … … 166 166 167 167 /** 168 * @see sfValidator 168 * @see sfValidatorBase 169 169 */ 170 170 protected function isEmpty($value) branches/1.1/lib/validator/sfValidatorDecorator.class.php
r6196 r7902 21 21 * @version SVN: $Id$ 22 22 */ 23 abstract class sfValidatorDecorator extends sfValidator 23 abstract class sfValidatorDecorator extends sfValidatorBase 24 24 { 25 25 protected … … 27 27 28 28 /** 29 * @see sfValidator 29 * @see sfValidatorBase 30 30 */ 31 31 public function __construct($options = array(), $messages = array()) … … 33 33 $this->validator = $this->getValidator(); 34 34 35 if (!$this->validator instanceof sfValidator )35 if (!$this->validator instanceof sfValidatorBase) 36 36 { 37 throw new RuntimeException('The getValidator() method must return a sfValidator instance.');37 throw new RuntimeException('The getValidator() method must return a sfValidatorBase instance.'); 38 38 } 39 39 … … 54 54 * Every subclass must implement this method. 55 55 * 56 * @return sfValidator A sfValidatorinstance56 * @return sfValidatorBase A sfValidatorBase instance 57 57 */ 58 58 abstract protected function getValidator(); 59 59 60 60 /** 61 * @see sfValidator 61 * @see sfValidatorBase 62 62 */ 63 63 public function clean($value) … … 67 67 68 68 /** 69 * @see sfValidator 69 * @see sfValidatorBase 70 70 */ 71 71 protected function doClean($value) … … 75 75 76 76 /** 77 * @see sfValidator 77 * @see sfValidatorBase 78 78 */ 79 79 public function getMessage($name) … … 83 83 84 84 /** 85 * @see sfValidator 85 * @see sfValidatorBase 86 86 */ 87 87 public function setMessage($name, $value) … … 91 91 92 92 /** 93 * @see sfValidator 93 * @see sfValidatorBase 94 94 */ 95 95 public function getMessages() … … 99 99 100 100 /** 101 * @see sfValidator 101 * @see sfValidatorBase 102 102 */ 103 103 public function setMessages($values) … … 107 107 108 108 /** 109 * @see sfValidator 109 * @see sfValidatorBase 110 110 */ 111 111 public function getOption($name) … … 115 115 116 116 /** 117 * @see sfValidator 117 * @see sfValidatorBase 118 118 */ 119 119 public function setOption($name, $value) … … 123 123 124 124 /** 125 * @see sfValidator 125 * @see sfValidatorBase 126 126 */ 127 127 public function hasOption($name) … … 131 131 132 132 /** 133 * @see sfValidator 133 * @see sfValidatorBase 134 134 */ 135 135 public function getOptions() … … 139 139 140 140 /** 141 * @see sfValidator 141 * @see sfValidatorBase 142 142 */ 143 143 public function setOptions($values) … … 147 147 148 148 /** 149 * @see sfValidator 149 * @see sfValidatorBase 150 150 */ 151 151 public function asString($indent = 0) … … 155 155 156 156 /** 157 * @see sfValidator 157 * @see sfValidatorBase 158 158 */ 159 159 public function getDefaultOptions() … … 163 163 164 164 /** 165 * @see sfValidator 165 * @see sfValidatorBase 166 166 */ 167 167 public function getDefaultMessages() branches/1.1/lib/validator/sfValidatorError.class.php
r5581 r7902 26 26 * Constructor. 27 27 * 28 * @param sfValidator A sfValidatorinstance29 * @param string The error code30 * @param array An array of named arguments needed to render the error message28 * @param sfValidatorBase A sfValidatorBase instance 29 * @param string The error code 30 * @param array An array of named arguments needed to render the error message 31 31 */ 32 public function __construct(sfValidator $validator, $code, $arguments = array())32 public function __construct(sfValidatorBase $validator, $code, $arguments = array()) 33 33 { 34 34 $this->validator = $validator; … … 68 68 * Returns the validator that triggered this error. 69 69 * 70 * @return sfValidator A sfValidatorinstance70 * @return sfValidatorBase A sfValidatorBase instance 71 71 */ 72 72 public function getValidator() branches/1.1/lib/validator/sfValidatorErrorSchema.class.php
r7044 r7902 28 28 * Constructor. 29 29 * 30 * @param sfValidator A sfValidatorinstance31 * @param array An array of errors32 */ 33 public function __construct(sfValidator $validator, $errors = array())30 * @param sfValidatorBase A sfValidatorBase instance 31 * @param array An array of errors 32 */ 33 public function __construct(sfValidatorBase $validator, $errors = array()) 34 34 { 35 35 $this->validator = $validator; branches/1.1/lib/validator/sfValidatorFile.class.php
r6870 r7902 23 23 * @version SVN: $Id$ 24 24 */ 25 class sfValidatorFile extends sfValidator 25 class sfValidatorFile extends sfValidatorBase 26 26 { 27 27 /** … … 50 50 * * extension 51 51 * 52 * @see sfValidator 52 * @see sfValidatorBase 53 53 */ 54 54 protected function configure($options = array(), $messages = array()) … … 89 89 * * size: The file size in bytes (optional) 90 90 * 91 * @see sfValidator 91 * @see sfValidatorBase 92 92 */ 93 93 protected function doClean($value) … … 262 262 263 263 /** 264 * @see sfValidator 264 * @see sfValidatorBase 265 265 */ 266 266 protected function isEmpty($value) branches/1.1/lib/validator/sfValidatorFromDescription.class.php
r6937 r7902 24 24 25 25 /** 26 * @see sfValidator 26 * @see sfValidatorBase 27 27 */ 28 28 public function __construct($string, $options = array(), $messages = array()) branches/1.1/lib/validator/sfValidatorInteger.class.php
r5882 r7902 17 17 * @version SVN: $Id$ 18 18 */ 19 class sfValidatorInteger extends sfValidator 19 class sfValidatorInteger extends sfValidatorBase 20 20 { 21 21 /** … … 32 32 * * min 33 33 * 34 * @see sfValidator 34 * @see sfValidatorBase 35 35 */ 36 36 protected function configure($options = array(), $messages = array()) … … 46 46 47 47 /** 48 * @see sfValidator 48 * @see sfValidatorBase 49 49 */ 50 50 protected function doClean($value) branches/1.1/lib/validator/sfValidatorNumber.class.php
r5882 r7902 17 17 * @version SVN: $Id$ 18 18 */ 19 class sfValidatorNumber extends sfValidator 19 class sfValidatorNumber extends sfValidatorBase 20 20 { 21 21 /** … … 32 32 * * min 33 33 * 34 * @see sfValidator 34 * @see sfValidatorBase 35 35 */ 36 36 protected function configure($options = array(), $messages = array()) … … 46 46 47 47 /** 48 * @see sfValidator 48 * @see sfValidatorBase 49 49 */ 50 50 protected function doClean($value) branches/1.1/lib/validator/sfValidatorOr.class.php
r6951 r7902 17 17 * @version SVN: $Id$ 18 18 */ 19 class sfValidatorOr extends sfValidator 19 class sfValidatorOr extends sfValidatorBase 20 20 { 21 21 protected … … 28 28 * 29 29 * * null 30 * * a sfValidator instance31 * * an array of sfValidator instances30 * * a sfValidatorBase instance 31 * * an array of sfValidatorBase instances 32 32 * 33 33 * @param mixed Initial validators … … 35 35 * @param array An array of error messages 36 36 * 37 * @see sfValidator 37 * @see sfValidatorBase 38 38 */ 39 39 public function __construct($validators = null, $options = array(), $messages = array()) 40 40 { 41 if ($validators instanceof sfValidator )41 if ($validators instanceof sfValidatorBase) 42 42 { 43 43 $this->addValidator($validators); … … 52 52 else if (!is_null($validators)) 53 53 { 54 throw new InvalidArgumentException('sfValidatorOr constructor takes a sfValidator object, or a sfValidatorarray.');54 throw new InvalidArgumentException('sfValidatorOr constructor takes a sfValidatorBase object, or a sfValidatorBase array.'); 55 55 } 56 56 … … 59 59 60 60 /** 61 * @see sfValidator 61 * @see sfValidatorBase 62 62 */ 63 63 protected function configure($options = array(), $messages = array()) … … 69 69 * Adds a validator. 70 70 * 71 * @param sfValidator A sfValidatorinstance71 * @param sfValidatorBase A sfValidatorBase instance 72 72 */ 73 public function addValidator(sfValidator $validator)73 public function addValidator(sfValidatorBase $validator) 74 74 { 75 75 $this->validators[] = $validator; … … 79 79 * Returns an array of the validators. 80 80 * 81 * @return array An array of sfValidator instances81 * @return array An array of sfValidatorBase instances 82 82 */ 83 83 public function getValidators() … … 87 87 88 88 /** 89 * @see sfValidator 89 * @see sfValidatorBase 90 90 */ 91 91 protected function doClean($value) … … 113 113 114 114 /** 115 * @see sfValidator 115 * @see sfValidatorBase 116 116 */ 117 117 public function asString($indent = 0) branches/1.1/lib/validator/sfValidatorPass.class.php
r5581 r7902 17 17 * @version SVN: $Id$ 18 18 */ 19 class sfValidatorPass extends sfValidator 19 class sfValidatorPass extends sfValidatorBase 20 20 { 21 21 /** 22 * @see sfValidator 22 * @see sfValidatorBase 23 23 */ 24 24 public function clean($value) … … 28 28 29 29 /** 30 * @see sfValidator 30 * @see sfValidatorBase 31 31 */ 32 32 protected function doClean($value) branches/1.1/lib/validator/sfValidatorRegex.class.php
r5816 r7902 17 17 * @version SVN: $Id$ 18 18 */ 19 class sfValidatorRegex extends sfValidator 19 class sfValidatorRegex extends sfValidatorBase 20 20 { 21 21 /** … … 26 26 * * pattern: A regex pattern compatible with PCRE (required) 27 27 * 28 * @see sfValidator 28 * @see sfValidatorBase 29 29 */ 30 30 protected function configure($options = array(), $messages = array()) … … 34 34 35 35 /** 36 * @see sfValidator 36 * @see sfValidatorBase 37 37 */ 38 38 protected function doClean($value) branches/1.1/lib/validator/sfValidatorSchema.class.php
r7053 r7902 19 19 * @version SVN: $Id$ 20 20 */ 21 class sfValidatorSchema extends sfValidator implements ArrayAccess21 class sfValidatorSchema extends sfValidatorBase implements ArrayAccess 22 22 { 23 23 protected … … 32 32 * 33 33 * * null 34 * * an array of named sfValidator instances34 * * an array of named sfValidatorBase instances 35 35 * 36 36 * @param mixed Initial fields … … 38 38 * @param array An array of error messages 39 39 * 40 * @see sfValidator 40 * @see sfValidatorBase 41 41 */ 42 42 public function __construct($fields = null, $options = array(), $messages = array()) … … 51 51 else if (!is_null($fields)) 52 52 { 53 throw new InvalidArgumentException('sfValidatorSchema constructor takes an array of sfValidator objects.');53 throw new InvalidArgumentException('sfValidatorSchema constructor takes an array of sfValidator