public function Validate()
 {
     $blnToReturn = parent::Validate();
     if ($blnToReturn) {
         if ($this->blnRequired && !$this->strFile) {
             $blnToReturn = false;
             if ($this->strName) {
                 $this->strValidationError = $this->strName . QApplication::Translate(' is required');
             } else {
                 $this->strValidationError = $this->strName . QApplication::Translate('Required');
             }
         }
     }
     return $blnToReturn;
 }
Exemple #2
0
 public function Validate()
 {
     $blnToReturn = parent::Validate();
     if (!$this->ValidateToken()) {
         $blnToReturn = false;
     }
     foreach ($this->objForm->GetErrorControls() as $objControl) {
         $objControl->Blink();
     }
     return $blnToReturn;
 }
 public function Validate()
 {
     return $this->objDelegate->Validate(parent::Validate());
 }