__construct()
__construct() :
AUTHORIZE
AUTHORIZE
Logging on and system authorisation class.
isPluginExecutionAuthorised( pluginAuthLevelRequested, promptForLogin = FALSE) :
isPluginExecutionAuthorised
Check if the level of auth matchs the level requested by the calling plugin. If $promptForLogin is TRUE, displays the login page instead of returning FALSE, when the plugin is not authorised
pluginAuthLevelRequested | Default is 0. Auth level: unknow => always unauthorised, menu item not displayed 0 => menu item displayed for all users (logged or not) 1 => menu item displayed for users logged (with write access) 2 => menu item displayed only for logged admins |
|
promptForLogin | Default is FALSE. |