C# Class ScrewTurn.Wiki.Redirections

Manages information about Page Redirections.
显示文件 Open project: mono/ScrewTurnWiki Class Usage Examples

Public Methods

Method Description
AddRedirection ( System.PageInfo source, System.PageInfo destination ) : void

Adds a new Redirection.

The method prevents circular and multi-level redirection.

Clear ( ) : void

Clears the Redirection table.

GetDestination ( System.PageInfo page ) : System.PageInfo

Gets the destination Page.

WipePageOut ( System.PageInfo page ) : void

Removes any occurrence of a Page from the redirection table, both on sources and destinations.

This method is useful when removing a Page.

Method Details

AddRedirection() public static method

Adds a new Redirection.
The method prevents circular and multi-level redirection.
public static AddRedirection ( System.PageInfo source, System.PageInfo destination ) : void
source System.PageInfo The source Page.
destination System.PageInfo The destination Page.
return void

Clear() public static method

Clears the Redirection table.
public static Clear ( ) : void
return void

GetDestination() public static method

Gets the destination Page.
public static GetDestination ( System.PageInfo page ) : System.PageInfo
page System.PageInfo The source Page.
return System.PageInfo

WipePageOut() public static method

Removes any occurrence of a Page from the redirection table, both on sources and destinations.
This method is useful when removing a Page.
public static WipePageOut ( System.PageInfo page ) : void
page System.PageInfo The Page to wipe-out.
return void