Application
This class has a single instance which provides access to certain properties of the applicative server. This singleton is accessible via the application global variable.
Methods
| hasPackage | Tests if a package is installed. |
| getSchema | Returns a mapping to a Neolane schema or null if the schema doesn't exist. |
| getDBMSType | Returns the server type of the database. |
| getNewIds | Returns a list of IDs of the internal database keys. |
| getConnection | Returns a new connection to the database server. |
| getTimezoneJson | Returns a string of characters which is the JSON representation of the list of time differences with UTC time and their start date compared to the UNIX period for a time zone. |
| onLog | Adds or deletes an interception function for the messages written to the journal |
| onTrace | Adds or deletes a trace message interception function. |
Properties
| buildNumber | Returns the build number of the applicative server. |
| instanceName | Name of the instance where the script is executed. |
| instanceVarDir | Complete path of the 'var' directory for the instance where the script is executed. |
| instanceUploadDir | Full path of the 'upload' directory for the instance where the script is executed. |
| operator | Returns an object containing information on the current operator (name, identifiers, rights, etc.). |
| locale | Returns a caracter string that matches the instance Local. |
Features
Available in:
- Content management
- Delivery properties
- Typology rule
- JSSP
- SOAP Method
- WebApp
- Workflow