Changeset 10734
- Timestamp:
- 08/07/08 09:12:56 (4 months ago)
- Files:
-
- doc/branches/1.1/forms_book/en/02-Form-Validation.txt (modified) (4 diffs)
- doc/branches/1.1/forms_book/fr/02-Form-Validation.txt (modified) (4 diffs)
- doc/branches/1.1/forms_book/hu/02-Form-Validation.txt (modified) (4 diffs)
- doc/branches/1.2/forms_book/en/02-Form-Validation.txt (modified) (4 diffs)
- doc/branches/1.2/forms_book/fr/02-Form-Validation.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
doc/branches/1.1/forms_book/en/02-Form-Validation.txt
r10491 r10734 514 514 515 515 [php] 516 $this->validatorSchema->setPostValidator(new sfValidatorSchemaCompare('password', '==', 'password_again'));516 $this->validatorSchema->setPostValidator(new sfValidatorSchemaCompare('password', sfValidatorSchemaCompare::EQUAL, 'password_again')); 517 517 518 518 >**Tip** … … 525 525 [php] 526 526 $this->validatorSchema->setPostValidator( 527 new sfValidatorSchemaCompare('start_date', '<=', 'end_date',527 new sfValidatorSchemaCompare('start_date', sfValidatorSchemaCompare::LESS_THAN_EQUAL, 'end_date', 528 528 array(), 529 array('invalid' => 'The start date ("%left_field%") must be before the end date ( %right_field%)')529 array('invalid' => 'The start date ("%left_field%") must be before the end date ("%right_field%")') 530 530 ) 531 531 ); … … 539 539 [php] 540 540 $this->validatorSchema->setPostValidator( 541 new sfValidatorSchemaCompare('start_date', '<=', 'end_date',541 new sfValidatorSchemaCompare('start_date', sfValidatorSchemaCompare::LESS_THAN_EQUAL, 'end_date', 542 542 array('throw_global_error' => true), 543 array('invalid' => 'The start date ("%left_field%") must be before the end date ( %right_field%)')543 array('invalid' => 'The start date ("%left_field%") must be before the end date ("%right_field%")') 544 544 ) 545 545 ); … … 559 559 [php] 560 560 $this->validatorSchema->setPostValidator(new sfValidatorAnd(array( 561 new sfValidatorSchemaCompare('start_date', '<=', 'end_date'),562 new sfValidatorSchemaCompare('password', '==', 'password_again'),561 new sfValidatorSchemaCompare('start_date', sfValidatorSchemaCompare::LESS_THAN_EQUAL, 'end_date'), 562 new sfValidatorSchemaCompare('password', sfValidatorSchemaCompare::EQUAL, 'password_again'), 563 563 ))); 564 564 doc/branches/1.1/forms_book/fr/02-Form-Validation.txt
r10228 r10734 514 514 515 515 [php] 516 $this->validatorSchema->setPostValidator(new sfValidatorSchemaCompare('password', '==', 'password_again'));516 $this->validatorSchema->setPostValidator(new sfValidatorSchemaCompare('password', sfValidatorSchemaCompare::EQUAL, 'password_again')); 517 517 518 518 >**Tip** … … 526 526 [php] 527 527 $this->validatorSchema->setPostValidator( 528 new sfValidatorSchemaCompare('start_date', '<=', 'end_date',528 new sfValidatorSchemaCompare('start_date', sfValidatorSchemaCompare::LESS_THAN_EQUAL, 'end_date', 529 529 array(), 530 array('invalid' => 'The start date ("%left_field%") must be before the end date ( %right_field%)')530 array('invalid' => 'The start date ("%left_field%") must be before the end date ("%right_field%")') 531 531 ) 532 532 ); … … 540 540 [php] 541 541 $this->validatorSchema->setPostValidator( 542 new sfValidatorSchemaCompare('start_date', '<=', 'end_date',542 new sfValidatorSchemaCompare('start_date', sfValidatorSchemaCompare::LESS_THAN_EQUAL, 'end_date', 543 543 array('throw_global_error' => true), 544 array('invalid' => 'The start date ("%left_field%") must be before the end date ( %right_field%)')544 array('invalid' => 'The start date ("%left_field%") must be before the end date ("%right_field%")') 545 545 ) 546 546 ); … … 560 560 [php] 561 561 $this->validatorSchema->setPostValidator(new sfValidatorAnd(array( 562 new sfValidatorSchemaCompare('start_date', '<=', 'end_date'),563 new sfValidatorSchemaCompare('password', '==', 'password_again'),562 new sfValidatorSchemaCompare('start_date', sfValidatorSchemaCompare::LESS_THAN_EQUAL, 'end_date'), 563 new sfValidatorSchemaCompare('password', sfValidatorSchemaCompare::EQUAL, 'password_again'), 564 564 ))); 565 565 doc/branches/1.1/forms_book/hu/02-Form-Validation.txt
r10406 r10734 514 514 515 515 [php] 516 $this->validatorSchema->setPostValidator(new sfValidatorSchemaCompare('password', '==', 'password_again'));516 $this->validatorSchema->setPostValidator(new sfValidatorSchemaCompare('password', sfValidatorSchemaCompare::EQUAL, 'password_again')); 517 517 518 518 >**Tip** … … 525 525 [php] 526 526 $this->validatorSchema->setPostValidator( 527 new sfValidatorSchemaCompare('start_date', '<=', 'end_date',527 new sfValidatorSchemaCompare('start_date', sfValidatorSchemaCompare::LESS_THAN_EQUAL, 'end_date', 528 528 array(), 529 array('invalid' => 'The start date ("%left_field%") must be before the end date ( %right_field%)')529 array('invalid' => 'The start date ("%left_field%") must be before the end date ("%right_field%")') 530 530 ) 531 531 ); … … 539 539 [php] 540 540 $this->validatorSchema->setPostValidator( 541 new sfValidatorSchemaCompare('start_date', '<=', 'end_date',541 new sfValidatorSchemaCompare('start_date', sfValidatorSchemaCompare::LESS_THAN_EQUAL, 'end_date', 542 542 array('throw_global_error' => true), 543 array('invalid' => 'The start date ("%left_field%") must be before the end date ( %right_field%)')543 array('invalid' => 'The start date ("%left_field%") must be before the end date ("%right_field%")') 544 544 ) 545 545 ); … … 559 559 [php] 560 560 $this->validatorSchema->setPostValidator(new sfValidatorAnd(array( 561 new sfValidatorSchemaCompare('start_date', '<=', 'end_date'),562 new sfValidatorSchemaCompare('password', '==', 'password_again'),561 new sfValidatorSchemaCompare('start_date', sfValidatorSchemaCompare::LESS_THAN_EQUAL, 'end_date'), 562 new sfValidatorSchemaCompare('password', sfValidatorSchemaCompare::EQUAL, 'password_again'), 563 563 ))); 564 564 doc/branches/1.2/forms_book/en/02-Form-Validation.txt
r10228 r10734 514 514 515 515 [php] 516 $this->validatorSchema->setPostValidator(new sfValidatorSchemaCompare('password', '==', 'password_again'));516 $this->validatorSchema->setPostValidator(new sfValidatorSchemaCompare('password', sfValidatorSchemaCompare::EQUAL, 'password_again')); 517 517 518 518 >**Tip** … … 525 525 [php] 526 526 $this->validatorSchema->setPostValidator( 527 new sfValidatorSchemaCompare('start_date', '<=', 'end_date',527 new sfValidatorSchemaCompare('start_date', sfValidatorSchemaCompare::LESS_THAN_EQUAL, 'end_date', 528 528 array(), 529 array('invalid' => 'The start date ("%left_field%") must be before the end date ( %right_field%)')529 array('invalid' => 'The start date ("%left_field%") must be before the end date ("%right_field%")') 530 530 ) 531 531 ); … … 539 539 [php] 540 540 $this->validatorSchema->setPostValidator( 541 new sfValidatorSchemaCompare('start_date', '<=', 'end_date',541 new sfValidatorSchemaCompare('start_date', sfValidatorSchemaCompare::LESS_THAN_EQUAL, 'end_date', 542 542 array('throw_global_error' => true), 543 array('invalid' => 'The start date ("%left_field%") must be before the end date ( %right_field%)')543 array('invalid' => 'The start date ("%left_field%") must be before the end date ("%right_field%")') 544 544 ) 545 545 ); … … 559 559 [php] 560 560 $this->validatorSchema->setPostValidator(new sfValidatorAnd(array( 561 new sfValidatorSchemaCompare('start_date', '<=', 'end_date'),562 new sfValidatorSchemaCompare('password', '==', 'password_again'),561 new sfValidatorSchemaCompare('start_date', sfValidatorSchemaCompare::LESS_THAN_EQUAL, 'end_date'), 562 new sfValidatorSchemaCompare('password', sfValidatorSchemaCompare::EQUAL, 'password_again'), 563 563 ))); 564 564 doc/branches/1.2/forms_book/fr/02-Form-Validation.txt
r10229 r10734 514 514 515 515 [php] 516 $this->validatorSchema->setPostValidator(new sfValidatorSchemaCompare('password', '==', 'password_again'));516 $this->validatorSchema->setPostValidator(new sfValidatorSchemaCompare('password', sfValidatorSchemaCompare::EQUAL, 'password_again')); 517 517 518 518 >**Tip** … … 526 526 [php] 527 527 $this->validatorSchema->setPostValidator( 528 new sfValidatorSchemaCompare('start_date', '<=', 'end_date',528 new sfValidatorSchemaCompare('start_date', sfValidatorSchemaCompare::LESS_THAN_EQUAL, 'end_date', 529 529 array(), 530 array('invalid' => 'The start date ("%left_field%") must be before the end date ( %right_field%)')530 array('invalid' => 'The start date ("%left_field%") must be before the end date ("%right_field%")') 531 531 ) 532 532 ); … … 540 540 [php] 541 541 $this->validatorSchema->setPostValidator( 542 new sfValidatorSchemaCompare('start_date', '<=', 'end_date',542 new sfValidatorSchemaCompare('start_date', sfValidatorSchemaCompare::LESS_THAN_EQUAL, 'end_date', 543 543 array('throw_global_error' => true), 544 array('invalid' => 'The start date ("%left_field%") must be before the end date ( %right_field%)')544 array('invalid' => 'The start date ("%left_field%") must be before the end date ("%right_field%")') 545 545 ) 546 546 ); … … 560 560 [php] 561 561 $this->validatorSchema->setPostValidator(new sfValidatorAnd(array( 562 new sfValidatorSchemaCompare('start_date', '<=', 'end_date'),563 new sfValidatorSchemaCompare('password', '==', 'password_again'),562 new sfValidatorSchemaCompare('start_date', sfValidatorSchemaCompare::LESS_THAN_EQUAL, 'end_date'), 563 new sfValidatorSchemaCompare('password', sfValidatorSchemaCompare::EQUAL, 'password_again'), 564 564 ))); 565 565