Source for file Db.class.php
Documentation is available at Db.class.php
* Gumbo Library Framework
* This library is being released under the terms of the New BSD License. A
* copy of the license is packaged with the software (LICENSE.txt). If no
* copy is found, a copy of the license template can be found at:
* http://www.opensource.org/licenses/bsd-license.php
* @copyright Copyright (c) 2007, iBayou, Michael Luster
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @author Michael Luster <mluster79@yahoo.com>
* @link http://sourceforge.net/projects/phpgumbo
* @copyright Copyright (c) 2007, iBayou, Michael Luster
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @author Michael Luster <mluster79@yahoo.com>
* @link http://sourceforge.net/projects/phpgumbo
* @desc Debug DB Report Class
gumbo_load ("Debug_Report");
/** @var string $_db Debug Report Database */
* @param string $db database table name
if (defined ("GUMBO_DEBUG_DB")) { $this->setDb (GUMBO_DEBUG_DB); }
* @param num $start_time initial start time of script debugger
* @throws Gumbo_Exception
* @uses Gumbo_Date, Gumbo_Query
public function run ($start_time=
null) {
$mess->setSeconds ($start_time);
$sql =
"insert into " .
$this->getDb () .
" " .
"(date, time, message, file, line, func, cls) values " .
"({$date->get ()}, {
$mess->getSeconds ()}, {
$this->getMessage ()},
" .
"{
$this->getFile ()}, {
$this->getLine ()}, {
$this->getFunction ()}, {
$this->getClass ()})
";
$start_time =
$mess->getTime ();
$e->setFunction (__METHOD__
);
* Sets the Debug Database
* @throws Gumbo_Exception
public function setDb ($db) {
$e->setFunction (__METHOD__
);
* Returns the Debug Database
public function getDb () {