cvs: pear /DB_DataObject DataObject.php

From: Date: Thu, 15 Aug 2002 05:13:51 +0000
Subject: cvs: pear /DB_DataObject DataObject.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5750@lists.php.net to get a copy of this message
alan_k Thu Aug 15 01:13:51 2002 EDT Modified files: /pear/DB_DataObject DataObject.php Log: disable debugger if used by extended classes when in production mode Index: pear/DB_DataObject/DataObject.php diff -u pear/DB_DataObject/DataObject.php:1.19 pear/DB_DataObject/DataObject.php:1.20 --- pear/DB_DataObject/DataObject.php:1.19 Thu Aug 15 00:48:23 2002 +++ pear/DB_DataObject/DataObject.php Thu Aug 15 01:13:51 2002 @@ -15,12 +15,12 @@ // | Author: Alan Knowles <alan@akbkhome.com> // +----------------------------------------------------------------------+ // -// $Id: DataObject.php,v 1.19 2002/08/15 04:48:23 alan_k Exp $ +// $Id: DataObject.php,v 1.20 2002/08/15 05:13:51 alan_k Exp $ // // Object Based Database Query Builder and data store // -require_once( 'DB.php' ); -require_once( 'PEAR.php' ); +require_once 'DB.php'; +require_once 'PEAR.php'; /** * these are constants for the get_table array @@ -1262,7 +1262,7 @@ $this->$k = $from[$k]; } return TRUE; - } + }}} /** * validate - override this to set up your validation rules @@ -1319,6 +1319,10 @@ */ function debug($message,$logtype=0, $level=1) { + if ($GLOBALS['_DB_DATAOBJECT_PRODUCTION']) { + return; + } + if (DB_DataObject::debugLevel()<$level) { return; }

« previous php.pear.cvs (#5750) next »