Property | Type | Description | |
---|---|---|---|
__controller | |||
childOutput | |||
context | IRailsEngineContext | ||
parent | |||
viewEngine |
Method | Description | |
---|---|---|
AddProperty ( string name, object item ) : void |
Note that this will overwrite any existing property.
|
|
AddViewComponentProperties ( IDictionary newProperties ) : void |
Adds the view component newProperties. This will be included in the parameters searching, note that this override the current parameters if there are clashing. The search order is LIFO
|
|
BrailBase ( |
Initializes a new instance of the BrailBase class.
|
|
GetParameter ( string name ) : object |
this is called by ReplaceUnknownWithParameters step to create a more dynamic experiance any uknown identifier will be translate into a call for GetParameter('identifier name'). This mean that when an uknonwn identifier is in the script, it will only be found on runtime.
|
|
GetSubViewFilename ( string subviewName ) : string |
Get the sub view file name, if the subview starts with a '/' then the filename is considered relative to ViewDirRoot otherwise, it's relative to the current script directory
|
|
IsDefined ( string name ) : bool |
Allows to check that a parameter was defined
|
|
OutputSubView ( string subviewName ) : string |
Output the subview to the client, this is either a relative path "SubView" which is relative to the current /script/ or an "absolute" path "/home/menu" which is actually relative to ViewDirRoot
|
|
OutputSubView ( string subviewName, IDictionary parameters ) : string |
Similiar to the OutputSubView(string) function, but with a bunch of parameters that are used just for this subview. This parameters are /not/ inheritable.
|
|
OutputSubView ( string subviewName, |
Outputs the sub view to the writer
|
|
RemoveViewComponentProperties ( IDictionary propertiesToRemove ) : void |
Removes the view component properties, so they will no longer be visible to the views.
|
|
RenderComponent ( string componentName ) : void | ||
RenderComponent ( string componentName, IDictionary parameters ) : void | ||
Run ( ) : void |
Runs this instance, this is generated by the script
|
|
SetOutputStream ( |
This is required because we may want to replace the output stream and get the correct behavior from components call RenderText() or RenderSection()
|
|
SetParent ( |
Sets the parent.
|
|
TryGetParameter ( string name ) : object |
this is called by ReplaceUnknownWithParameters step to create a more dynamic experiance any uknown identifier with the prefix of ? will be translated into a call for TryGetParameter('identifier name without the ? prefix'). This method will return null if the value it not found.
|
Method | Description | |
---|---|---|
GetParameterInternal ( string name ) : ParameterSearch |
Gets the parameter - implements the logic for searching parameters.
|
|
InitProperties ( IRailsEngineContext myContext, |
Initialize all the properties that a script may need One thing to note here is that resources are wrapped in ResourceToDuck wrapper to enable easy use by the script
|
public AddProperty ( string name, object item ) : void | ||
name | string | |
item | object | |
return | void |
public AddViewComponentProperties ( IDictionary newProperties ) : void | ||
newProperties | IDictionary | The newProperties. |
return | void |
public BrailBase ( |
||
viewEngine | The view engine. | |
output | The output. | |
context | IRailsEngineContext | The context. |
__controller | The controller. | |
return | System.Diagnostics |
public GetSubViewFilename ( string subviewName ) : string | ||
subviewName | string | |
return | string |
public OutputSubView ( string subviewName ) : string | ||
subviewName | string | |
return | string |
public OutputSubView ( string subviewName, IDictionary parameters ) : string | ||
subviewName | string | |
parameters | IDictionary | |
return | string |
public OutputSubView ( string subviewName, |
||
subviewName | string | Name of the subview. |
writer | The writer. | |
parameters | IDictionary | The parameters. |
return | void |
public RemoveViewComponentProperties ( IDictionary propertiesToRemove ) : void | ||
propertiesToRemove | IDictionary | The properties to remove. |
return | void |
public RenderComponent ( string componentName ) : void | ||
componentName | string | |
return | void |
public RenderComponent ( string componentName, IDictionary parameters ) : void | ||
componentName | string | |
parameters | IDictionary | |
return | void |
public SetOutputStream ( |
||
newOutputStream | ||
return | IDisposable |
public SetParent ( |
||
myParent | My parent. | |
return | void |
public TryGetParameter ( string name ) : object | ||
name | string | |
return | object |
protected Controller,Castle.MonoRail.Framework __controller | ||
return |
protected TextWriter,System.IO childOutput | ||
return |