C# Класс Rebel.Cms.Web.Dictionary.DictionaryHelper

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
DictionaryHelper ( IHiveManager hive, IEnumerable installedLanguages ) : System
DictionaryHelper ( IRebelApplicationContext appContext ) : System
GetDictionaryItem ( string key ) : DictionaryResult

Gets a dictionary item.

GetDictionaryItem ( string key, string language ) : DictionaryResult

Gets a dictionary item.

GetDictionaryItemValue ( string key, string defaultValue = null ) : string

Gets a dictionary item value.

GetDictionaryItemValueForLanguage ( string key, string language, string defaultValue = null ) : string

Gets a dictionary item value.

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

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

public DictionaryHelper ( IHiveManager hive, IEnumerable installedLanguages ) : System
hive IHiveManager
installedLanguages IEnumerable
Результат System

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

public DictionaryHelper ( IRebelApplicationContext appContext ) : System
appContext IRebelApplicationContext
Результат System

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

Gets a dictionary item.
public GetDictionaryItem ( string key ) : DictionaryResult
key string The key.
Результат DictionaryResult

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

Gets a dictionary item.
public GetDictionaryItem ( string key, string language ) : DictionaryResult
key string The key.
language string The language.
Результат DictionaryResult

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

Gets a dictionary item value.
public GetDictionaryItemValue ( string key, string defaultValue = null ) : string
key string The key.
defaultValue string The default value.
Результат string

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

Gets a dictionary item value.
public GetDictionaryItemValueForLanguage ( string key, string language, string defaultValue = null ) : string
key string The key.
language string The language.
defaultValue string The default value.
Результат string