TUserManager class
TUserManager manages a static list of users TUser. The user information is specified via module configuration using the following XML syntax,
- <module id="users" class="System.Security.TUserManager" PasswordMode="Clear">
- <user name="Joe" password="demo" />
- <user name="John" password="demo" />
- <role name="Administrator" users="John" />
- <role name="Writer" users="Joe,John" />
- </module>
In addition, user information can also be loaded from an external file specified by UserFile property. Note, the property only accepts a file path in namespace format. The user file format is similar to the above sample.
The user passwords may be specified as clear text, SH1 or MD5 hashed by setting PasswordMode as Clear, SH1 or MD5. The default name for a guest user is Guest. It may be changed by setting GuestName property.
TUserManager may be used together with TAuthManager which manages how users are authenticated and authorized in a Prado application.
Located in /Security/TUserManager.php (line 198)
TComponent | --TApplicationComponent | --TModule | --TUserManager
Returns a user instance given the user name.
Initializes the module.
This method is required by IModule and is invoked by application. It loads user/role information from the module configuration.
Sets a user as a guest.
User name is changed as guest name, and roles are emptied.
Validates if the username and password are correct.
Inherited From TModule
TModule::getID()
TModule::init()
TModule::setID()
Inherited From TApplicationComponent
TApplicationComponent::getApplication()
TApplicationComponent::getRequest()
TApplicationComponent::getResponse()
TApplicationComponent::getService()
TApplicationComponent::getSession()
TApplicationComponent::getUser()
TApplicationComponent::publishAsset()
TApplicationComponent::publishFilePath()
Inherited From TComponent
TComponent::attachEventHandler()
TComponent::canGetProperty()
TComponent::canSetProperty()
TComponent::detachEventHandler()
TComponent::evaluateExpression()
TComponent::evaluateStatements()
TComponent::getEventHandlers()
TComponent::getSubProperty()
TComponent::hasEvent()
TComponent::hasEventHandler()
TComponent::hasProperty()
TComponent::raiseEvent()
TComponent::setSubProperty()
TComponent::__get()
TComponent::__set()
Documentation generated on Mon, 01 May 2006 23:05:00 -0400 by phpDocumentor 1.3.0RC4