MacroProcessor Class |
Namespace: CMS.MacroEngine
public static class MacroProcessor
The MacroProcessor type exposes the following members.
Name | Description | |
---|---|---|
NOT_RESOLVE |
Defines a replacement constant for macro processing to not resolve the macro at all
| |
XMLColumns |
List of XML columns needed for signing the macros.
|
Name | Description | |
---|---|---|
BuildMacroParameter |
Builds the macro parameter.
| |
ContainsMacro |
Returns true if the specified text contains macro.
| |
DecodeMacros |
HTML decodes macro definitions for given text.
| |
EncodeMacro |
Encodes macro to prevent its resolving.
| |
EscapeParameterValue |
Escapes the parameter value (ensures nested macros within the parameter values are escaped).
| |
GetMacros |
Gets the list of macros in the given text.
| |
IsLocalizationMacro |
Returns true if given text is in {$xxx$} format.
Note that this method returns true only if the whole text is localization macro, it is NOT a contains method.
| |
IsXMLColumn |
Returns true, if the given column is a XML column
| |
ProcessDataMacros |
Replaces data macros with given replacement or resolves them if replacement is null.
| |
ProcessMacros |
Replaces macros with given replacement or resolves them if replacement is null.
| |
RemoveDataMacroBrackets |
Removes data macro brackets {% %} from given text.
| |
RemoveLocalizationMacroBrackets |
Removes localization macro brackets {$ $} from given text.
| |
RemoveMacroBrackets |
Removes all types macro brackets from given text.
| |
RemoveMacros |
Removes macros from input text. Macros are replaced by specified replacement.
| |
RemoveParameter(String, String) |
Removes parameter with given name from macro expression (expression should be without brackets {%%}).
| |
RemoveParameter(String, String, String) |
Removes parameter with given name from macro expression (expression should be without brackets {%%}).
| |
RemoveQueryMacroBrackets |
Removes query macro brackets {? ?} from given text.
| |
UnescapeParameterValue |
Un escapes the parameter value.
|