Commit Graph

29 Commits

Author SHA1 Message Date
thinkphp
c32dc86763 规则说明改进 2016-03-21 08:12:17 +08:00
thinkphp
60578e5b8d 优化unique方法的查询 2016-03-20 23:20:15 +08:00
thinkphp
7d0e423ffd 修正unique验证规则 2016-03-20 23:18:32 +08:00
thinkphp
4f595f4e65 完善提示信息 2016-03-20 22:59:27 +08:00
thinkphp
dbbb91be7d 简化验证规则的默认提示信息定义 2016-03-20 22:47:48 +08:00
thinkphp
4873fe81e0 validate类增加setTypeMsg方法用于设置验证规则的默认提示信息 2016-03-20 22:41:36 +08:00
thinkphp
4a618c6682 添加默认的规则提示信息 2016-03-20 22:33:25 +08:00
thinkphp
29f3af7e35 改进validate类的unique规则 2016-03-20 20:51:57 +08:00
thinkphp
183734f6c5 验证方法和规则统一使用 驼峰法 2016-03-20 19:57:51 +08:00
pwf0112
74ec6d3ae7 修正 2016-03-20 11:57:24 +08:00
thinkphp
bc5e9897c5 validate类的extend方法支持批量设置 修正单元测试 2016-03-20 11:27:11 +08:00
thinkphp
fa9eae4a26 改进model的validate方法 2016-03-20 11:04:41 +08:00
thinkphp
c323f5e255 验证类型规则支持使用别名 例如
'age'=>'>:10' 和 'age'=>'gt:10' 等效
2016-03-20 09:43:58 +08:00
thinkphp
2371b7a55e validate类完善 controller和model类的validate方法支持传入提示信息 model类的validate方法支持指定验证器名 2016-03-20 08:19:42 +08:00
thinkphp
064a22a99f 修正Validate类message方法 2016-03-19 22:05:20 +08:00
thinkphp
9512bfc29a 改写Validate类和单元测试 2016-03-19 21:59:44 +08:00
thinkphp
75c6fb7670 修正traits\model\Auto 2016-03-10 21:42:59 +08:00
thinkphp
06816d5f52 自动填充移出Validate类 2016-03-07 22:00:21 +08:00
thinkphp
7c1d29595b Validate类支持读取模型类的属性定义完成验证 2016-03-07 18:02:02 +08:00
thinkphp
440658b2e4 Validate类serialize方法支持二级 2016-03-07 08:00:19 +08:00
thinkphp
0324ec2d46 修正 2016-03-06 23:44:45 +08:00
thinkphp
76d2b9fdd6 简化validate类 2016-03-06 23:39:35 +08:00
thinkphp
5ec0e0fa40 改进Validate类 2016-03-06 23:18:56 +08:00
thinkphp
0555da9887 改进错误信息提示 2016-03-06 22:53:44 +08:00
thinkphp
0aec30d9ef 修正 2016-03-06 22:46:15 +08:00
thinkphp
ae0df81c42 改进 2016-03-06 22:41:47 +08:00
thinkphp
d5870ddb59 改进Validate类 2016-03-06 21:01:31 +08:00
thinkphp
000140842f Validate类增加rule方法用于设置全局正则验证规则 2016-03-06 19:58:47 +08:00
thinkphp
e83e346e0c 增加Validate类和测试 2016-03-06 19:39:55 +08:00