This class is used to define a ZEN application. This is an instantiable CSP page.
This is a Zen Application class.
Optional name of this application.parameter CSS3INCLUDES;
If not defined, the class name of the application is used. This is used for display purposes within some utilities but it not used at run-time.
Comma-separated list of additional CSS3 include files that should be included for every page within the application.parameter CSSINCLUDES;
This is used when the page uses CSS3. The CSS files will be included after any component style sheets and before styles defined by this application class or the page class.
Comma-separated list of additional CSS include files that should be included for every page within the application.parameter HOMEPAGE;
The CSS files will be included after any component style sheets and before styles defined by this application class or the page class.
This is the URL of the main starting page of this application.parameter JSINCLUDES;
Comma-separated list of additional JS include files that should be included for every page within the application.parameter USERPACKAGES;
Comma-separated list of User class packages whose HTML class and style definitions are in pre-generated include files. These include files will be used by every page within the application.parameter USERSVGPACKAGES;
Comma-separated list of User class packages whose SVG class and style definitions are in pre-generated include files. These include files will be used by every applicable page within the application.
property %StatusCode as %Status;
Status code for this object. If a page encounters errors when trying to create the application object instance, this property will be set to an error code.
classmethod %DrawStyleHTML(pSuper As %Boolean = 0, pCSSLevel As %Integer = 2)
Write out HTML/CSS style sheet defined for this application.classmethod %GetApplicationName()
This is based on the XData block, Style.
This style sheet is used to provide application-wide overrides for styles.
Return the display name of this application class.classmethod %GetUserPackages(Output pUserPackages As %String, Output pUserSVGPackages As %String)
Return the USERPACKAGE and USERSVGPACKAGE lists defined for this application class.classmethod %LinkCSS(pFile As %String) as %String
Return string used to include a CSS file. [Previously private]classmethod %LinkScript(pFile As %String) as %String
Return string used to include a script file. [Previously private]method %OnGetJSResources(ByRef pResources As %String) as %Status
This is the same as the Zen page callback method except that it is shared by all pages within an application.
This method should fill in the array pResources with a set of localized strings, indexed by resource id:
Be sure to define the DOMAIN for your application class if you override this method.
Default OnPage handler-- only called if no HOMEPAGE is defined for this application.classmethod OnPreHTTP() as %Boolean
Event handler for PreHTTP event: this is invoked before the HTTP headers for a CSP page have been sent. All changes to the %CSP.Response class, such as adding cookies, HTTP headers, setting the content type etc. must be made from within the OnPreHTTP() method. Also changes to the state of the CSP application such as changing %session.EndSession or %session.AppTimeout must be made within the OnPreHTTP() method. It is prefered that changes to %session.Preserve are also made in the OnPreHTTP() method as this is more efficient, although it is supported in any section of the page. Return 0 to prevent OnPage from being called.