PHP Class AgeGatePlugin, addons

Adds Date of Birth to the registration form and requires a certain age to register. Hidden config setting Plugins.AgeGate.MinimumAgeWithConsent makes the Plugins.AgeGate.MinimumAge setting the age the user must be in order to register. Anybody between the MinimumAge and MinimumAgeWithConsent must confirm they have consent to use the forums.
Inheritance: extends Gdn_Plugin
Mostrar archivo Open project: vanilla/addons

Public Methods

Method Description
entryController_registerBeforeTerms_handler ( EntryController $sender, array $args ) Add AgeGate fields to registration form.
entryController_registerFormBeforeTerms_handler ( EntryController $sender, array $args ) Add AgeGate fields to registration form.
entryController_registerValidation_handler ( EntryController $sender, array $args ) Enforces AgeGate verification at registration submission.
entryController_render_before ( EntryController $sender ) Add AgeGate javascript file.
settingsController_ageGate_create ( SettingsController $sender ) AgeGate settings page.
setup ( )

Method Details

entryController_registerBeforeTerms_handler() public method

Add AgeGate fields to registration form.
public entryController_registerBeforeTerms_handler ( EntryController $sender, array $args )
$sender EntryController Sending Controller.
$args array Arguments.

entryController_registerFormBeforeTerms_handler() public method

Add AgeGate fields to registration form.
public entryController_registerFormBeforeTerms_handler ( EntryController $sender, array $args )
$sender EntryController Sending Controller.
$args array Arguments.

entryController_registerValidation_handler() public method

Enforces AgeGate verification at registration submission.
public entryController_registerValidation_handler ( EntryController $sender, array $args )
$sender EntryController Sending Controller.
$args array Arguments.

entryController_render_before() public method

Add AgeGate javascript file.
public entryController_render_before ( EntryController $sender )
$sender EntryController Sending Controller.

settingsController_ageGate_create() public method

AgeGate settings page.
public settingsController_ageGate_create ( SettingsController $sender )
$sender SettingsController

setup() public method

public setup ( )