Implements interfaces:
TDbUserManager class
TDbUserManager manages user accounts that are stored in a database. TDbUserManager is mainly designed to be used together with TAuthManager which manages how users are authenticated and authorized in a Prado application.
To use TDbUserManager together with TAuthManager, configure them in the application configuration like following:
- <module id="db"
- class="System.Data.TDataSourceConfig" ..../>
- <module id="users"
- class="System.Security.TDbUserManager"
- UserClass="Path.To.MyUserClass"
- ConnectionID="db" />
- <module id="auth"
- class="System.Security.TAuthManager"
- UserManager="users" LoginPage="Path.To.LoginPage" />
In the above, UserClass specifies what class will be used to create user instance. The class must extend from TDbUser. ConnectionID refers to the ID of a TDataSourceConfig module which specifies how to establish database connection to retrieve user information.
Located in /Security/TDbUserManager.php (line 51)
TComponent | --TApplicationComponent | --TModule | --TDbUserManager
Creates the DB connection.
Returns a user instance given the user name.
Returns a user instance according to auth data stored in a cookie.
Initializes the module.
This method is required by IModule and is invoked by application.
Saves user auth data into a cookie.
Sets the ID of a TDataSourceConfig module.
The datasource module will be used to establish the DB connection that will be used by the user manager.
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 Mon, 21 Apr 2008 11:34:55 -0400 by phpDocumentor 1.3.0RC4