private function setError($error) {
		
		$this->errors[] = $error;
		$app = Application::getInstance();
		$app->logError($error);
		
	}
private function setError($error) {
		
		$this->errors[] = $error;
		$app = Application::getInstance();
		$app->logError($error);
		
	}
private function setError ( $ error ) { $ this -> errors [ ] = $ error ; $ app = Application :: getInstance ( ) ; $ app -> logError ( $ error ) ; }
Will sets an error on queue of main Application singleton object.

@param	string	Error text.
Will sets an error on queue of main Application singleton object .