API15

JError/getErrorHandling: Difference between revisions

From Joomla! Documentation

m removing red link to edit, no existant pages
m preparing for archive only
 
Line 44: Line 44:


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=getErrorHandling
  category=getErrorHandling
  category=JError
  category=JError
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*

Latest revision as of 00:35, 25 March 2017

Description

Method to get the current error handler settings for a specified error level.

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax

getErrorHandling($level)
Parameter Name Default Value Description
$level $level The error level to retrieve. This can be any of PHP's own error levels, e.g. E_ALL, E_NOTICE...

Returns

array All error handling details

Defined in

libraries/joomla/error/error.php

Importing

jimport( 'joomla.error.error' );

Source Body

function getErrorHandling( $level )
{
            return $GLOBALS['_JERROR_HANDLERS'][$level];
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

Code Examples