Changeset 1510 for branches/3.0
- Timestamp:
- 11/25/2006 03:13:03 PM (2 years ago)
- Location:
- branches/3.0
- Files:
-
- 2 modified
-
HISTORY (modified) (1 diff)
-
framework/Web/UI/WebControls/TBaseValidator.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/HISTORY
r1508 r1510 5 5 ENH: Ticket#446 - Added TMetaTagCollection.getMetaTagByID method (Qiang) 6 6 CHG: Ticket#437 - __autoload is replaced by spl_autoload_register (Qiang) 7 CHG: Ticket#454 - Redundant PHP Version Check 7 CHG: Ticket#454 - Redundant PHP Version Check (Qiang) 8 CHG: Ticket#460 - Validators will not perform validation if parents are disabled (Qiang) 8 9 CHG: TRepeater does not render <span> anymore for empty item template (Qiang) 9 10 CHG: THttpRequest.constructUrl() now encodes ampersand by default (Qiang) -
branches/3.0/framework/Web/UI/WebControls/TBaseValidator.php
r1397 r1510 483 483 public function validate() 484 484 { 485 if($visible=$this->getVisible(true)) 485 $this->setIsValid(true); 486 if($this->getVisible(true) && $this->getEnabled(true)) 487 { 486 488 $this->onValidate(); 487 $this->setIsValid(true); 488 if($this->getValidationTarget() && $visible && $this->getEnabled()) 489 { 490 if($this->evaluateIsValid()) 489 if($this->getValidationTarget()) 491 490 { 492 $this->setIsValid(true); 493 $this->onSuccess(); 494 } 495 else 496 { 497 $this->setIsValid(false); 498 $this->onError(); 491 if($this->evaluateIsValid()) 492 { 493 $this->setIsValid(true); 494 $this->onSuccess(); 495 } 496 else 497 { 498 $this->setIsValid(false); 499 $this->onError(); 500 } 499 501 } 500 502 }
