Brimbox Logo Brimbox Version 2.3.4 Released


Method to output links for switching userroles when a user has multiple roles.

Class: bb_main, called as $main

File: bb_main.php (php)


function userrole_switch($class_span = "bold", $class_button = "link underline")


$main->userrole_switch($class_span, $class_button);

Outputs: Switch userrole links which send the bb_logout module to the controller with the desired userrole.

Parameter: $class_span (string)
Class for the text leader to the link switches.

Parameter: $class_button (string)
Class of the switch which is set to a link by default.

Updated: 2016-07-17