You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
462 B
17 lines
462 B
<?php
|
|
namespace Home\Model;
|
|
use Think\Model;
|
|
/**
|
|
*
|
|
*
|
|
*
|
|
*/
|
|
class BaseModel extends Model {
|
|
// 自动验证 //默认,验证条件:0存在字段就进行验证 , 验证时间:1新增/编辑 数据时候验证
|
|
protected $_validate = array ();
|
|
// 自动填充 //默认 新增数据的时候处理
|
|
protected $_auto = array ();
|
|
// 只读字段,插入后不能通过save更新
|
|
protected $readonlyField = array ();
|
|
|
|
}
|