OpenWGA 7.11 - TMLScript reference


Object:

Plugin

Description

The "Plugin" object provides information about an installed OpenWGA plugin

OpenWGA plugins extend the OpenWGA server in numerous ways, including new application designs, TMLScript functionalities, authentication sources and many more. This is an information object about the data and state of an installed and active OpenWGA plugin.

Retrieval

WGA.plugin()

Design.plugin()

Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
Inherits from object App
Properties and methods
Name Purpose
accessLevel inherited Returns the access level that the current user has on this database
areaNames inherited Returns the names of all website areas in this app
contentTypeNames inherited Returns the names of all content types in this app
db() inherited Returns the WGAPI database object for the database
dbKey inherited Returns the database key of the database
design([reference]) inherited Retrieve the Design of this application
domain() inherited Returns the Domain to which the database belongs
getGlobal(name) inherited Returns a TMLScript global that is available for the current app
getHomepage() inherited Returns a TMLContext object pointing to the home page of the App - if the home page is configured "by name". Returns null otherwise.
getHomepageURL() inherited Returns the URL to the home page of the App.
getPersDb() inherited Returns the personalisation db (WGDatabase) object of the App.

Availabe since 7.9.5

getPublisherOption(name) inherited Retrieves the value of a publisher option
getUserName() inherited

Returns the distinguished name of the user currently logged in on this app

getUserProfile(name) inherited Returns the user profile (WGDocument) object for the given name.

Availabe since 7.9.5

HDBModel inherited Returns the HDBModel object for the current application
isAnonymous() inherited Returns if the user in anonymously logged in to this database
isAuthor() inherited Returns if the user has at least access level AUTHOR on this database
isChiefEditor() inherited Returns if the user has at least access level CHIEFEDITOR on this database
isEditor() inherited Returns if the user has at least access level EDITOR on this database
isManager() inherited Returns if the user has access level MANAGER on this database
isOpen() inherited Returns if a session is open on this database
isReader() inherited Returns if the user has at least access level READER on this database
languageNames inherited Returns the names (i.e. codes) of all language definitions in this app
lucene() inherited Returns a Lucene object using this app as context
luceneIndexed inherited Returns if a Lucene fulltext index is available for this application
managedGlobal(name, designLocator[, config]) inherited Define a managed global for the specified Scope.
name Returns the unique name of the plugin
query(queryType, query, [attributes, [queryParams, [context]]])
query(query [,config])
inherited
Performs a query on the database
title inherited Returns the title of the App.

(Available since 7.10.6)

userRoles inherited Returns the ACL user roles that the current user owns on this app
version Returns an object holding the version of the plugin