Skip to content

Commit e24fd33

Browse files
committed
methods to turn on/off debug echo output when calling debug()
#163
1 parent 34e49ce commit e24fd33

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

lib/ezsqlModel.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,22 @@ public function hide_errors()
237237
$this->show_errors = false;
238238
}
239239

240+
/**
241+
* Turn on echoing of debug info, for `debug()`
242+
*/
243+
public function debugOn()
244+
{
245+
$this->debug_echo_is_on = true;
246+
}
247+
248+
/**
249+
* Turn off echoing of debug info, the default, for `debug()`
250+
*/
251+
public function debugOff()
252+
{
253+
$this->debug_echo_is_on = false;
254+
}
255+
240256
public function flush()
241257
{
242258
// Get rid of these

0 commit comments

Comments
 (0)