C# Class WikiFunctions.API.UserInfo

Information about a user
Datei anzeigen Open project: reedy/AutoWikiBrowser Class Usage Examples

Public Methods

Method Description
CanCreatePage ( WikiFunctions.API.PageInfo page ) : bool

Returns whether the user can create the page based on group/edit rights

CanDeletePage ( WikiFunctions.API.PageInfo page ) : bool

Returns whether the user can delete the page based on group/edit rights Examples: sysop, eliminator groups should be able to delete pages

CanEditPage ( WikiFunctions.API.PageInfo page ) : bool

CanMovePage ( WikiFunctions.API.PageInfo page ) : bool

HasRight ( string right ) : bool

IsInGroup ( string group ) : bool

Private Methods

Method Description
Update ( XmlDocument xml ) : void

Updates the information about the current user

UserInfo ( ) : System.Collections.Generic

Creates a UserInfo object for an unregistered user

UserInfo ( XmlDocument xml ) : System.Collections.Generic

Creates a UserInfo class from an meta=userinfo XML

Method Details

CanCreatePage() public method

Returns whether the user can create the page based on group/edit rights
public CanCreatePage ( WikiFunctions.API.PageInfo page ) : bool
page WikiFunctions.API.PageInfo
return bool

CanDeletePage() public method

Returns whether the user can delete the page based on group/edit rights Examples: sysop, eliminator groups should be able to delete pages
public CanDeletePage ( WikiFunctions.API.PageInfo page ) : bool
page WikiFunctions.API.PageInfo
return bool

CanEditPage() public method

public CanEditPage ( WikiFunctions.API.PageInfo page ) : bool
page WikiFunctions.API.PageInfo
return bool

CanMovePage() public method

public CanMovePage ( WikiFunctions.API.PageInfo page ) : bool
page WikiFunctions.API.PageInfo
return bool

HasRight() public method

public HasRight ( string right ) : bool
right string
return bool

IsInGroup() public method

public IsInGroup ( string group ) : bool
group string
return bool