This class is an instantion of the Command class, that executes a command pertaining to fetching email template information, in the default case from the database. This class should only be instantiated by dispatchMBAPI() found in include/mbapi/mbapi.php. Remember when passing in an email body that it should have
<mbapi> <command><!-- string --></command> <showXMLHeader><!-- boolean --></showXMLHeader> <params> <emailTplID><!-- None --></emailTplID> <emailTplName><!-- string --></emailTplName> <emailTplSubject><!-- string --></emailTplSubject> <emailTplPrimary><!-- int --></emailTplPrimary> <emailTplBody><!-- string --></emailTplBody> <emailTplTextBody><!-- string --></emailTplTextBody> <localeLanguage><!-- string --></localeLanguage> <localeRegion><!-- string --></localeRegion> <sortDir><!-- None --></sortDir> <sortColumn><!-- None --></sortColumn> <recordOffset><!-- None --></recordOffset> <numRecords><!-- None --></numRecords> </params> </mbapi>
None
mbapi
MBAPI request document root.
command
Required. The string GetEmailTemplates.
showXMLHeader
Whether to show an XML header in the results.
params
GetEmailTemplates parameters.
emailTplID
emailTplName
The name of the template to fetch. This is searched on using a LIKE clause.
emailTplSubject
The subject of the template to fetch. This is searched on using a LIKE clause.
emailTplPrimary
Indicates that this template is the default template for the template group. If there are no template matches based on locale, this template is used.
emailTplBody
The HTML body of the template to fetch. See note above about the use of HTML in an XML call.
emailTplTextBody
The text-only body of the template to fetch.
localeLanguage
The langauge of the template to fetch. This can include the optional ISO 15924 script code if applicable.
localeRegion
The optional ISO 639 or UN M.49 code for the country or region this template is designed for.
sortDir
sortColumn
recordOffset
numRecords