VuFind API Documentation

UserCreationTrait

Trait with utility methods for user creation/management.

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Wiki

Table of Contents

fillInAccountForm()  : void
Mink support function: fill in the account creation form.
fillInChangePasswordForm()  : void
Mink support function: fill in the change password form.
fillInLoginForm()  : void
Mink support function: fill in the login form.
submitLoginForm()  : void
Submit the login form (assuming it's open).

Methods

fillInAccountForm()

Mink support function: fill in the account creation form.

protected fillInAccountForm(Element $page[, array<string|int, mixed> $overrides = [] ]) : void
Parameters
$page : Element

Page element.

$overrides : array<string|int, mixed> = []

Optional overrides for form values.

Return values
void

fillInChangePasswordForm()

Mink support function: fill in the change password form.

protected fillInChangePasswordForm(Element $page, string $old, string $new[, bool $inModal = false ][, string $prefix = '#newpassword ' ]) : void
Parameters
$page : Element

Page element.

$old : string

Old password

$new : string

New password

$inModal : bool = false

Should we assume the login box is in a lightbox?

$prefix : string = '#newpassword '

Extra selector prefix

Return values
void

fillInLoginForm()

Mink support function: fill in the login form.

protected fillInLoginForm(Element $page, string $username, string $password[, bool $inModal = true ][, string $prefix = '' ]) : void
Parameters
$page : Element

Page element.

$username : string

Username to set (null to skip)

$password : string

Password to set (null to skip)

$inModal : bool = true

Should we assume the login box is in a lightbox?

$prefix : string = ''

Extra selector prefix

Return values
void

submitLoginForm()

Submit the login form (assuming it's open).

protected submitLoginForm(Element $page[, bool $inModal = true ][, string $prefix = '' ]) : void
Parameters
$page : Element

Page element.

$inModal : bool = true

Should we assume the login box is in a lightbox?

$prefix : string = ''

Extra selector prefix

Return values
void

Search results