Packages » Package freeform » Class UserManager

Class UserManager

Declaration:
<? class UserManager ?>

Description:
This abstract class declares general contract of accessing user management systems. Its few methods will allow third-party software to easily communicate with whatever user system installed. It is quite easy to subclass UserManager on top of popular forum/blog software and use their user management systems from Freeform applications.

See also:

Authors:
  • Dennis Popel

Methods:
  • deleteUser()
    Delete a user from the user management system
  • getInstance()
    Return an instance of the currently installed user management system
  • getUserByID()
    Return an instance of User from the user management system by its unique ID
  • getUserByLogin()
    Return an instance of User from the user management system by its unique login name
  • isValidUser()
    Returns true if a user with given credentials exists
  • registerUser()
    Create a new user with the given login and password