dbmodel.php

来自「a short sketch about linux syntex lines.」· PHP 代码 · 共 28 行

PHP
28
字号
<?php
/*
数据库连接配置文件
*/
class DBModel {
	public $_DB;
	protected $_Response;
	public $tblpre;
	public $_Page;
	public $_XML;
	public $error;
	public $printPage;
	function __construct(){
		$tblpre = '';
		$this->_Page = new  Page();
		$this->_XML = new Easy_Config();	//载入xml解析类
		$this->_Response = new Easy_Controller_Request();
		$this->_DB = $GLOBALS['DB'];
		$this->init();

	}
	final public function getInstance(){
		return $this->_DB;
	}
	protected function init(){
		//CheckDeny();
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?