function &getInstance() { if (is_null(self::$_theInstances)) { self::$_theInstances = new Debug(); } return self::$_theInstances; }
/** * 析构函数 * */ public function __destruct() { parent::__destruct(); if (KISS_Framework_Config::getMode() == 'debug') { KISS_Util_Debug::dumpinfo(); } }
/** * 执行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); }