Userpage Profile Class.
More...
Userpage Profile Class.
Stats class for userpage
STATS TAB shows the user his account stats.
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 15 of file stats.php.
◆ __construct()
YAWK\PLUGINS\USERPAGE\stats::__construct |
( |
|
$db | ) |
|
◆ init()
YAWK\PLUGINS\USERPAGE\stats::init |
( |
| ) |
|
draw account stats.
- Returns
- string account stats
Definition at line 37 of file stats.php.
39 if(
$user->blocked ===
'0') { $blocked =
"Alles ok. Dein Account ist in Ordnung."; $blockedHtml =
"text-success"; }
40 else { $blocked =
"Dein Account wurde geblockt. Irgendetwas ist nicht in Ordnung."; $blockedHtml =
"text-danger";
43 if(
$user->privacy ===
'0') { $privacy =
"visible"; $privacyHtml =
"text-success"; }
44 else { $privacy =
"hidden"; $privacyHtml=
"text-danger";
47 if(
$user->public_email ===
'0') { $public_email =
"visible"; $emailHtml =
"text-success"; }
48 else { $public_email =
"hidden"; $emailHtml =
"text-danger";
51 if(
$user->date_expired === NULL) {
52 $expiredHtml =
"text-success";
53 $expired =
"never - lifetime account";
56 $expiredHtml =
"text-warning";
57 $expired =
"$user->date_expired";
60 $this->html =
"<br><legend><i class=\"fa fa-line-chart\"></i> Account Statistics <small> show details about your account</small></legend>
61 <dl class=\"dl-horizontal\">
62 <dt>Account Status:</dt>
63 <dd><small class=\"$blockedHtml\">$blocked</small></dd>
64 <dt>Active until:</dt>
65 <dd><small class=\"$expiredHtml\">$expired</small></dd>
66 <dt>Account created:</dt>
67 <dd><small>$user->date_created</small></dd>
68 <dt>Account changed:</dt>
69 <dd><small>$user->date_changed</small></dd>
72 <dt>Your last login:</dt>
73 <dd><small>$user->date_lastlogin</small></dd>
75 <dd><small>$user->login_count</small></dd>
78 <dt>Online Status:</dt>
79 <dd><small class=\"$privacyHtml\">$privacy</small></dd>
80 <dt>Email adress:</dt>
81 <dd><small class=\"$emailHtml\">$public_email</small></dd>
References YAWK\PLUGINS\USERPAGE\stats\$html, and YAWK\PLUGINS\USERPAGE\stats\$user.
◆ $html
YAWK\PLUGINS\USERPAGE\stats::$html |
|
protected |
◆ $user
YAWK\PLUGINS\USERPAGE\stats::$user |
|
protected |
The documentation for this class was generated from the following file:
- /var/www/htdocs/yawk.io/system/plugins/userpage/classes/stats.php