<bdo id='mrAh1'></bdo><ul id='mrAh1'></ul>

  1. <small id='mrAh1'></small><noframes id='mrAh1'>

  2. <i id='mrAh1'><tr id='mrAh1'><dt id='mrAh1'><q id='mrAh1'><span id='mrAh1'><b id='mrAh1'><form id='mrAh1'><ins id='mrAh1'></ins><ul id='mrAh1'></ul><sub id='mrAh1'></sub></form><legend id='mrAh1'></legend><bdo id='mrAh1'><pre id='mrAh1'><center id='mrAh1'></center></pre></bdo></b><th id='mrAh1'></th></span></q></dt></tr></i><div id='mrAh1'><tfoot id='mrAh1'></tfoot><dl id='mrAh1'><fieldset id='mrAh1'></fieldset></dl></div>
  3. <tfoot id='mrAh1'></tfoot><legend id='mrAh1'><style id='mrAh1'><dir id='mrAh1'><q id='mrAh1'></q></dir></style></legend>

    1. Zend_Validate::is() 静态检查,获取验证消息解决方法

      时间:2023-05-30

        <small id='llZZr'></small><noframes id='llZZr'>

        <i id='llZZr'><tr id='llZZr'><dt id='llZZr'><q id='llZZr'><span id='llZZr'><b id='llZZr'><form id='llZZr'><ins id='llZZr'></ins><ul id='llZZr'></ul><sub id='llZZr'></sub></form><legend id='llZZr'></legend><bdo id='llZZr'><pre id='llZZr'><center id='llZZr'></center></pre></bdo></b><th id='llZZr'></th></span></q></dt></tr></i><div id='llZZr'><tfoot id='llZZr'></tfoot><dl id='llZZr'><fieldset id='llZZr'></fieldset></dl></div>

          <bdo id='llZZr'></bdo><ul id='llZZr'></ul>

          • <legend id='llZZr'><style id='llZZr'><dir id='llZZr'><q id='llZZr'></q></dir></style></legend>
                <tfoot id='llZZr'></tfoot>

                  <tbody id='llZZr'></tbody>
                本文介绍了Zend_Validate::is() 静态检查,获取验证消息解决方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                有谁知道在静态范围内使用 Zend_Validate 获取验证消息的方法吗?

                Does anyone know of a way to get validation messages from using Zend_Validate in static scope?

                Zend_Validate::is($value, $validator[0], $validator[2])
                

                文档明确表示不能选择获取消息:http://framework.zend.com/manual/en/zend.validate.introduction.html#zend.validate.introduction.static

                The docs say explicitly that getting the messages isn't an option: http://framework.zend.com/manual/en/zend.validate.introduction.html#zend.validate.introduction.static

                有点令人沮丧,但我想知道是否有人知道 Zend 中用于从验证字符串获取消息的任何其他方法?

                Slightly discouraging, but I was wondering if someone knew of any other methods that are inside Zend for getting messages from a validation string?

                如果有人感兴趣,我正在关注一篇关于在模型级别进行验证的精彩文章:http://www.cambraca.com/2011/03/validation-in-zend-framework-model.html

                I'm following a great article about validating at the model level if anyone is interested: http://www.cambraca.com/2011/03/validation-in-zend-framework-model.html

                感谢您的帮助,-赛斯

                推荐答案

                恐怕做不到.看,消息附加到每个 Validator object - 您不能将它们附加到 class(除非您使用静态消息属性和静态 setter/getter 并将使用它).

                I'm afraid it just cannot be done. See, the messages are attached to each Validator object - you cannot attach them to class (unless you make your own implementation of the validation logic with static message properties and static setter/getter for it and will use it instead).

                这篇关于Zend_Validate::is() 静态检查,获取验证消息解决方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:数组合并具有相同索引的php 下一篇:Zend_Tool:致命错误:无法重新声明类 Zend_Loader

                相关文章

                1. <i id='kHMa6'><tr id='kHMa6'><dt id='kHMa6'><q id='kHMa6'><span id='kHMa6'><b id='kHMa6'><form id='kHMa6'><ins id='kHMa6'></ins><ul id='kHMa6'></ul><sub id='kHMa6'></sub></form><legend id='kHMa6'></legend><bdo id='kHMa6'><pre id='kHMa6'><center id='kHMa6'></center></pre></bdo></b><th id='kHMa6'></th></span></q></dt></tr></i><div id='kHMa6'><tfoot id='kHMa6'></tfoot><dl id='kHMa6'><fieldset id='kHMa6'></fieldset></dl></div>
                  <tfoot id='kHMa6'></tfoot>

                  <small id='kHMa6'></small><noframes id='kHMa6'>

                      <bdo id='kHMa6'></bdo><ul id='kHMa6'></ul>

                    <legend id='kHMa6'><style id='kHMa6'><dir id='kHMa6'><q id='kHMa6'></q></dir></style></legend>