GetPrimaryWebhareTransactionObject (open)
Returns the primary WebHare transaction object
Syntax
LOADLIB "mod::system/lib/database.whlib";
OBJECT FUNCTION GetPrimaryWebhareTransactionObject()
Return value
OBJECT
Transaction object for the primary transaction, or DEFAULT OBJECT if no primary transaction was set up
Description
In some contexts, such as a SHTML file parsed by the WebHare webserver, or a template used for conversion, a WebHare database transaction is opened by WebHare when calling the script. This function can be used to obtain the transaction object.