Example #1
0
 function &getInstance()
 {
     if (is_null(self::$_theInstances)) {
         self::$_theInstances = new Debug();
     }
     return self::$_theInstances;
 }
Example #2
0
 /**
  * 析构函数
  *
  */
 public function __destruct()
 {
     parent::__destruct();
     if (KISS_Framework_Config::getMode() == 'debug') {
         KISS_Util_Debug::dumpinfo();
     }
 }
Example #3
0
 /**
  * 执行SQL查询
  *
  * @param string $pQuery
  * @return mix
  */
 function ExecuteQuery($pQuery)
 {
     $this->connectDB();
     if (KISS_Framework_Config::getMode() == 'debug') {
         KISS_Util_Debug::setDebugInfo(array($this->UniqueObjectID, get_class($this), 'SQLQuery', $pQuery));
     }
     return $this->db_query($pQuery);
 }