get all existing Email templates
@return
Data Table object
Arguments
get Email templates by id
Arguments
| id |
integer, required |
| currentUserLang |
string |
update / modify an Email template
@returns int - id in case of success, 0 if error
Arguments
| name |
string, required |
| description |
string |
| translations |
string |
| id |
integer, required |
| category_id |
array |
delete translations by lang
Arguments
| ids |
array |
| languages |
array |
| template_id |
integer |
Add or update the translations for a template. The combination language, id is unique
Default Language is used if not set
Arguments
| id |
integer, required |
| lang |
required, max:2 |
| sender_name |
string |
| subject |
string |
| body |
string |
| text_body |
string |
| currentUserLang |
string |
This function returns an array with all templates, so it can be used in an array (similar to getall but no datatables format)
Arguments
return the preview of one template
Arguments
| template_id |
integer, required |
| client_id |
integer, required |
| format |
string |
| lang |
string |
Get Change Log for an object
Arguments