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.
25 lines
824 B
PHP
25 lines
824 B
PHP
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | OneThink [ WE CAN DO IT JUST THINK IT ]
|
|
// +----------------------------------------------------------------------
|
|
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
|
|
// +----------------------------------------------------------------------
|
|
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>
|
|
// +----------------------------------------------------------------------
|
|
|
|
namespace Home\Logic;
|
|
|
|
/**
|
|
* 文档模型子模型 - 文章模型
|
|
*/
|
|
class ArticleLogic extends BaseLogic{
|
|
/* 自动验证规则 */
|
|
protected $_validate = array(
|
|
array('content', 'require', '内容不能为空!', self::MUST_VALIDATE , 'regex', self::MODEL_BOTH),
|
|
);
|
|
|
|
/* 自动完成规则 */
|
|
protected $_auto = array();
|
|
|
|
}
|