C# 클래스 ScrewTurn.Wiki.Collisions

Manages Page Editing collisions.
파일 보기 프로젝트 열기: mono/ScrewTurnWiki 1 사용 예제들

공개 메소드들

메소드 설명
CancelEditingSession ( System.PageInfo page, string user ) : void

Cancels an editing session.

IsPageBeingEdited ( System.PageInfo page, string currentUser ) : bool

Finds whether a Page is being edited by a different user.

RenewEditingSession ( System.PageInfo page, string user ) : void

Adds or updates an editing session.

WhosEditing ( System.PageInfo page ) : string

Gets the username of the user who's editing a page.

메소드 상세

CancelEditingSession() 공개 정적인 메소드

Cancels an editing session.
public static CancelEditingSession ( System.PageInfo page, string user ) : void
page System.PageInfo The Page.
user string The User.
리턴 void

IsPageBeingEdited() 공개 정적인 메소드

Finds whether a Page is being edited by a different user.
public static IsPageBeingEdited ( System.PageInfo page, string currentUser ) : bool
page System.PageInfo The Page.
currentUser string The User who is requesting the status of the Page.
리턴 bool

RenewEditingSession() 공개 정적인 메소드

Adds or updates an editing session.
public static RenewEditingSession ( System.PageInfo page, string user ) : void
page System.PageInfo The edited Page.
user string The User who is editing the Page.
리턴 void

WhosEditing() 공개 정적인 메소드

Gets the username of the user who's editing a page.
public static WhosEditing ( System.PageInfo page ) : string
page System.PageInfo The page.
리턴 string