コード例 #1
0
 function setValidator($options, $messages = array())
 {
     $options = array_merge($options, array('client_side_validable' => false));
     if (!$this->_validator) {
         $this->_validator = new HtmlValidator($options, $messages);
         if ($this->_error_code) {
             $this->_validator->setErrorCode($this->_error_code);
         }
     } else {
         parent::setValidator($options, $messages);
     }
 }