GetPrimaryWebhareTransactionObject (open)

Returns the primary WebHare transaction object


LOADLIB "mod::system/lib/database.whlib";

OBJECT FUNCTION GetPrimaryWebhareTransactionObject()

Return value


Transaction object for the primary transaction, or DEFAULT OBJECT if no primary transaction was set up


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.