'a', 'reseller'=>'r', 'affiliate'=>'f', 'user'=>'u', ); public static function navbar() { $result = array(); foreach (array_reverse(self::$method_directory) as $k=>$v) switch ($k) { case 'admin': $result[$k] = array('name'=>'Administrator','icon'=>'icon-globe'); break; case 'affiliate': case 'reseller': $result[$k] = array('name'=>'Reseller','icon'=>'icon-th-list'); break; case 'user': $result[$k] = array('name'=>Auth::instance()->get_user()->name(),'icon'=>'icon-user'); break; default: $result[$k] = array('name'=>$k,'icon'=>'icon-question-sign'); } return $result; } } ?>