C# Class Simplify.Web.Modules.Data.DataCollector

Provides master page data collector
Inheritance: IDataCollector
显示文件 Open project: i4004/Simplify.Web Class Usage Examples

Public Methods

Method Description
Add ( ITemplate template ) : void

Set template main content variable value with data from template (all occurrences will be replaced)

Add ( string value ) : void

Set template main content variable value (all occurrences will be replaced)

Add ( string variableName, ITemplate template ) : void

Set template variable value with data from template (all occurrences will be replaced)

Add ( string variableName, string value ) : void

Set template variable value (all occurrences will be replaced)

AddSt ( string stringTableKey ) : void

Set template main content variable value from StringTable (all occurrences will be replaced)

AddSt ( string variableName, string stringTableKey ) : void

Set template variable value from StringTable (all occurrences will be replaced)

AddTitle ( string value ) : void

Set template title variable value (all occurrences will be replaced)

AddTitleSt ( string stringTableKey ) : void

Set template title variable value from StringTable (all occurrences will be replaced)

DataCollector ( string mainContentVariableName, string titleVariableName, IStringTable stringTable ) : System.Collections.Generic

Initializes a new instance of the DataCollector class.

IsDataExist ( string variableName ) : bool

Checking if some variable data is already exist in a data collector

this ( string key ) : string

List of data collector items

Method Details

Add() public method

Set template main content variable value with data from template (all occurrences will be replaced)
public Add ( ITemplate template ) : void
template ITemplate The template.
return void

Add() public method

Set template main content variable value (all occurrences will be replaced)
public Add ( string value ) : void
value string Value to set
return void

Add() public method

Set template variable value with data from template (all occurrences will be replaced)
public Add ( string variableName, ITemplate template ) : void
variableName string Variable name in master template file
template ITemplate The template.
return void

Add() public method

Set template variable value (all occurrences will be replaced)
public Add ( string variableName, string value ) : void
variableName string Variable name in master template file
value string Value to set
return void

AddSt() public method

Set template main content variable value from StringTable (all occurrences will be replaced)
public AddSt ( string stringTableKey ) : void
stringTableKey string StringTable key
return void

AddSt() public method

Set template variable value from StringTable (all occurrences will be replaced)
public AddSt ( string variableName, string stringTableKey ) : void
variableName string Variable name in master template file
stringTableKey string StringTable key
return void

AddTitle() public method

Set template title variable value (all occurrences will be replaced)
public AddTitle ( string value ) : void
value string Value to set
return void

AddTitleSt() public method

Set template title variable value from StringTable (all occurrences will be replaced)
public AddTitleSt ( string stringTableKey ) : void
stringTableKey string StringTable key
return void

DataCollector() public method

Initializes a new instance of the DataCollector class.
public DataCollector ( string mainContentVariableName, string titleVariableName, IStringTable stringTable ) : System.Collections.Generic
mainContentVariableName string Name of the main content variable.
titleVariableName string Name of the title variable.
stringTable IStringTable The string table.
return System.Collections.Generic

IsDataExist() public method

Checking if some variable data is already exist in a data collector
public IsDataExist ( string variableName ) : bool
variableName string Variable name
return bool

this() public method

List of data collector items
public this ( string key ) : string
key string Item name
return string