Elgg  Version master
Public Member Functions | Protected Member Functions | List of all members
Elgg\Router\Middleware\RegistrationAllowedGatekeeper Class Reference

Validate that registration is allowed based on one of the following: More...

Public Member Functions

 __invoke (Request $request)
 Validate input and/or settings to allow access to registration resources. More...
 

Protected Member Functions

 validateInviteCode (Request $request)
 Validate the optional invite code. More...
 
 assertRegistrationEnabled ()
 Validate if registration is allowed by the site configuration. More...
 

Detailed Description

Validate that registration is allowed based on one of the following:

Since
4.3

Definition at line 15 of file RegistrationAllowedGatekeeper.php.

Member Function Documentation

Elgg\Router\Middleware\RegistrationAllowedGatekeeper::__invoke ( Request  $request)

Validate input and/or settings to allow access to registration resources.

Parameters
Request$requestthe current request
Returns
void
Exceptions
RegistrationAllowedGatekeeperException

Definition at line 25 of file RegistrationAllowedGatekeeper.php.

Elgg\Router\Middleware\RegistrationAllowedGatekeeper::assertRegistrationEnabled ( )
protected

Validate if registration is allowed by the site configuration.

Returns
void
Exceptions
RegistrationAllowedGatekeeperException

Definition at line 68 of file RegistrationAllowedGatekeeper.php.

Elgg\Router\Middleware\RegistrationAllowedGatekeeper::validateInviteCode ( Request  $request)
protected

Validate the optional invite code.

Parameters
Request$requestthe current request
Returns
bool
Exceptions
RegistrationAllowedGatekeeperException
See also
elgg_validate_invite_code()

Definition at line 42 of file RegistrationAllowedGatekeeper.php.


The documentation for this class was generated from the following file: