Implements interfaces:
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, SHA1 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 50)
TComponent | --TApplicationComponent | --TModule | --TUserManager
Returns an array of user role information.
Each array element represents the roles for a single user. The array key is the username in lower case, and the array value is the roles (represented as an array) that the user is in.
Returns a user instance given the user name.
Returns an array of all users.
Each array element represents a single user. The array key is the username in lower case, and the array value is the corresponding user password.
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::addParsedObject()
TComponent::attachEventHandler()
TComponent::canGetProperty()
TComponent::canSetProperty()
TComponent::createdOnTemplate()
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 Sun, 14 Jan 2007 21:44:58 -0500 by phpDocumentor 1.3.0RC4