YaWK  24.1
Yet another WebKit
YAWK\PLUGINS\SIGNUP\signup Class Reference

Handles the Blog System. More...

+ Inheritance diagram for YAWK\PLUGINS\SIGNUP\signup:

Public Member Functions

 __construct ()
 signup constructor. More...
 

Static Public Member Functions

static signUp ($db)
 draw html output adultcheck or form on demand More...
 

Public Attributes

 $userpage
 

Protected Attributes

 $form
 
 $html
 
 $signup
 
 $username
 

Detailed Description

Handles the Blog System.

Let users signup to your website.

Allow your users to register and login to your website. You can choose, which group they belong, or let them choose between a pre-defined list of groups for maximum flexibility.

This class covers frontend functionality. See Methods Summary for Details!

Author
Daniel Retzl danie.nosp@m.lret.nosp@m.zl@gm.nosp@m.ail..nosp@m.com
Version
1.0.0

Definition at line 14 of file signup.php.

Constructor & Destructor Documentation

◆ __construct()

YAWK\PLUGINS\SIGNUP\signup::__construct ( )

signup constructor.

Definition at line 30 of file signup.php.

30  {
31  $this->html = "";
32  $this->form = "";
33  }

Member Function Documentation

◆ signUp()

static YAWK\PLUGINS\SIGNUP\signup::signUp (   $db)
static

draw html output adultcheck or form on demand

Parameters
object$dbdatabase
Returns
string return html form

Definition at line 83 of file signup.php.

84  {
85  if (\YAWK\settings::getSetting($db, "signup_adultcheck") == '1')
86  {
87  echo"<script src=\"system/plugins/signup/js/adultCheck.js\"></script>";
88 
89  echo "<div id=\"adultCheck\" class=\"text-center\"><h2>Are you over 18 years old?</h2>
90  <h2><small id=\"yes\">yes</small></h2>
91  <h2><small id=\"no\">no</small></h2></div>";
92 
93  echo "<div id=\"alt\" class=\"text-center\"><h2>Are you an adult, depending on the age of your country laws?</h2>
94  <h2><small id=\"contact\">Yes</small></h2>
95  <h2><small id=\"home\">No</small></h2></div>";
96  }
97 
98  // include formbuilder class
99  include 'system/plugins/signup/classes/buildForm.php';
100  // generate new html form object
101  $form = new \YAWK\PLUGINS\SIGNUP\buildForm($db);
102  // draw form
103  return $form->init($db);
104  }
static getSetting($db, $property)
Get and return value for property from settings database.
Definition: settings.php:470
This class serves methods to create backup from files.
Definition: AdminLTE.php:2

References $db, YAWK\PLUGINS\SIGNUP\signup\$form, and YAWK\settings\getSetting().

Member Data Documentation

◆ $form

YAWK\PLUGINS\SIGNUP\signup::$form
protected
  • Parameters
    stringform

Definition at line 21 of file signup.php.

Referenced by YAWK\PLUGINS\SIGNUP\signup\signUp().

◆ $html

YAWK\PLUGINS\SIGNUP\signup::$html
protected
  • Parameters
    stringhtml

Definition at line 23 of file signup.php.

◆ $signup

YAWK\PLUGINS\SIGNUP\signup::$signup
protected
  • Parameters
    stringsignup

Definition at line 25 of file signup.php.

◆ $username

YAWK\PLUGINS\SIGNUP\signup::$username
protected
  • Parameters
    stringusername

Definition at line 17 of file signup.php.

◆ $userpage

YAWK\PLUGINS\SIGNUP\signup::$userpage
  • Parameters
    stringuserpage

Definition at line 19 of file signup.php.


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