UserLoginFormThe UserLoginForm control class.
This control can be used to log in a user to any Wigbi application, using the built-in login functionality of the User seed.
The control can be added to the page with the PHP and JavaScript add functions and can then be retrieved with Wigbi.getControl(id). It requires the User seed.
JAVASCRIPT ********************************
UserLoginForm : BaseControl
Properties:
Functions:
Events:
Override onPreSubmit to set what to do before the form is being submitted. If it returns false, the submit operation will abort.
Override onSubmit to set what to do when the submit operation has finished. By default, it does nothing.
Override onSubmitError to set what to do when a submit operation fails. By default, it alerts all errors in the error list.
Override onValidate to set what to do when the object has been validated. By default, it binds the result to the form.
LANGUAGE HANDLING *************************
The following language parameters are used by the control:
Located in /wigbi_controls/UserLoginForm.php (line 98)
BaseControl | --UserLoginForm
static add (line 278)
Add a UserLoginForm control to the page.
If the user is already logged in and redirectOnLoad is set to true, the control will redirect the user to the redirect page, if one is specified.
static login (line 322)
Attempt to login a user, using a certain user name and password.
Constructor __construct (line 109)
Create an instance of the control.
This constructor is only intended to be used by Wigbi at startup.
Inherited From BaseControl
BaseControl::__construct()
BaseControl::closeForm()
BaseControl::controlId()
BaseControl::isPostBackSource()
BaseControl::javaScript()
BaseControl::openForm()
BaseControl::registerJavaScript()
BaseControl::submit()
Documentation generated on Sun, 27 Dec 2009 20:12:07 +0100 by phpDocumentor 1.4.1