WebbuildersGroup\RememberMyAccount\Forms\LoginForm::__construct
Constructor
Signature
public function __construct(LoginHandler
$loginHandler,
$authenticator,
string
$name,
[FieldList
$fields = NULL,
[FieldList
$actions = NULL,
[boolean
$checkCurrentUser = true]]] )
Parameters
$loginHandler
—
object
- The parent controller, necessary to create the appropriate form action tag.
$authenticator
—
$name
—
string
- The method on the controller that will return this form object.
$fields
—
object
- All of the fields in the form - a {@link FieldList} of {@link FormField} objects.
$actions
—
object
- All of the action buttons in the form - a {@link FieldList} of {@link FormAction} objects
$checkCurrentUser
—
boolean
- If set to TRUE, it will be checked if a the user is currently logged in, and if so, only a logout button will be rendered