Skip to main content

%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
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
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
Tests if property property is defined.
final method IsDefinedByKey(key As %String, name As %String) as %Boolean
Test if the value associated with key and name is defined. All key's used by CSP rules begin with "%".
Get the name of the next property.
final method NextByKey(key As %String, name As %String) as %String
Get the next name for key.
final method RemoveByKey(key As %String, name As %String)
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)
Set the value of property property to value.
final method SetByKey(key As %String, name As %String, value As %String)
Set the value associated with key and name. All key's used by CSP rules begin with "%".
final method clear()
Clear the contents of this object.
final method remove(property As %String)
Removes property property from this object.

Inherited Members

Inherited Methods

FeedbackOpens in a new tab