create an empty object which will contains user informations
	
	
	
		object user
		
			createUserObject
		
				()
			
	
		
			
	 
	
	 
	
	
delete a user
	
	
	
		void
		
			deleteByLogin
		
					(string $login)
			
	
			
					- 
				string
				$login: login of the user to delete			
 
				
		
			
	 
	
	 
	
	
gets all users
	
	
	
		array
		
			findAll
		
				()
			
	
		
			
	 
	
	 
	
	
gets all users for which the login corresponds to the given pattern
	
	
	
		array
		
			findByLoginPattern
		
					(string $pattern)
			
	
			
					- 
				string
				$pattern: the pattern			
 
				
		
			
	 
	
	 
	
	
get user informations
	
	
	
		object user
		
			getByLogin
		
					(string $login)
			
	
			
					- 
				string
				$login: login of the user on which we want to get informations			
 
				
		
			
	 
	
	 
	
	
get the user corresponding to the given login and encrypted password
	
	
	
		object user
		
			getByLoginPassword
		
					(string $login,  $cryptedpassword, string $password)
			
	
			
					- 
				string
				$login: the user login			
 
					- 
				string
				$password: the new encrypted password			
 
					- 
				
				$cryptedpassword			
 
				
		
			
	 
	
	 
	
	
save a new user
	
	
	
		void
		
			insert
		
					(object $user)
			
	
			
					- 
				object
				$user: user informations			
 
				
		
			
	 
	
	 
	
	
update user informations
	
	
	
		void
		
			update
		
					(object $user)
			
	
			
					- 
				object
				$user: user informations			
 
				
		
			
	 
	
	 
	
	
change the password of a user
	
	
	
		void
		
			updatePassword
		
					(string $login,  $cryptedpassword, string $password)
			
	
			
					- 
				string
				$login: the user login			
 
					- 
				string
				$password: the new encrypted password			
 
					- 
				
				$cryptedpassword