Class Reference
IRIS for UNIX 2019.4
InterSystems: The power behind what matters   
Documentation  Search
  [%SYS] >  [%CSP] >  [TagLanguage]
Private  Storage   

class %CSP.TagLanguage extends %CSP.Rule

Implement csp:text tag using a common method, GetText that may be used to implement other language enabled tags.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
4


Summary

Properties
Children Closed Family HasEndTag LineNumber
NewSection Parent Rule TagAttributes TagName
Text TextOnly

Methods
%%OIDGet %AddToSaveSet %BindExport %BuildObjectGraph
%ClassIsLatestVersion %ClassName %Close %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IncrementCount %IsA %IsModified
%New %NormalizeObject %ObjectModified %OnNew
%OriginalNamespace %PackageName %RemoveFromSaveSet %SerializeObject
%SetModified %ValidateObject AddChildElement FormatMessage
GetAttribute GetAttributesOrdered GetText HasValue
InitAttribute InnerText IsDefined OnMatch
PopDefaultSection PushDefaultSection QuoteAttribute RenderDefaultEndTag
RenderDefaultStartTag RenderEndTag RenderStartTag SetAttribute
ValidateTag WriteCSPServer WriteCSPText WriteExpressionText
WriteServer WriteText


Methods

• final classmethod FormatMessage(language As %String, domain As %String, id As %String, default As %String, args...) as %String
FormatMessage wrapper for use in CSP page.
• classmethod GetText(tag As %CSP.Rule, default As %String = "") as %String
Return the expression that will get localized text based on the textid, domain and language attributes. GetText should be called from within a rule.

The optional Language attribute is an RFC 1766 format language name for looking up this text. %response.Language is used if Language is not specified. The Domain attribute is the optional application domain for looking up this text. %response.Domain is used if Domain is not specified. The required TextId attribute is the id that idenfies the text string. Attributes ARGn, where n is an integer, are substituted for %n in the message text.

• method RenderEndTag() as %Status
No end tag written.
• method RenderStartTag() as %Status
Call ..GetText to implement the csp:text tag.


Copyright (c) 2019 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.