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 85
addRawContentToMailer($message, $content, $data)
No description
at line 94
applyMailerConfigValues()
No description
at line 141
protected bool
addContentToMailerInternal(Message $message, $template, $data, bool $plainOnly = FALSE)
No description
at line 180
string
render(string $content, array $data = [])
Render the Markdown template into HTML.
at line 198
string
renderText($content, array $data = [])
Render the Markdown template into text.
at line 211
renderTemplate($template, $data = [])
No description
at line 230
renderTextTemplate($template, $data = [])
No description
at line 251
protected
renderView($content, $data)
No description
at line 260
startPartial($code, array $params = [])
No description
at line 270
renderPartial()
No description
at line 299
void
loadRegisteredTemplates()
Loads registered templates from extensions
at line 317
array
listRegisteredLayouts()
Returns a list of the registered layouts.
at line 329
array
listRegisteredTemplates()
Returns a list of the registered templates.
at line 341
array
listRegisteredPartials()
Returns a list of the registered partials.
at line 353
array
listRegisteredVariables()
Returns a list of the registered variables.
at line 365
registerMailLayouts(array $definitions)
Registers mail views and manageable layouts.
at line 378
registerMailTemplates(array $definitions)
Registers mail views and manageable templates.
at line 391
registerMailPartials(array $definitions)
Registers mail views and manageable partials.
at line 404
registerMailVariables(array $definitions)
Registers mail variables.
at line 426
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 431
protected
registerBladeDirectives()
No description
at line 442
protected
processRegistrationMethodValues($extension, $method)
No description