Class: UserService

Source Location: /CORE/system/classes/user/UserService.php

Class UserService

Class Overview

DO NOT USE THIS CLASS ANY LONGER, IT WILL BE REMOVED IN ONE OF THE NEXT VERSIONS!

Use PrincipalService instead:

  1.  $services ServiceFactory::get();
  2.  $principalService $services->getPrincipalService();

Located in /CORE/system/classes/user/UserService.php [line 45]



		
				Author(s):
		
  • Kevin Papst
API Tags:
Deprecated:  

Information Tags:
Version:  $Id: UserService.php,v 1.6 2006/11/26 22:04:22 kpapst Exp $
Copyright:  Copyright (C) 2002-2006 Kevin Papst
License:  GNU Public License

Methods

[ Top ]
Method Summary
UserService   UserService()   Default Constructor.
int   getUserByName()   This returns the User ID for the searched Name or the ID for the anonymous User _AID_.
Object   getUserEnumeration()   This returns a Enumeration of all User
Principal   getUserInfo()   This returns a new instance of the Principal Object

[ Top ]
Methods
Constructor UserService  [line 51]

  UserService UserService( )

Default Constructor.



[ Top ]
getUserByName  [line 86]

  int getUserByName( String $name  )

This returns the User ID for the searched Name or the ID for the anonymous User _AID_.

Parameters:
String   $name:  the user Name to lookup

API Tags:
Return:  the User ID or _AID_
Deprecated:  use PrincipalService->lookup() instead!


[ Top ]
getUserEnumeration  [line 61]

  Object getUserEnumeration( )

This returns a Enumeration of all User


API Tags:
Return:  a new Enumeration of all User


[ Top ]
getUserInfo  [line 72]

  Principal getUserInfo( int $id  )

This returns a new instance of the Principal Object

Parameters:
int   $id:  the user ID to get the information for

API Tags:
Return:  a new instance of Principal


[ Top ]