diff options
author | Malf Furious <m@lfurio.us> | 2016-03-12 23:38:18 -0500 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2016-03-27 20:16:32 -0400 |
commit | 2936f0d151fb52bd2649edc37abd2e1d559d1f0f (patch) | |
tree | 0fd96caebbf3727038b9750d21a84c492b53f457 /app/class/user.class.php | |
parent | 587bdef47abbf4545508cac95a0495be0d5ddaa5 (diff) | |
download | scrott-2936f0d151fb52bd2649edc37abd2e1d559d1f0f.tar.gz scrott-2936f0d151fb52bd2649edc37abd2e1d559d1f0f.zip |
Move getUserGlyphicon function from common model into user class
Diffstat (limited to '')
-rw-r--r-- | app/class/user.class.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/class/user.class.php b/app/class/user.class.php index 7d8519e..f1f7ff1 100644 --- a/app/class/user.class.php +++ b/app/class/user.class.php @@ -160,6 +160,17 @@ class User extends Object return $this->name; } + + /* + * Get the glyphicon to use for this user + */ + function getGlyphicon() + { + if ($this->admin) + return "glyphicon glyphicon-sunglasses"; + + return "glyphicon glyphicon-user"; + } } ?> |