PASSWORD
in package
PASSWORD class.
Functions for passwords
Table of Contents
Methods
- createElements() : array<string|int, mixed>
- Create and return an array of two strings for the username/password form
Methods
createElements()
Create and return an array of two strings for the username/password form
public
createElements([bool|string $usersUsername = true ][, bool|string $super = false ][, array<string|int, mixed> $formData = [] ][, bool $add = true ][, bool $admin = false ]) : array<string|int, mixed>
Parameters
- $usersUsername : bool|string = true
-
TRUE (default) if usersUsername should be part of the form
- $super : bool|string = false
-
FALSE (default) if this is for superadmin in the configure form
- $formData : array<string|int, mixed> = []
-
if reprinting form on validation error (passwords are not stored!)
- $add : bool = true
-
Default TRUE
- $admin : bool = false
-
Default = FALSE
Return values
array<string|int, mixed> —Array of 2 strings: 1. form element string; 2. javascript for form header