C# Class WikiFunctions.API.UserInfo

Information about a user
Afficher le fichier Open project: reedy/AutoWikiBrowser Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

CanDeletePage() public méthode

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
Résultat bool

CanEditPage() public méthode

public CanEditPage ( WikiFunctions.API.PageInfo page ) : bool
page WikiFunctions.API.PageInfo
Résultat bool

CanMovePage() public méthode

public CanMovePage ( WikiFunctions.API.PageInfo page ) : bool
page WikiFunctions.API.PageInfo
Résultat bool

HasRight() public méthode

public HasRight ( string right ) : bool
right string
Résultat bool

IsInGroup() public méthode

public IsInGroup ( string group ) : bool
group string
Résultat bool