Home > Class Reference > ENSLIB namespace > %ZEN.Utils

%ZEN.Utils

class %ZEN.Utils extends %Library.RegisteredObject

This class contains various utility methods needed by the ZEN framework.

Method Inventory (Including Private)

Parameters

parameter DOMAIN = %ZEN;

Methods (Including Private)

classmethod %BrowserSupportsHTML5(pUserAgent As %String = {$select($IsObject($get(%request)) As %request.UserAgent, 1 As "")}) as %Boolean
Helper method to determine whether the UserAgent in pUserAgent supports HTML5. If pUserAgent is not supplied and the %request object exists, the value of pUserAgent defaults to %request.UserAgent.
classmethod %DisplayErrorHTML(pObject As %RegisteredObject, tSC As %Status)
Display a status code within an HTML element.
classmethod %DisplayErrorJS(pObject As %RegisteredObject, tSC As %Status)
Display a status code within JavaScript alert box.
classmethod %DisplayErrorSVG(pObject As %RegisteredObject, tSC As %Status)
Display a status code within an SVG element.
classmethod %DrawClassDescription(pClass As %String)
Write out description of the given class as HTML.
classmethod %DrawPropertyDescription(pClass As %String, pProperty As %String)
Write out description of the given property as HTML.
classmethod %FindComponentClassByName(pNamespace As %String, pName As %String) as %String
Given an xml namespace and a component name, return the class name of the corresponding Zen component.
classmethod %GenerateIncludeFiles(pPackage As %String, pType As %String = "") as %Status
Generate include files for a given Zen package.
pPackage is the package name.
classmethod %GenerateIncludeFilesForModules(pPackage As %String, ByRef pModules, pAll As %Boolean = 0, pDisplay As %Boolean = 1) as %Status
Generate include files for a given Zen package and list of modules.
pPackage is the package name.
pModules is a list of module names by package.
If pAll is true, then process all modules in the given package.
classmethod %GenerateSchema() as %Status
Generate XML schema information needed for StudioAssist.
classmethod %GetIncludeDirectory(Output pUrl As %String) as %String
Return the physical directory in which common include files are written.
classmethod %GetLinksInPage(pPage As %String, Output pList As %String)
Utility method. Return array of links within the given page class.
classmethod %GetPagesInApplication(pApplication As %String, Output pList As %String)
Return array of pages within the given application class.
classmethod %GetPhysicalIncludeDirectory(pPackage As %String, Output pStatus As %Status, Output pUrl As %String) as %String
Given a package name, return the physical directory into which include files should be generated.
classmethod %GetPropertyValue(pObject As %ZEN.Component.object, pPropName As %String, Output pValue As %String) as %Status
Internal method: get value for a given property of a given object. If the value is the default do not set pValue.
classmethod %GetUserIncludeDirectory(Output pUrl As %String) as %String
Return the directory in which user include files are written.
classmethod %InvalidateSchema() as