Userpage Profile Class.
More...
Userpage Profile Class.
Settings class extends class userpage
SETTINGS TAB serve functions to where user can set his privacy and email settings. Also he can hide from whoisonline (if activated).
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
- Copyright
- 2009-2015 Daniel Retzl
- Version
- 1.0.0
Definition at line 16 of file settings.php.
◆ drawForm()
YAWK\PLUGINS\USERPAGE\settings::drawForm |
( |
| ) |
|
draw user settings page
Definition at line 50 of file settings.php.
52 if (
$user->privacy ===
'0'){
53 $whoisonlineCheckedOn =
"checked";
54 $whoisonlineCheckedOff =
"";
56 $whoisonlineCheckedOff =
"checked";
57 $whoisonlineCheckedOn =
"";
59 if (
$user->public_email ===
'0'){
60 $EmailCheckedOn =
"checked";
61 $EmailCheckedOff =
"";
63 $EmailCheckedOff =
"checked";
67 $this->html .=
"<form id=\"form\" class=\"form-inline\" action=\"welcome.html\" method=\"POST\">";
70 <legend><i class=\"fa fa-eye\"></i> Privacy Settings <small> take care of your data.</small></legend>
71 <dl class=\"dl-horizontal\">
72 <dt><small><i class=\"fa fa-lock\"></i></small> Who is online?</dt>
74 <input type=\"radio\" id=\"whoisonline-on\" name=\"privacy\" value=\"0\" $whoisonlineCheckedOn>
75 <label class=\"radio-inline control-label\" for=\"whoisonline-on\"> visible</label><br>
77 <input type=\"radio\" id=\"whoisonline-off\" name=\"privacy\" value=\"1\" $whoisonlineCheckedOff>
78 <label class=\"radio-inline control-label\" for=\"whoisonline-off\"> not visible</label><br><br>
80 <dt><small><i class=\"fa fa-envelope-o\"></i></small> Email</dt>
82 <input type=\"radio\" id=\"email-on\" name=\"public_email\" value=\"0\" $EmailCheckedOn>
83 <label class=\"radio-inline control-label\" for=\"email-on\"> visible for other users</label><br>
85 <input type=\"radio\" id=\"email-off\" name=\"public_email\" value=\"1\" $EmailCheckedOff>
86 <label class=\"radio-inline control-label\" for=\"email-off\"> not visible for other users</label><br>
90 $this->html .=
"<input type=\"submit\" name=\"submit\" value=\"Speichern\" class=\"btn btn-success\">";
91 $this->html .=
"<input type=\"hidden\" name=\"settings-update\" value=\"1\">";
92 $this->html .=
"<input type=\"hidden\" name=\"uid\" value=\"$user->id\">";
93 $this->html .=
"<br><br><br>";
94 $this->html .=
"<legend><i class=\"fa fa-user-times\"></i> Terminate my account<small> - Delete my permanent.</small></legend>
95 <dl class=\"dl-horizontal\">
96 <dt><small><i class=\"fa fa-ban\"></i></small> Delete account</dt>
97 <dd><a href=\"logout.html\" id=\"terminateUser\" class=\"btn btn-warning\"><i class=\"fa fa-ban\"></i> De-activate my account</a><br>
98 <label for=\"terminateUser\">Think twice. This will de-activate your account permanently.<br>
99 Attention! <u>You are not able to login anymore afterwards.</u></label></dd>
101 $this->html .=
"</form>";
References YAWK\PLUGINS\USERPAGE\settings\$user.
Referenced by YAWK\PLUGINS\USERPAGE\settings\init().
◆ init()
YAWK\PLUGINS\USERPAGE\settings::init |
( |
|
$db | ) |
|
◆ $html
YAWK\PLUGINS\USERPAGE\settings::$html |
|
protected |
◆ $settings
YAWK\PLUGINS\USERPAGE\settings::$settings |
|
protected |
◆ $user
YAWK\PLUGINS\USERPAGE\settings::$user |
|
protected |
◆ $username
YAWK\PLUGINS\USERPAGE\settings::$username |
|
protected |
The documentation for this class was generated from the following file:
- /var/www/htdocs/yawk.io/system/plugins/userpage/classes/settings.php