Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Public Attributes | List of all members
user_message Class Reference

A chat message from a user. More...

Inheritance diagram for user_message:
renderable

Public Member Functions

 __construct ($senderprofile, $sendername, $avatar, $mymessageclass, $time, $message, $theme)
 user_message constructor More...
 

Public Attributes

string $avatar
 HTML for the avatar of the user sending the message.
 
string $message
 The message.
 
string $mymessageclass
 Empty or a html class definition to append to the html.
 
string $sendername
 The ready to display name of the user sending the message.
 
string $senderprofile
 The URL of the profile of the user sending the message.
 
string $theme
 The name of the chat theme to use.
 
string $time
 Ready to display message time.
 

Detailed Description

A chat message from a user.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

user_message::__construct (   $senderprofile,
  $sendername,
  $avatar,
  $mymessageclass,
  $time,
  $message,
  $theme 
)

user_message constructor

Parameters
string$senderprofileThe URL of the profile of the user sending the message
string$sendernameThe ready to display name of the user sending the message
string$avatarHTML for the avatar of the user sending the message
string$mymessageclassEmpty or a html class definition to append to the html
string$timeReady to display message time
string$messageThe message
string$themeThe name of the chat theme to use

The documentation for this class was generated from the following file: