Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
error_messages Class Reference

Public Member Functions

 __toString ()
 Casting to string method.
 
 add ($msg)
 
 errors ()
 
 reset ()
 Empties the error content.
 
 to_string ($web=false)
 

Static Public Member Functions

static instance ()
 

Member Function Documentation

◆ __toString()

error_messages::__toString ( )

Casting to string method.

Return values
string

◆ add()

error_messages::add ( $msg)
Parameters
string$msg

◆ errors()

error_messages::errors ( )
Return values
array

◆ instance()

static error_messages::instance ( )
static
Return values
error_messages

◆ to_string()

error_messages::to_string ( $web = false)
Parameters
boolean$web
Return values
string

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