API15

JError/translateErrorLevel

From Joomla! Documentation

< API15:JError
Revision as of 17:18, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Translate an error level integer to a human readable string e.g. E_ERROR will be translated to 'Error' <span class="editsection" style="font-size:76%;"> <nowiki>[</n...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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'

[Edit Descripton]

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 />