<?php

/**
 * @version DR1.7
 */
class FocusValidatorDecorator extends ValidatorDecorator {



	/**
	 * Validates user input
	 * 
	 * @return true (user input valid)
	 */
	public function valid() {
		$valid = $this->validator->valid();
		if (!$valid and !FocusFilter::isFocusSet()) {
			FocusFilter::setFocus($this->validator->view);
		}
		return $valid;
	}



} // FocusValidatorDecorator

?>