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

Public Member Functions

 __toString ()
 Casting to string method. More...
 
 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: