Issues

ZF-4371: Accessing all error messages

Issue Type: Improvement Created: 2008-09-24T07:04:42.000+0000 Last Updated: 2009-03-13T13:43:16.000+0000 Status: Resolved Fix version(s): Reporter: Kirsten Grimm (kgm) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate

Related issues: - ZF-2941

Attachments:

Description

Hi,

I added a getter method for retrieving all possible errors of a validator. I added this function to Validate/Abstract.php:

public function getPossibleMessages() { return $this->_messageTemplates; }

(Note: I needed this, because I wanted to use the same messages for a client-side validation which is executed before an ajax validation. So I render all messages in invisible containers and make them visible via JS)

Maybe there are other cases, where it also makes sense to access all possible errors, not only those which actually occured, from the outside? Or is there a reason behind it, that the messages aren't accessible?

Kirsten

Comments

Posted by Thomas Weidner (thomas) on 2009-03-13T13:43:16.000+0000

Feature added with r14317. See ZF-2941

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts