[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
xampp182
/
htdocs
/
ppmi
/
assets
/
js
/
libs
/
ckeditor
/
samples
/
love
/
class
/
app
/
core
/
[
Home
]
File: Model.class.php
<?php /* * @link http://kodcloud.com/ * @author warlee | e-mail:kodcloud@qq.com * @copyright warlee 2014.(Shanghai)Co.,Ltd * @license http://kodcloud.com/tools/license/license.txt */ /** * 模型抽象类 * 一个关于各种模型的基本行为类,每个模型都必须继承这个类的方法 */ abstract class Model { var $db = null; var $in; var $config; /** * 构造函数 * @return Null */ function __construct(){ global $config, $in; $this -> in = &$in; $this -> config = &$config; } /** * TODO db */ function db(){ if ($this ->db != NULL) { return $this ->db; }else{ } } }