Administrator __construct(
$user, int
$valid, string
$user. 
)
     |   
     | 
 
	Constructor for an Administrator
			Parameters:
			
					| 
				string   | 
				
				$user.:  | 
				
							 | 
					| 
				int   | 
				
				$valid:  | 
				
				 used to signal kind of admin object			 | 
					| 
				   | 
				
				$user:  | 
				
							 | 
				
	
	
		
		
	
 
	
    
     
		void createPrimealbum(
[
$new = true], [
$name = NULL] 
)
     |   
     | 
 
	Creates a "prime" album for the user. Album name is based on the userid
			Parameters:
			
	
	
		
		
	
 
	
	Returns the user's "prime" album. See setAlbum().
	
	
		
		
	
 
	
    
     
		void getChallengePhraseInfo(
)
     |   
     | 
 
	
	
	
		
		
	
 
	
	Data to support other credential systems integration
	
	
		
		
	
 
	
	Returns the unformatted date
	
	
		
		
	
 
	
	Returns the user's prefered language
	
	
		
		
	
 
	
	returns the last time the user has logged on
	
	
		
		
	
 
	
    
     
		void getObjects(
[
$what = NULL] 
)
     |   
     | 
 
	Saves local copy of managed objects.
NOTE: The database is NOT updated by this, the user object MUST be saved to  cause an update
			Parameters:
			
	
	
		
		
	
 
	
	Returns stored password hash
	
	
		
		
	
 
	
	Uptates the database with all changes
	
	
			
		Redefinition of:
		
			- PersistentObject::save()
 
						- Save the updates made to this object since the last update. Returns  true if successful, false if not.
 
					
		
		
	
 
	
	Records the "prime album" of a user. Prime albums are linked to the user and  removed if the user is removed.
			Parameters:
			
	
	
		
		
	
 
	
    
     
		void setChallengePhraseInfo(
$challenge, 
$response 
)
     |   
     | 
 
	
			Parameters:
			
	
	
		
		
	
 
	
    
     
		void setCredentials(
$cred 
)
     |   
     | 
 
	
			Parameters:
			
	
	
		
		
	
 
	
    
     
		void setCustomData(
$custom_data 
)
     |   
     | 
 
	Stores custom data
			Parameters:
			
	
	
		
		
	
 
	
    
     
		void setDateTime(
string
$datetime 
)
     |   
     | 
 
	Stores the date
			Parameters:
			
					| 
				string   | 
				
				$datetime:  | 
				
				 formatted date			 | 
				
	
	
		
		
	
 
	
    
     
		void setEmail(
$admin_e 
)
     |   
     | 
 
	Stores the user email
			Parameters:
			
	
	
		
		
	
 
	
	Sets the user's group.
NOTE this does NOT set rights, etc. that must be done separately
			Parameters:
			
	
	
		
		
	
 
	
    
     
		void setLanguage(
$locale 
)
     |   
     | 
 
	Sets the user's preferec language
			Parameters:
			
	
	
		
		
	
 
	
	Stores the user name
			Parameters:
			
	
	
		
		
	
 
	
    
     
		void setObjects(
$objects 
)
     |   
     | 
 
	Returns local copy of managed objects.
			Parameters:
			
	
	
		
		
	
 
	
    
     
		void setPass(
$pwd
$pwd 
)
     |   
     | 
 
	Hashes and stores the password
			Parameters:
			
	
	
		
		
	
 
	
	Sets the users quota
			Parameters:
			
	
	
		
		
	
 
	
    
     
		void setRights(
$rights 
)
     |   
     | 
 
	Stores user rights
			Parameters:
			
	
	
		
		
	
 
	
	Sets the user's user id
			Parameters:
			
	
	
		
		
	
 
	
	Sets the "valid" flag. Valid is 1 for users, 0 for groups and templates
			Parameters: