API15

JDatabase/debug: Difference between revisions

From Joomla! Documentation

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


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

Latest revision as of 00:25, 25 March 2017

Description

Sets the debug level on or off

[<! removed edit link to red link >]

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

Syntax

debug($level)
Parameter Name Default Value Description
$level 0 = off, 1 = on

Defined in

libraries/joomla/database/database.php

Importing

jimport( 'joomla.database.database' );

Source Body

function debug( $level ) {
        $this->_debug = intval( $level );
}

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

Examples

Code Examples