toggle db debug flag after general setting
This commit is contained in:
@@ -762,6 +762,26 @@
|
|||||||
// PUBLIC METHODS
|
// PUBLIC METHODS
|
||||||
// *************************************************************
|
// *************************************************************
|
||||||
|
|
||||||
|
// METHOD db_set_debug
|
||||||
|
// PARAMS true/false or none
|
||||||
|
// RETURN new set debug flag
|
||||||
|
// DESC switches the debug flag on or off
|
||||||
|
// if none given, then the debug flag auto switches from
|
||||||
|
// the previous setting to either then on or off
|
||||||
|
// else override with boolean true/false
|
||||||
|
public function db_set_debug($debug = '')
|
||||||
|
{
|
||||||
|
if ($debug === true)
|
||||||
|
$this->db_debug = 1;
|
||||||
|
elseif ($debug === false)
|
||||||
|
$this->db_debug = 0;
|
||||||
|
elseif ($this->db_debug)
|
||||||
|
$this->db_debug = 0;
|
||||||
|
elseif (!$this->db_debug)
|
||||||
|
$this->db_debug = 1;
|
||||||
|
return $this->db_debug;
|
||||||
|
}
|
||||||
|
|
||||||
// METHOD db_reset_query_called
|
// METHOD db_reset_query_called
|
||||||
// PARAMS query
|
// PARAMS query
|
||||||
// RETURN none
|
// RETURN none
|
||||||
|
|||||||
Reference in New Issue
Block a user