original_string: 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;
  
  	}
code: 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;
  
  	}
code_tokens: 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 ; }
docstring: Validates the model.
  
  @return boolean True if passed validators otherwise false
docstring_tokens: Validates the model .