C# Class ScrewTurn.Wiki.Content

Contains the Contents.
Afficher le fichier Open project: mono/ScrewTurnWiki Class Usage Examples

Méthodes publiques

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

Clears the pseudo cache.
public static ClearPseudoCache ( ) : void
Résultat void

GetFormattedPageContent() public static méthode

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.
Résultat string

GetPageContent() public static méthode

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.
Résultat ScrewTurn.Wiki.PluginFramework.PageContent

GetPseudoCacheValue() public static méthode

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

InvalidateAllPages() public static méthode

Invalidates all the cache Contents.
public static InvalidateAllPages ( ) : void
Résultat void

InvalidatePage() public static méthode

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.
Résultat void

SetPseudoCacheValue() public static méthode

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.
Résultat void