JError/translateErrorLevel
From Joomla! Documentation
< API16:JError
The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
Description[edit]
Translate an error level integer to a human readable string e.g. E_ERROR will be translated to 'Error'
<! removed transcluded page call, red link never existed >
Syntax[edit]
static translateErrorLevel($level)
Parameter Name | Default Value | Description |
---|---|---|
$level | $level Error level to translate |
Returns[edit]
mixed Human readable error level name or boolean false if it doesn't exist
Defined in[edit]
libraries/joomla/error/error.php
Importing[edit]
jimport( 'joomla.error.error' );
Source Body[edit]
public static function translateErrorLevel($level)
{
if (isset(JError::$levels[$level])) {
return JError::$levels[$level];
}
return false;
}
<! removed transcluded page call, red link never existed >
Examples[edit]
Code Examples[edit]