C# Класс ScrewTurn.Wiki.Plugins.PluginPack.MultilanguageContentPlugin

Implements a Formatter Provider that allows to write multi-language content in Wiki Pages.
Наследование: IFormatterProviderV30
Показать файл Открыть проект

Открытые методы

Метод Описание
Format ( string raw, ContextInformation context, FormattingPhase phase ) : string

Performs a Formatting phase.

Init ( IHostV30 host, string config ) : void

Initializes the Storage Provider.

If the configuration string is not valid, the methoud should throw a InvalidConfigurationException.

PrepareTitle ( string title, ContextInformation context ) : string

Prepares the title of an item for display (always during phase 3).

Shutdown ( ) : void

Method invoked on shutdown.

This method might not be invoked in some cases.

Приватные методы

Метод Описание
ExtractLocalizedContent ( string language, string content ) : string

Описание методов

Format() публичный Метод

Performs a Formatting phase.
public Format ( string raw, ContextInformation context, FormattingPhase phase ) : string
raw string The raw content to Format.
context ScrewTurn.Wiki.PluginFramework.ContextInformation The Context information.
phase FormattingPhase The Phase.
Результат string

Init() публичный Метод

Initializes the Storage Provider.
If the configuration string is not valid, the methoud should throw a InvalidConfigurationException.
public Init ( IHostV30 host, string config ) : void
host IHostV30 The Host of the Component.
config string The Configuration data, if any.
Результат void

PrepareTitle() публичный Метод

Prepares the title of an item for display (always during phase 3).
public PrepareTitle ( string title, ContextInformation context ) : string
title string The input title.
context ScrewTurn.Wiki.PluginFramework.ContextInformation The context information.
Результат string

Shutdown() публичный Метод

Method invoked on shutdown.
This method might not be invoked in some cases.
public Shutdown ( ) : void
Результат void