Home > Class Reference > %SYS namespace > %CSP.CompilerContext

%CSP.CompilerContext

class %CSP.CompilerContext extends %Library.RegisteredObject

This class represents the context of the current CSP compile. This class is primarily a set of name/value pairs where the names can be thought of as "properties".

Property Inventory

Method Inventory

Properties

property InScript as %Boolean;
The InScript property is true inside of an unrecognized script tag.
Property methods: InScriptDisplayToLogical(), InScriptGet(), InScriptIsValid(), InScriptLogicalToDisplay(), InScriptNormalize(), InScriptSet()
property IsBasic as %Boolean;
IsBasic is true (=1) if the current CSP page is written in either Cache Basic or MV Basic. The IsBasic should not be modified by user code.
Property methods: IsBasicDisplayToLogical(), IsBasicGet(), IsBasicIsValid(), IsBasicLogicalToDisplay(), IsBasicNormalize(), IsBasicSet()
property PageLanguage as %String;
PageLanguage is language used to implement the current CSP page. Possible values are "cache", "basic" and "mvbasic". The PageLanguage should not be modified by user code.
Property methods: PageLanguageDisplayToLogical(), PageLanguageGet(), PageLanguageIsValid(), PageLanguageLogicalToDisplay(), PageLanguageLogicalToOdbc(), PageLanguageNormalize(), PageLanguageSet()

Methods

final method Get(property As %String, default As %String = "") as %String [ Language = objectscript ]
Return the value of property property. If the property is not defined, returns a null string ("").
final method GetByKey(key As %String, name As %String, default As %String = "") as %String [ Language = objectscript ]
Return the value associated with key and name. All key's used by CSP rules begin with "%". If the value is not defined, returns a null string ("").
final method IsDefined(property As %String) as %Boolean [ Language = objectscript ]
Tests if property property is defined.
final method IsDefinedByKey(key As %String, name As %String) as %Boolean [ Language = objectscript ]
Test if the value associated with key and name is defined. All key's used by CSP rules begin with "%".
final method Next(property As %String) as %String [ Language = objectscript ]
Get the name of the next property.
final method NextByKey(key As %String, name As %String) as %String [ Language = objectscript ]
Get the next name for key.
final method RemoveByKey(key As %String, name As %String) [ Language = objectscript ]
Remove the value associated with key and name. All key's used by CSP rules begin with "%".
final method Set(property As %String, value As %String) [ Language = objectscript ]
Set the value of property property to value.
final method SetByKey(key As %String, name As %String, value As %String) [ Language = objectscript ]
Set the value associated with key and name. All key's used by CSP rules begin with "%".
final method clear() [ Language = objectscript ]
Clear the contents of this object.
final method remove(property As %String) [ Language = objectscript ]
Removes property property from this object.

Inherited Members

Inherited Methods