Combu Server  3.1.1
PHP API Documentation
Static Public Member Functions
ErrorMessage Class Reference

Static Public Member Functions

static Initialize ($language="en")
 
static Get ($errorName)
 
static GetLanguage ()
 

Detailed Description

Class used for Error Messages to be displayed in web services

Author
Skared Creations

Definition at line 10 of file ErrorMessage.php.

Member Function Documentation

◆ Get()

static Get (   $errorName)
static

Get the localized error message for the current language array[string]string $WS_ERRORS The global error messages array

Parameters
string$errorNameThe error key in the associative array $WS_ERRORS
Returns
string The error message

Definition at line 73 of file ErrorMessage.php.

◆ GetLanguage()

static GetLanguage ( )
static

Get the current language for error messages

Returns
string

Definition at line 84 of file ErrorMessage.php.

◆ Initialize()

static Initialize (   $language = "en")
static

Initialize the error messages

Parameters
string$languageThe language to load ('$errorFilesFolder/errors_$language.php')

Definition at line 27 of file ErrorMessage.php.