message extends message_service
Facade for local_middag\framework\application\service\common\message_service.
Table of Contents
Constants
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>
- send() : void
Constants
COMPONENT
public
mixed
COMPONENT
= 'mtool_automessage'
NAME
public
mixed
NAME
= 'message'
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
Return values
array<string|int, mixed>send()
public
static send(mixed $admin, mixed $user, mixed $subject, mixed $message[, mixed $courseid = SITEID ][, mixed $attachments = null ]) : void
Parameters
- $admin : mixed
- $user : mixed
- $subject : mixed
- $message : mixed
- $courseid : mixed = SITEID
- $attachments : mixed = null