38 lines
627 B
PHP
Executable File
38 lines
627 B
PHP
Executable File
<?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{
|
|
}
|
|
}
|
|
} |