MailManager
class MailManager
Traits
Singleton trait.
Properties
static protected | $instance | from Singleton | |
protected array | $templateCache | ||
protected array | $callbacks | ||
protected array | $registeredTemplates | ||
protected array | $registeredPartials | ||
protected array | $registeredLayouts | ||
protected array | $registeredVariables | ||
protected bool | $isRenderingHtml | ||
protected array | $partialStack | The partials being rendered. |
|
protected array | $partialData | The original data passed to the partial. |
Methods
No description
No description
No description
No description
Render the Markdown template into HTML.
Render the Markdown template into text.
No description
No description
No description
No description
No description
Loads registered templates from extensions
Returns a list of the registered layouts.
Returns a list of the registered templates.
Returns a list of the registered partials.
Returns a list of the registered variables.
Registers mail views and manageable layouts.
Registers mail views and manageable templates.
Registers mail views and manageable partials.
Registers mail variables.
Registers a callback function that defines templates.
No description
No description
Details
in
Singleton at line 18
final static
instance()
Create a new instance of this singleton.
in
Singleton at line 28
final static
forgetInstance()
Forget this singleton's instance if it exists
in
Singleton at line 36
final protected
__construct()
Constructor.
in
Singleton at line 44
protected
initialize()
Initialize the singleton free from constructor parameters.
in
Singleton at line 48
__clone()
No description
in
Singleton at line 53
__wakeup()
No description
at line 70
addContentToMailer($message, $code, $data, $plainOnly = false)
No description
at line 84
addRawContentToMailer($message, $content, $data)
No description
at line 93
applyMailerConfigValues()
No description
at line 137
protected bool
addContentToMailerInternal(Message $message, $template, $data, bool $plainOnly = false)
No description
at line 176
string
render(string $content, array $data = [])
Render the Markdown template into HTML.
at line 194
string
renderText($content, array $data = [])
Render the Markdown template into text.
at line 207
renderTemplate($template, $data = [])
No description
at line 226
renderTextTemplate($template, $data = [])
No description
at line 247
protected
renderView($content, $data)
No description
at line 256
startPartial($code, array $params = [])
No description
at line 266
renderPartial()
No description
at line 295
void
loadRegisteredTemplates()
Loads registered templates from extensions
at line 313
array
listRegisteredLayouts()
Returns a list of the registered layouts.
at line 325
array
listRegisteredTemplates()
Returns a list of the registered templates.
at line 337
array
listRegisteredPartials()
Returns a list of the registered partials.
at line 349
array
listRegisteredVariables()
Returns a list of the registered variables.
at line 361
registerMailLayouts(array $definitions)
Registers mail views and manageable layouts.
at line 374
registerMailTemplates(array $definitions)
Registers mail views and manageable templates.
at line 387
registerMailPartials(array $definitions)
Registers mail views and manageable partials.
at line 400
registerMailVariables(array $definitions)
Registers mail variables.
at line 422
registerCallback(callable $callback)
Registers a callback function that defines templates.
The callback function should register templates by calling the manager's registerMailTemplates() function. This instance is passed to the callback function as an argument. Usage:
MailManager::instance()->registerCallback(function($manager){ $manager->registerMailTemplates([...]); });
at line 427
protected
registerBladeDirectives()
No description
at line 438
protected
processRegistrationMethodValues($extension, $method)
No description