Arbit - project tracking

Arbit - project tracking

API documentation :: Docs For Class arbitUserFacade

Core::Facade::arbitUserFacade

Interface arbitUserFacade

User facade defining all methods required to access user related data in the backend.

User facade defining all methods required to access user related data in the backend.

Author(s):
Version:   $Revision: 1670 $
License:   GPL

Method Summary

public mixed createUser( $name )
Create a new user Create a new user with the given name. there already is a user with the given name.
public array getAllUserIDs( )
Get array of users Return an array with the IDs of all available users in the database.
public array getUserData( $user )
Get user data
public array getUserDataByLogin( $login )
Get user by login Get the user id for the user given by its login name.
public void updateUserData( $user , $data )
Update stored information for the given user The array with the information to update may any number of the common keys, and only the given keys will be updated in the storage backend.

Methods

createUser

mixed createUser( string $name )

Create a new user Create a new user with the given name. there already is a user with the given name.

Create a new user Create a new user with the given name. An exception will be thrown if there already is a user with the given name. The ID generated by the backend in some way is returned for later reference. The type of the identifier depends on the backend, no assumptions should be made here.

Parameters:
Name Type Description
$name string

getAllUserIDs

array getAllUserIDs( )

Get array of users Return an array with the IDs of all available users in the database.

Get array of users Return an array with the IDs of all available users in the database.

getUserData

array getUserData( string $user )

Get user data

Get user data Get data for the given user id. The data should be returned as an array, and should contain the following keys:

  • login
  • email
  • name
  • valid
  • auth_type
  • auth_infos
  • settings
  • persistenceToken
  • revisions

Parameters:
Name Type Description
$user string

getUserDataByLogin

array getUserDataByLogin( string $login )

Get user by login Get the user id for the user given by its login name.

Get user by login Get the user id for the user given by its login name.

Parameters:
Name Type Description
$login string

updateUserData

void updateUserData( string $user , array $data )

Update stored information for the given user The array with the information to update may any number of the common keys, and only the given keys will be updated in the storage backend.

Update stored information for the given user The array with the information to update may any number of the common keys, and only the given keys will be updated in the storage backend.

Parameters:
Name Type Description
$user string
$data array
Documentation generated on Mon, 05 Apr 2010 14:02:21 +0200 by phpDocumentor 1.4.3