C# Class ScrewTurn.Wiki.Content

Contains the Contents.
Mostra file Open project: mono/ScrewTurnWiki Class Usage Examples

Public Methods

Method Description
ClearPseudoCache ( ) : void

Clears the pseudo cache.

GetFormattedPageContent ( System.PageInfo page, bool cached ) : string

Gets the formatted Page Content, properly handling content caching and the Formatting Pipeline.

GetPageContent ( System.PageInfo pageInfo, bool cached ) : PageContent

Reads the Content of a Page.

GetPseudoCacheValue ( string name ) : string

Gets a pseudo cache item value.

InvalidateAllPages ( ) : void

Invalidates all the cache Contents.

InvalidatePage ( System.PageInfo pageInfo ) : void

Invalidates the cached Content of a Page.

SetPseudoCacheValue ( string name, string value ) : void

Sets a pseudo cache item value, only if the content cache is enabled.

Method Details

ClearPseudoCache() public static method

Clears the pseudo cache.
public static ClearPseudoCache ( ) : void
return void

GetFormattedPageContent() public static method

Gets the formatted Page Content, properly handling content caching and the Formatting Pipeline.
public static GetFormattedPageContent ( System.PageInfo page, bool cached ) : string
page System.PageInfo The Page to get the formatted Content of.
cached bool Specifies whether the formatted content has to be cached or not.
return string

GetPageContent() public static method

Reads the Content of a Page.
public static GetPageContent ( System.PageInfo pageInfo, bool cached ) : PageContent
pageInfo System.PageInfo The Page.
cached bool Specifies whether the page has to be cached or not.
return ScrewTurn.Wiki.PluginFramework.PageContent

GetPseudoCacheValue() public static method

Gets a pseudo cache item value.
public static GetPseudoCacheValue ( string name ) : string
name string The name of the item to retrieve the value of.
return string

InvalidateAllPages() public static method

Invalidates all the cache Contents.
public static InvalidateAllPages ( ) : void
return void

InvalidatePage() public static method

Invalidates the cached Content of a Page.
public static InvalidatePage ( System.PageInfo pageInfo ) : void
pageInfo System.PageInfo The Page to invalidate the cached content of.
return void

SetPseudoCacheValue() public static method

Sets a pseudo cache item value, only if the content cache is enabled.
public static SetPseudoCacheValue ( string name, string value ) : void
name string The name of the item to store the value of.
value string The value of the item.
return void