protected function setCurrentUser($user) {
		
		if (is_a($user,'Pair\User')) {

			$this->currentUser = $user;
			
			// sets user language
			$tran = Translator::getInstance();
			$tran->setLocale($user->getLocale());
				
		}

	}
protected function setCurrentUser($user) {
		
		if (is_a($user,'Pair\User')) {

			$this->currentUser = $user;
			
			// sets user language
			$tran = Translator::getInstance();
			$tran->setLocale($user->getLocale());
				
		}

	}
protected function setCurrentUser ( $ user ) { if ( is_a ( $ user , 'Pair\User' ) ) { $ this -> currentUser = $ user ; // sets user language $ tran = Translator :: getInstance ( ) ; $ tran -> setLocale ( $ user -> getLocale ( ) ) ; } }
Sets current user, default template and translation locale.

@param	User	User object or inherited class object.
Sets current user default template and translation locale .