OpenWGA 7.2 - TMLScript reference



Description Represents an full-fledged OpenWGA web application, containing an OpenWGA Content Store with complete CMS features and an OpenWGA design.
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
Inherits from object Database
Properties and methods
Name Purpose
accessLevel Returns the access level that the current user has on this database
areaNames Returns the names of all website areas in this app
contentTypeNames Returns the names of all content types in this app
db() Returns the WGAPI database object for the database
dbKey Returns the database key of the database
design() Retrieve the Design of this application
domain() Returns the Domain to which the database belongs
getPublisherOption(name) Retrieves the value of a publisher option
isAnonymous() Returns if the user in anonymously logged in to this database
isAuthor() Returns if the user has at least access level AUTHOR on this database
isChiefEditor() Returns if the user has at least access level CHIEFEDITOR on this database
isEditor() Returns if the user has at least access level EDITOR on this database
isManager() Returns if the user has access level MANAGER on this database
isOpen() Returns if a session is open on this database
isReader() Returns if the user has at least access level READER on this database
languageNames Returns the names (i.e. codes) of all language definitions in this app
lucene() Returns a Lucene object using this app as context
luceneIndexed Returns if a Lucene fulltext index is available for this application
query(queryType, query, [attributes, [queryParams, [context]]]) Performs a query on the database
userRoles Returns the ACL user roles that the current user owns on this app