Пример #1
0
 /**
  * Sets the text for the error message. Updates client-side error message.
  * @param string the error message
  */
 public function setErrorMessage($value)
 {
     if (parent::getErrorMessage() === $value) {
         return;
     }
     parent::setErrorMessage($value);
     if ($this->getActiveControl()->canUpdateClientSide()) {
         $client = $this->getPage()->getCallbackClient();
         $func = 'Prado.Validation.setErrorMessage';
         $client->callClientFunction($func, array($this, $value));
     }
 }