protected function _validate()
	{

		// Check if validation is necessary and parsed
		if (static::$validates === false) return true;
		if (is_null(static::$_validation)) {
			require_once("Validation/Validation.php");
			static::$_validation = Validation\Validation::onModel(get_called_class());
		}

		
		// Go validate!
		$result = static::$_validation->validate($this);

		// Success?
		if ($result->success == false) {

			// Store errors
			$this->_errors = $result->errors;

			return false;
		} else {

			// Clear errors
			$this->_errors = null;

		}

		// True
		return true;

	}
protected function _validate()
	{

		// Check if validation is necessary and parsed
		if (static::$validates === false) return true;
		if (is_null(static::$_validation)) {
			require_once("Validation/Validation.php");
			static::$_validation = Validation\Validation::onModel(get_called_class());
		}

		
		// Go validate!
		$result = static::$_validation->validate($this);

		// Success?
		if ($result->success == false) {

			// Store errors
			$this->_errors = $result->errors;

			return false;
		} else {

			// Clear errors
			$this->_errors = null;

		}

		// True
		return true;

	}
protected function _validate ( ) { // Check if validation is necessary and parsed if ( static :: $ validates === false ) return true ; if ( is_null ( static :: $ _validation ) ) { require_once ( "Validation/Validation.php" ) ; static :: $ _validation = Validation \ Validation :: onModel ( get_called_class ( ) ) ; } // Go validate! $ result = static :: $ _validation -> validate ( $ this ) ; // Success? if ( $ result -> success == false ) { // Store errors $ this -> _errors = $ result -> errors ; return false ; } else { // Clear errors $ this -> _errors = null ; } // True return true ; }
Validates the model.

@return boolean True if passed validators otherwise false
Validates the model .