| Inherits from | NSObject |
| Declared in | GBTemplateVariablesProvider.h<br />GBTemplateVariablesProvider.m |
Provides variables for template string for given objects.
The main purpose of this class is to prepare an intermediate variables from given objects suitable for template generation. Although original object could easily be used within templates, using simplified, intermediate, form greatly simplifies template files. Think of the variables as the controlley layer for the template engine.
This class is intended to be reused, create a single instance and pass it the objects - one by one - for which you'd like to get template variables.
+ providerWithSettingsProvider:
Returns autoreleased provider that work with the given GBApplicationSettingsProvider implementor.
- initWithSettingsProvider:
Initializes the provider to work with the given GBApplicationSettingsProvider implementor.
- variablesForClass:withStore:
Returns the variables for the given GBClassData using the given GBStoreProviding for links.
- variablesForCategory:withStore:
Returns the variables for the given GBCategoryData using the given GBStoreProviding for links.
- variablesForProtocol:withStore:
Returns the variables for the given GBProtocolData using the given GBStoreProviding for links.
- variablesForIndexWithStore:
Returns the variables for the index file using the given GBStoreProviding for links.
Returns autoreleased provider that work with the given GBApplicationSettingsProvider implementor.
+ (id)providerWithSettingsProvider:(id)settingsProvider Returns initialized instance or nil if initialization fails.
Returns autoreleased provider that work with the given GBApplicationSettingsProvider implementor.
nil . GBTemplateVariablesProvider.hGBTemplateVariablesProvider.m Initializes the provider to work with the given GBApplicationSettingsProvider implementor.
- (id)initWithSettingsProvider:(id)settingsProvider Returns initialized instance or nil if initialization fails.
Initializes the provider to work with the given GBApplicationSettingsProvider implementor.
This is the designated initializer.
nil . GBTemplateVariablesProvider.hGBTemplateVariablesProvider.m Returns the variables for the given GBCategoryData using the given GBStoreProviding for links.
- (NSDictionary *)variablesForCategory:(GBCategoryData *)object withStore:(id < GBStoreProviding >)storeReturns dictionary of all variables
Returns the variables for the given GBCategoryData using the given GBStoreProviding for links.
The result can be used with GBTemplateHandler to generate category specific output.
nil . GBTemplateVariablesProvider.hGBTemplateVariablesProvider.m Returns the variables for the given GBClassData using the given GBStoreProviding for links.
- (NSDictionary *)variablesForClass:(GBClassData *)object withStore:(id < GBStoreProviding >)storeReturns dictionary of all variables
Returns the variables for the given GBClassData using the given GBStoreProviding for links.
The result can be used with GBTemplateHandler to generate class specific output.
nil . GBTemplateVariablesProvider.hGBTemplateVariablesProvider.m Returns the variables for the index file using the given GBStoreProviding for links.
- (NSDictionary *)variablesForIndexWithStore:(id < GBStoreProviding >)storeReturns dictionary of all variables
Returns the variables for the index file using the given GBStoreProviding for links.
The result can be used with GBTemplateHandler to generate protocol specific output.
nil . GBTemplateVariablesProvider.hGBTemplateVariablesProvider.m Returns the variables for the given GBProtocolData using the given GBStoreProviding for links.
- (NSDictionary *)variablesForProtocol:(GBProtocolData *)object withStore:(id < GBStoreProviding >)storeReturns dictionary of all variables
Returns the variables for the given GBProtocolData using the given GBStoreProviding for links.
The result can be used with GBTemplateHandler to generate protocol specific output.
nil . GBTemplateVariablesProvider.hGBTemplateVariablesProvider.m