public invalidate ( string $message = null, boolean $handled = false ) | ||
$message | string | error message |
$handled | boolean | Whether the event is handled. Defaults to false. When a handler sets this to be true, the event processing will stop and ignore the rest of the uninvoked event handlers. |
public function invalidate($message = null, $handled = false)
{
$this->isValid = false;
$this->handled = $handled;
if (!empty($message)) {
$this->_errorMessage[] = $message;
}
}