/** * 取得数据库信息 * * @access public * @return mixed */ public static function getDbInfo() { if (self::$dbinfo == null) { self::$dbinfo = Tiny::app()->db; } return self::$dbinfo; }