C# Класс WikiFunctions.API.UserInfo

Information about a user
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

CanCreatePage() публичный Метод

Returns whether the user can create the page based on group/edit rights
public CanCreatePage ( WikiFunctions.API.PageInfo page ) : bool
page WikiFunctions.API.PageInfo
Результат bool

CanDeletePage() публичный Метод

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
Результат bool

CanEditPage() публичный Метод

public CanEditPage ( WikiFunctions.API.PageInfo page ) : bool
page WikiFunctions.API.PageInfo
Результат bool

CanMovePage() публичный Метод

public CanMovePage ( WikiFunctions.API.PageInfo page ) : bool
page WikiFunctions.API.PageInfo
Результат bool

HasRight() публичный Метод

public HasRight ( string right ) : bool
right string
Результат bool

IsInGroup() публичный Метод

public IsInGroup ( string group ) : bool
group string
Результат bool