JError/translateErrorLevel
From Joomla! Documentation
< API15:JError
The "API15" 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'
Template:Description:JError/translateErrorLevel
Syntax[edit]
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]
function translateErrorLevel( $level )
{
if( isset($GLOBALS['_JERROR_LEVELS'][$level]) ) {
return $GLOBALS['_JERROR_LEVELS'][$level];
}
return false;
}
[Edit See Also] Template:SeeAlso:JError/translateErrorLevel
Examples[edit]
<CodeExamplesForm />