Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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: