C# Class ScrewTurn.Wiki.Templates

Manages content templates.
Afficher le fichier Open project: mono/ScrewTurnWiki

Méthodes publiques

Méthode Description
AddTemplate ( string name, string content, IPagesStorageProviderV30 provider ) : bool

Adds a new content template.

Find ( string name ) : ContentTemplate

Finds a content template.

GetTemplates ( ) : List

Gets all the content templates.

ModifyTemplate ( ContentTemplate template, string content ) : bool

Modifies a content template.

RemoveTemplate ( ContentTemplate template ) : bool

Removes a content template.

Method Details

AddTemplate() public static méthode

Adds a new content template.
public static AddTemplate ( string name, string content, IPagesStorageProviderV30 provider ) : bool
name string The name of the template.
content string The content of the template.
provider IPagesStorageProviderV30 The target provider (null for the default provider).
Résultat bool

Find() public static méthode

Finds a content template.
public static Find ( string name ) : ContentTemplate
name string The name of the template to find.
Résultat ContentTemplate

GetTemplates() public static méthode

Gets all the content templates.
public static GetTemplates ( ) : List
Résultat List

ModifyTemplate() public static méthode

Modifies a content template.
public static ModifyTemplate ( ContentTemplate template, string content ) : bool
template ContentTemplate The template to modify.
content string The new content of the template.
Résultat bool

RemoveTemplate() public static méthode

Removes a content template.
public static RemoveTemplate ( ContentTemplate template ) : bool
template ContentTemplate The template to remove.
Résultat bool