message_service extends facade
Facade for local_middag\framework\application\service\common\message_service.
Tags
Table of Contents
Methods
- email() : void
- get_conversation_id() : int
- get_facade_accessor() : string
- Return the service accessor key for this facade.
- message() : mixed
- notification() : mixed
- prepare() : message
- prepare_text() : array<string|int, mixed>
Methods
email()
public
static email(mixed $from, mixed $to, string $subject, string $text[, int $courseid = = '0' ][, array<string|int, mixed>|null $attachments = = 'null' ]) : void
Parameters
- $from : mixed
- $to : mixed
- $subject : string
- $text : string
- $courseid : int = = '0'
- $attachments : array<string|int, mixed>|null = = 'null'
get_conversation_id()
public
static get_conversation_id(mixed $message) : int
Parameters
- $message : mixed
Return values
intget_facade_accessor()
Return the service accessor key for this facade.
public
static get_facade_accessor() : string
Return values
stringmessage()
public
static message(mixed $from, mixed $to, string $subject, string $text[, int $courseid = = '0' ]) : mixed
Parameters
- $from : mixed
- $to : mixed
- $subject : string
- $text : string
- $courseid : int = = '0'
notification()
public
static notification(mixed $from, mixed $to, string $subject, string $text[, int $courseid = = '0' ][, mixed $url = = 'null' ][, string|null $urlname = = 'null' ]) : mixed
Parameters
- $from : mixed
- $to : mixed
- $subject : string
- $text : string
- $courseid : int = = '0'
- $url : mixed = = 'null'
- $urlname : string|null = = 'null'
prepare()
public
static prepare(mixed $from, mixed $to, string $subject, string $text[, int $courseid = = '0' ]) : message
Parameters
- $from : mixed
- $to : mixed
- $subject : string
- $text : string
- $courseid : int = = '0'
Return values
messageprepare_text()
public
static prepare_text(mixed $course, mixed $user) : array<string|int, mixed>
Parameters
- $course : mixed
- $user : mixed