概述 快速入门 教程 手册 最佳实践 组件 参考 贡献

发布于 2015-08-27 16:37:46 | 206 次阅读 | 评论: 0 | 来源: 网络整理

 

The Validator is designed to validate objects against constraints. In real life, a constraint could be: “The cake must not be burned”. In Symfony, constraints are similar: They are assertions that a condition is true.

Supported Constraints

The following constraints are natively available in Symfony:

Basic Constraints

These are the basic constraints: use them to assert very basic things about the value of properties or the return value of methods on your object.

String Constraints

Number Constraints

Date Constraints

File Constraints

Financial and other Number Constraints

最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务