C# Class DotNetNuke.Extensions.Modules.PortalModuleBaseExtensions

Extenions for the PortalModuleBase class.
Exibir arquivo Open project: JonHaywood/DotNetNuke.Extensions

Public Methods

Method Description
IsCurrentUserAnAdmin ( this module ) : bool

Determines whether the current user is an administrator or not. All super users will be administrators.

IsUserAnAdmin ( this module, int userId ) : bool

Determines whether the user is an administrator or not in the current portal. All super users will be administrators.

IsUserAnAdmin ( this module, int portalId, int userId ) : bool

Determines whether the user is an administrator or not. All super users will be administrators.

ProcessException ( this module, Exception ex, string msg ) : void

Processes the exception and displays the error message to the user.

ProcessException ( this module, Exception ex, string msg, bool displayException ) : void

Processes the exception.

Method Details

IsCurrentUserAnAdmin() public static method

Determines whether the current user is an administrator or not. All super users will be administrators.
public static IsCurrentUserAnAdmin ( this module ) : bool
module this The module.
return bool

IsUserAnAdmin() public static method

Determines whether the user is an administrator or not in the current portal. All super users will be administrators.
public static IsUserAnAdmin ( this module, int userId ) : bool
module this The module.
userId int User ID.
return bool

IsUserAnAdmin() public static method

Determines whether the user is an administrator or not. All super users will be administrators.
public static IsUserAnAdmin ( this module, int portalId, int userId ) : bool
module this The module.
portalId int ID of portal to check against.
userId int User ID.
return bool

ProcessException() public static method

Processes the exception and displays the error message to the user.
public static ProcessException ( this module, Exception ex, string msg ) : void
module this
ex System.Exception The exception.
msg string Message to display before the exception.
return void

ProcessException() public static method

Processes the exception.
public static ProcessException ( this module, Exception ex, string msg, bool displayException ) : void
module this
ex System.Exception The exception.
msg string Message to display before the exception.
displayException bool True to display the exception to the user.
return void