OWeb/defaults/controllers/OWeb/Helpers/Form/Elements/AbstractElement.php
public function validate(){
		
		if(empty($this->_validators)){
			$this->_valid = true;
			return true;
		}
		
		$valid = false;
		$newValue = null;
		foreach ($this->_validators as $validator) {
			try{
				$newGeneratedValue = $validator->valideteValue($this->getVal());
				if(!$valid)
					$newValue = $newGeneratedValue;
				$valid = true;
			} catch ( \OWeb\types\UserException $ex){
				$valid = $valid || false;
				$this->_errMessages[] = $ex->getMessage();
				$this->_errDesriptions[] = $ex->getUserDescription();
			}
		}
		
		if($valid)
			$this->_trueVal = $newValue;
		else 
			$this->_trueVal = null;
		
		$this->_valid = $valid;
		
		return $valid;
	}
public function validate(){
		
		if(empty($this->_validators)){
			$this->_valid = true;
			return true;
		}
		
		$valid = false;
		$newValue = null;
		foreach ($this->_validators as $validator) {
			try{
				$newGeneratedValue = $validator->valideteValue($this->getVal());
				if(!$valid)
					$newValue = $newGeneratedValue;
				$valid = true;
			} catch ( \OWeb\types\UserException $ex){
				$valid = $valid || false;
				$this->_errMessages[] = $ex->getMessage();
				$this->_errDesriptions[] = $ex->getUserDescription();
			}
		}
		
		if($valid)
			$this->_trueVal = $newValue;
		else 
			$this->_trueVal = null;
		
		$this->_valid = $valid;
		
		return $valid;
	}
public function validate ( ) { if ( empty ( $ this -> _validators ) ) { $ this -> _valid = true ; return true ; } $ valid = false ; $ newValue = null ; foreach ( $ this -> _validators as $ validator ) { try { $ newGeneratedValue = $ validator -> valideteValue ( $ this -> getVal ( ) ) ; if ( ! $ valid ) $ newValue = $ newGeneratedValue ; $ valid = true ; } catch ( \ OWeb \ types \ UserException $ ex ) { $ valid = $ valid || false ; $ this -> _errMessages [ ] = $ ex -> getMessage ( ) ; $ this -> _errDesriptions [ ] = $ ex -> getUserDescription ( ) ; } } if ( $ valid ) $ this -> _trueVal = $ newValue ; else $ this -> _trueVal = null ; $ this -> _valid = $ valid ; return $ valid ; }
Will start the validation procees.

@return boolean Whatever the validation was sucessfull or not
Will start the validation procees .