title | footer |
---|---|
\leantime\core\mailer |
false |
- Full name:
\leantime\core\mailer
__construct - get configurations
public mailer::__construct(): void
Return Value:
setContext - sets the context for the mailing (used for filters & events)
public mailer::setContext( $context): void
Parameters:
Parameter | Type | Description |
---|---|---|
context |
**** |
Return Value:
setText - sets the mailtext
public mailer::setText( $text): void
Parameters:
Parameter | Type | Description |
---|---|---|
text |
**** |
Return Value:
setHTML - set Mail html (no function yet)
public mailer::setHtml( $html): void
Parameters:
Parameter | Type | Description |
---|---|---|
html |
**** |
Return Value:
setSubject - set mail subject
public mailer::setSubject( $subject): void
Parameters:
Parameter | Type | Description |
---|---|---|
subject |
**** |
Return Value:
private mailer::dispatchMailerEvent(mixed $hookname, mixed $payload, mixed $additional_params = []): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
hookname |
mixed | |
payload |
mixed | |
additional_params |
mixed |
Return Value:
private mailer::dispatchMailerFilter(mixed $hookname, mixed $payload, mixed $additional_params): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
hookname |
mixed | |
payload |
mixed | |
additional_params |
mixed |
Return Value:
private mailer::dispatchMailerHook(mixed $type, mixed $hookname, mixed $payload, mixed $additional_params = []): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
type |
mixed | |
hookname |
mixed | |
payload |
mixed | |
additional_params |
mixed |
Return Value:
sendMail - send the mail with mail()
public mailer::sendMail(array $to, $from): void
Parameters:
Parameter | Type | Description |
---|---|---|
to |
array | |
from |
**** |
Return Value:
dispatches an event with context
public static eventhelpers::dispatch_event(string $hook, mixed $available_params = [], string|int $function = null): void
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
hook |
string | |
available_params |
mixed | |
function |
**string | int** |
Return Value:
dispatches a filter with context
public static eventhelpers::dispatch_filter(string $hook, mixed $payload, mixed $available_params = [], string|int $function = null): mixed
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
hook |
string | |
payload |
mixed | |
available_params |
mixed | |
function |
**string | int** |
Return Value:
Gets the context of the event
private static eventhelpers::get_event_context(mixed $function): string
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
function |
mixed |
Return Value:
Gets the class context based on path, this uses the same method as the autoloader Helps create unique strings for events/filters
private static eventhelpers::set_class_context(): string
- This method is static.
Return Value:
Gets the caller function name
private static eventhelpers::get_function_context(mixed $functionInt = null): string
This way we don't have to use much memory by using debug_backtrace
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
functionInt |
mixed |
Return Value:
Automatically generated from source code comments on 2023-02-28 using phpDocumentor