Пример #1
0
 /**
  * @param boolean whether the value is valid; this method will trigger a clientside update if needed
  */
 public function setIsValid($value)
 {
     // Always update the clientside, since the clientside's value for IsValid
     // it could have been changed by the clientside validation.
     parent::setIsValid($value);
     if ($this->getActiveControl()->canUpdateClientSide()) {
         $client = $this->getPage()->getCallbackClient();
         $func = 'Prado.Validation.updateActiveCustomValidator';
         $client->callClientFunction($func, array($this, $value));
     }
 }