Moosylvania\AgeGate\Controllers\AgeGateController
Synopsis
class AgeGateController
extends PageController
{
- // members
- private static string $notOfAgeRedirect = 'https://google.com';
- private static integer $yearsOld = 21;
- private static boolean $askForAge = false;
- private static string $dateFormat = 'm/d/Y';
- private static string $dateFieldFormat = 'MM/dd/yyyy';
- private static string $customFormIntro = '';
- private static string $customFieldLabel = '';
- private static array $allowed_actions = ;
- // methods
- protected void init()
- public void Link()
- public void index()
- public void AgeGateForm()
- protected void setOfAgeCookie()
- public void doOfAge()
- public void doAgeValidation()
- public void doNotOfAge()
Hierarchy
Extends
- PageController
Members
private
- $allowed_actions
- $askForAge
- $customFieldLabel
- $customFormIntro
- $dateFieldFormat
- $dateFormat
- $notOfAgeRedirect
- $yearsOld