Handymail - Template class.
Organises filtered and validated form inputs into an email template ready for sending.
| package |
HandyMail |
|---|---|
| author |
I.G Laghidze developer@firewind.co.uk |
__construct(string $title, array $inputs) : null
stringThe form title.
arrayThe processed form submissions, organised into their respective fieldsets.
null
altbody() : string
stringPlain text structure of the field submissions with linebreaks.
render(string $template_name = "default.php") : string
stringThe filename for the template to use. Must exist within the /templates directory. By default, it is set to default.php
stringEither the parsed template HTML or an error message.
title : string
| var | |
|---|---|
| access |
private |
string
inputs : array
| var | |
|---|---|
| access |
private |
array