MIDDAG for Moodle

message_service extends facade

Facade for local_middag\framework\application\service\common\message_service.

Tags
see
message_service
mixin

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
int

get_facade_accessor()

Return the service accessor key for this facade.

public static get_facade_accessor() : string
Return values
string

message()

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
message

prepare_text()

public static prepare_text(mixed $course, mixed $user) : array<string|int, mixed>
Parameters
$course : mixed
$user : mixed
Return values
array<string|int, mixed>

        
On this page

Search results