C# Class Sitecore.Foundation.Dictionary.Repositories.DictionaryPhraseRepository

Inheritance: IDictionaryPhraseRepository
显示文件 Open project: Sitecore/Habitat Class Usage Examples

Public Methods

Method Description
DictionaryPhraseRepository ( Sitecore.Foundation.Dictionary.Models.Dictionary dictionary ) : System
Get ( [ relativePath, string defaultValue ) : string
GetItem ( [ relativePath, string defaultValue = "" ) : System.Item

Private Methods

Method Description
AssertRelativePath ( string relativePath ) : string
GetCurrentFromCacheOrCreate ( ) : IDictionaryPhraseRepository
GetOrAutoCreateItem ( [ relativePath, [ defaultValue ) : System.Item

Method Details

DictionaryPhraseRepository() public method

public DictionaryPhraseRepository ( Sitecore.Foundation.Dictionary.Models.Dictionary dictionary ) : System
dictionary Sitecore.Foundation.Dictionary.Models.Dictionary
return System

Get() public method

public Get ( [ relativePath, string defaultValue ) : string
relativePath [
defaultValue string
return string

GetItem() public method

public GetItem ( [ relativePath, string defaultValue = "" ) : System.Item
relativePath [
defaultValue string
return System.Item