You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
987 B
PHP
30 lines
987 B
PHP
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | OneThink [ WE CAN DO IT JUST THINK IT ]
|
|
// +----------------------------------------------------------------------
|
|
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
|
|
// +----------------------------------------------------------------------
|
|
// | Author: yangweijie <yangweijiester@gmail.com> <code-tech.diandian.com>
|
|
// +----------------------------------------------------------------------
|
|
namespace Admin\Model;
|
|
use Think\Model;
|
|
|
|
/**
|
|
* 插件模型
|
|
* @author yangweijie <yangweijiester@gmail.com>
|
|
*/
|
|
|
|
class MenuModel extends Model {
|
|
|
|
protected $_validate = array(
|
|
array('title','require','标题必须填写'),
|
|
array('url','require','链接必须填写'),
|
|
);
|
|
|
|
/* 自动完成规则 */
|
|
protected $_auto = array(
|
|
array('title', 'htmlspecialchars', self::MODEL_BOTH, 'function'),
|
|
array('status', '1', self::MODEL_INSERT),
|
|
);
|
|
|
|
} |