MIDDAG for Moodle

message extends message_service

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

Table of Contents

Constants

COMPONENT  = 'mtool_automessage'
NAME  = 'message'

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'

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>

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

        
On this page

Search results