message_support extends facade
Facade for local_middag\framework\support\moodle\message_support.
Tags
Table of Contents
Methods
- create_conversation() : mixed
- create_link() : string
- create_message() : message
- create_temp_attachment() : array<string|int, mixed>
- email() : mixed
- get_conversation_between_users() : mixed
- get_conversation_id() : int
- get_facade_accessor() : string
- Return the service accessor key for this facade.
- get_noreply_user() : mixed
- get_self_conversation() : mixed
- send() : mixed
Methods
create_conversation()
public
static create_conversation(int $type, array<string|int, mixed> $userids) : mixed
Parameters
- $type : int
- $userids : array<string|int, mixed>
create_link()
public
static create_link(moodle_url $url, string $text) : string
Parameters
- $url : moodle_url
- $text : string
Return values
stringcreate_message()
public
static create_message() : message
Return values
messagecreate_temp_attachment()
public
static create_temp_attachment(stored_file $file) : array<string|int, mixed>
Parameters
- $file : stored_file
Return values
array<string|int, mixed>email()
public
static email(mixed $to, mixed $from, mixed $subject, mixed $html, mixed $text[, mixed $attachment = = '\'\'' ][, mixed $name = = '\'\'' ]) : mixed
Parameters
- $to : mixed
- $from : mixed
- $subject : mixed
- $html : mixed
- $text : mixed
- $attachment : mixed = = '\'\''
- $name : mixed = = '\'\''
get_conversation_between_users()
public
static get_conversation_between_users(array<string|int, mixed> $userids) : mixed
Parameters
- $userids : array<string|int, mixed>
get_conversation_id()
public
static get_conversation_id(message $message) : int
Parameters
- $message : message
Return values
intget_facade_accessor()
Return the service accessor key for this facade.
public
static get_facade_accessor() : string
Return values
stringget_noreply_user()
public
static get_noreply_user() : mixed
get_self_conversation()
public
static get_self_conversation(int $userid) : mixed
Parameters
- $userid : int
send()
public
static send(message $msg) : mixed
Parameters
- $msg : message