summaryrefslogblamecommitdiffstats
path: root/app/model/common.mod.php
blob: e52230d9e311803506f5320f740fe56f88b8aa81 (plain) (tree)
1
2
3
4
5
6





                                     












                                                                      


  
<?php

require_once "model/master.mod.php";

class CommonModel extends MasterModel
{
    /*
     * Get the glyphicon to use for the logged in user (user or admin)
     */
    function getCurrentUserGlyphicon()
    {
        if (!$this->getCurrentUser())
            return "";

        if ($this->getCurrentUser()->admin == 1)
            return "glyphicon glyphicon-sunglasses";
        else
            return "glyphicon glyphicon-user";
    }
}

?>