getTemplate()
Overview
public struct function getTemplate(
required string id
, boolean allowDrafts = false
, numeric version = 0
, boolean fromVersionTable
, array extraSelectFields
)
Returns the saved template from the database
Arguments
Name | Type | Required | Description |
---|---|---|---|
id | string | Yes | ID of the template to get |
allowDrafts | boolean | No (default=false) | Whether or not to allow draft versions of the template |
version | numeric | No (default=0) | Specific version from version history to get |
fromVersionTable | boolean | No | |
extraSelectFields | array | No |