[fw-general] Zend_Validate::is Int more than 10 digits return false :(

2010-02-26 Thread whisher
Hi, Sorry to disturb. I think there something wrong here var_dump(Zend_Validate::is(1234567890, 'Int'));//true var_dump(Zend_Validate::is(12345678901, 'Int'));//false Bye. -- View this message in context: http://n4.nabble.com/Zend-Validate-is-Int-more-than-10-digits-return-false-tp1570772p15707

Re: [fw-general] Zend_Validate::is() runs constructor with wrong parameters

2009-09-08 Thread Thomas Weidner
an example how you called Zend_Validate::is() we can only guess. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: "Dennis Becker" To: "Zend Framework General" Sent: Tuesday, September 08

[fw-general] Zend_Validate::is() runs constructor with wrong parameters

2009-09-08 Thread Dennis Becker
II have recently switched ZF Version from 1.7.4 to ZF 1.9.2 and I ran into a problem with Zend_Validate::is() and Zend_Validate_Int. A variable should be checked if it is an integer and between 1 and 31 - nothing special so far. But Zend_Validate calls Zend_Validate_Int with "1" as parameter for th

[fw-general] Zend_Validate translations

2009-02-07 Thread Christian Münch
Hi, i have an question about Zend_Validate. The validate classes are shipped with english message as default. It would be nice to offer some language files which can be used with Zend_Translate in some other languages. Is there any official/unofficial language file for german? Thanks Christian

Re: [fw-general] Zend_Validate Zend_Filter and Ini's

2009-02-07 Thread A.J. Brown
Hi Martijn, It would be helpful if you could define "barfing" for us. Is an exception being thrown? Is a validator not being added? Are none of the validators being added? On Sat, Feb 7, 2009 at 3:49 AM, Martijn Korse wrote: > > > Bob O wrote: > > > > I am stumped, if anyone can point me in a

Re: [fw-general] Zend_Validate Zend_Filter and Ini's

2009-02-07 Thread Martijn Korse
Bob O wrote: > > I am stumped, if anyone can point me in a good direction where i can find > solid docs on using Zend validation and filters from an ini file that > would be super..Im not a Zend Guru, so sometimes deciphering what is being > presented is frustrating. > Hi Bob O I doubt there

[fw-general] Zend_Validate Zend_Filter and Ini's

2009-02-06 Thread Bob O
I am stumped, if anyone can point me in a good direction where i can find solid docs on using Zend validation and filters from an ini file that would be super..Im not a Zend Guru, so sometimes deciphering what is being presented is frustrating. This is my code that is barfing on me. its mainly bu

Re: [fw-general] Zend_Validate

2008-11-13 Thread nwhiting
Goran Juric wrote: > > > nwhiting wrote: >> >> shouldn't this return any error messages set within those validators? >> As even Zend_Validate_EmailAddress does not return any error, and my >> custom validators are setup just as defined in the documentation >> > > Yes, they should display er

Re: [fw-general] Zend_Validate

2008-11-13 Thread Goran Juric
nwhiting wrote: > > shouldn't this return any error messages set within those validators? > As even Zend_Validate_EmailAddress does not return any error, and my > custom validators are setup just as defined in the documentation > Yes, they should display error messages. Have you tried checkin

Re: [fw-general] Zend_Validate

2008-11-13 Thread nwhiting
nwhiting wrote: > > I have a question about this. > > Does Zend_Validate work on a per element basis and is not parsed when you > call > $this->form->isValid($_POST); > ?? > > When I add custom validations are they going to be parsed and produce > error messages to the errorMessage strin

Re: [fw-general] Zend_Validate or Zend_Validate_EmailAddress BUG

2008-11-13 Thread Thomas Weidner
Sent: Thursday, November 13, 2008 9:24 AM Subject: [fw-general] Zend_Validate or Zend_Validate_EmailAddress BUG Hello, I try to validate email address with wrong hostname([EMAIL PROTECTED]) and the validator returns following errors: array(3) { ["emailAddressInvalidHostname"] =>

[fw-general] Zend_Validate or Zend_Validate_EmailAddress BUG

2008-11-13 Thread Vladas Diržys
Hello, I try to validate email address with wrong hostname([EMAIL PROTECTED]) and the validator returns following errors: array(3) { ["emailAddressInvalidHostname"] => string(63) "'www.ww' is not a valid hostname for email address '[EMAIL PROTECTED]'" [0] => string(77) "'www.ww' appears to be

[fw-general] Zend_Validate

2008-11-11 Thread nwhiting
I have a question about this. Does Zend_Validate work on a per element basis and is not parsed when you call $this->form->isValid($_POST); ?? When I add custom validations are they going to be parsed and produce error messages to the errorMessage string? Such as all of my form elements ar

Re: [fw-general] Zend_Validate datetime format

2008-10-14 Thread Goran Juric
chinaski wrote: > > Hello. > > How can I validate a date-time string as '-mm-dd H:i:s' format? > > Thanks in advance. > > chinaski > Zend_Validate_Date has a setFormat() method, have you tried it? Regards, Goran Juric http://gogs.info/ -- View this message in context: http://www.n

[fw-general] Zend_Validate datetime format

2008-10-14 Thread chinaski
Hello. How can I validate a date-time string as '-mm-dd H:i:s' format? Thanks in advance. chinaski -- View this message in context: http://www.nabble.com/Zend_Validate-datetime-format-tp19983722p19983722.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] Zend_Validate / Zend_Form Zend_Translate gettext / custom error messages

2008-09-21 Thread Boris Tomic
Hi I have seen some similar questions and answers how to set Zend_Form or Zend_Validate to work with Zend_Translate gettext. Thing I did not find is how to use gettext tools to extract strings which should be translated? Can somebody please explain in small example gettext tool usage in this situ

Re: [fw-general] Zend_Validate regex way to soluce ? Bug inside ....

2008-08-15 Thread Bruno Friedmann
t;> $regex->addValidator(new Zend_Validate_Regex("^[\p{L}\.\-_ 0-9]+$")); >> $form->addElement($regex); >> $form->setView(new Zend_View()); >> >> echo $form; >> >> try { >> if ($_POST) { >> if (!$form->isValid($_POST)) {

Re: [fw-general] Zend_Validate regex way to soluce ?

2008-08-15 Thread Matthias Coy
echo 'Caught exception: ', $e->getMessage(), "\n"; } ?> worked for me. Regards Matthias ---- Original-Nachricht > Datum: Fri, 15 Aug 2008 20:59:53 +0200 > Von: "Matthias Coy" <[EMAIL PROTECTED]> > An: "Matthias Coy" &l

Re: [fw-general] Zend_Validate regex way to soluce ?

2008-08-15 Thread Matthias Coy
chricht > Datum: Fri, 15 Aug 2008 20:47:11 +0200 > Von: "Matthias Coy" <[EMAIL PROTECTED]> > An: Bruno Friedmann <[EMAIL PROTECTED]> > CC: fw-general@lists.zend.com > Betreff: Re: [fw-general] Zend_Validate regex way to soluce ? > ok, > > I don&#

Re: [fw-general] Zend_Validate regex way to soluce ?

2008-08-15 Thread Matthias Coy
but I have also some work to do :) Regards Matthias Original-Nachricht > Datum: Fri, 15 Aug 2008 20:11:13 +0200 > Von: Bruno Friedmann <[EMAIL PROTECTED]> > An: > CC: fw-general@lists.zend.com > Betreff: Re: [fw-general] Zend_Validate regex way to soluce ?

Re: [fw-general] Zend_Validate regex way to soluce ?

2008-08-15 Thread Bruno Friedmann
rted"; > } > echo ""; > echo ""; > } > ?> > > > > Original-Nachricht >> Datum: Fri, 15 Aug 2008 17:22:52 +0200 >> Von: Bruno Friedmann <[EMAIL PROTECTED]> >> An: Matthias Coy <[EMAIL PROT

Re: [fw-general] Zend_Validate regex way to soluce ?

2008-08-15 Thread Matthias Coy
Original-Nachricht > Datum: Fri, 15 Aug 2008 17:22:52 +0200 > Von: Bruno Friedmann <[EMAIL PROTECTED]> > An: Matthias Coy <[EMAIL PROTECTED]> > CC: fw-general > Betreff: Re: [fw-general] Zend_Validate regex way to soluce ? > Matthias Coy wrote: >

Re: [fw-general] Zend_Validate regex way to soluce ?

2008-08-15 Thread Bruno Friedmann
-4 extended characters allowed ? > > Regards > Matthias Coy > > Original-Nachricht >> Datum: Fri, 15 Aug 2008 16:42:35 +0200 >> Von: Bruno Friedmann <[EMAIL PROTECTED]> >> An: fw-general >> Betreff: [fw-general] Zend_Validate r

Re: [fw-general] Zend_Validate regex way to soluce ?

2008-08-15 Thread Matthias Coy
ards Matthias Coy Original-Nachricht > Datum: Fri, 15 Aug 2008 16:42:35 +0200 > Von: Bruno Friedmann <[EMAIL PROTECTED]> > An: fw-general > Betreff: [fw-general] Zend_Validate regex way to soluce ? > Hi All, > I need to allow many special thing to

[fw-general] Zend_Validate regex way to soluce ?

2008-08-15 Thread Bruno Friedmann
Hi All, I need to allow many special thing to be allowed in a username login field. (Historical database, so it would nearly impossible to change all this username) I need all Alpha numeric word present in french,english,german language so there a lot's of à é ö ü etc ... Plus username could cont

Re: [fw-general] Zend_Validate - translate message templates

2007-12-05 Thread Sascha Goebel
Hi, yes it's great to hear this. I'll try to keep track of the developments regarding form and error handling and dig deeper into this topic during the holidays :-) Keep up the good work Sascha Bryce Lohr schrieb: > Thanks Darby! That's encouraging news. I'll keep my eyes open. :) > > Regards

Re: [fw-general] Zend_Validate - translate message templates

2007-12-05 Thread Bryce Lohr
Thanks Darby! That's encouraging news. I'll keep my eyes open. :) Regards, Bryce Lohr Darby Felton wrote: Hi Bryce and Sascha, Matthew and I have discussed some changes to the validation classes, and when I take a look at them, I'll also keep in mind how better we can support your use cases.

Re: [fw-general] Zend_Validate - translate message templates

2007-12-05 Thread Darby Felton
Hi Bryce and Sascha, Matthew and I have discussed some changes to the validation classes, and when I take a look at them, I'll also keep in mind how better we can support your use cases. I think we'll need this functionality, too, for Zend_Form, and I'm confident we'll arrive upon a reasonable sol

Re: [fw-general] Zend_Validate - translate message templates

2007-12-05 Thread Bryce Lohr
Sascha Goebel wrote: Hi Bryce, when reading the long Zend_Form thread, I think Mathew already talked about modifying the Zend_Validate_* classes for easier access to the message templates. Maybe we should check the outcome of this project before proposing the complete rework of the clas

Re: [fw-general] Zend_Validate - translate message templates

2007-12-05 Thread Sascha Goebel
Hi Bryce, when reading the long Zend_Form thread, I think Mathew already talked about modifying the Zend_Validate_* classes for easier access to the message templates. Maybe we should check the outcome of this project before proposing the complete rework of the classes? What do you think

Re: [fw-general] Zend_Validate - translate message templates

2007-12-04 Thread Bryce Lohr
Hi Sascha, There are several things I just don't like about how the Zend_Validate_* classes deal with error messages. If someone could shed some light on why things are like this, I'd be grateful: * getErrors() vs. getMessages(): Why not just have one method, getErrors(), that returns error

Re: [fw-general] Zend_Validate - translate message templates

2007-11-11 Thread Sascha Goebel
Hi Bryce, this looks like a promising approach and feels more natural like the array config to me. I'll definitely have a look at this soon. Sadly it doesn't solve my problem with the message templates. Of course I could set the messages für each configuration separately, but the big picture I ha

Re: [fw-general] Zend_Validate - translate message templates

2007-11-08 Thread Bryce Lohr
This may or may not be helpful, but I have a class in the Laboratory (Zend_Validate_Builder_ErrorManager) that is designed to solve just such as use case: http://framework.zend.com/svn/laboratory/library/Zend/Validate/Builder/ErrorManager.php The only documentation I have, as of yet, is in this

Re: [fw-general] Zend_Validate problem

2007-11-08 Thread Sascha Goebel
Hi Dmitry, per default the fields are not required. You will have to set the option $options = array(Zend_Filter_Input::PRESENCE => Zend_Filter_Input::PRESENCE_REQUIRED); $input->setOptions($options); and your url field will show up as missing. If you want to have the field validated, you have

[fw-general] Zend_Validate problem

2007-11-08 Thread Dmitry Shirokov
Hey guys. I tested followig code and little confusing: Zend_Loader::loadClass('Zend_Filter_Input'); $filters = array( '*' => array('StringTrim', 'StripTags') ); $validators = array( 'url' => array( 'Hostname',

[fw-general] Zend_Validate - translate message templates

2007-11-08 Thread Sascha Göbel
Hi fellow hackers! I'm writing an application using the Zend_Filter_Input class for filtering and validation. My app is multilingual and I have an instance of Zend_Translate up and running. The only problem is, that I'd like to translate the error messages, or better said the message templates,

Re: [fw-general] Zend_Validate static $_messageTemplates

2007-08-15 Thread Jack Sleight
Oh yeah, good point. Hmmm, tricky. It would be very beneficial to find another way to change the messages class wide though, especially for people who need non English messages. I guess the only way to do it is to extend the validator and then override the property? Bill Karwin wrote: One of

RE: [fw-general] Zend_Validate static $_messageTemplates

2007-08-15 Thread Bill Karwin
e is identical to the code in the parent class. This makes static properties painful to work with, so I avoid them wherever possible. Regards, Bill Karwin > -Original Message- > From: Jack Sleight [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 15, 2007 1:29 AM > To:

Re: [fw-general] Zend_Validate static $_messageTemplates

2007-08-15 Thread Jack Sleight
Will do. Darby Felton wrote: Hi Jack, It seems like a good new feature request to be able to modify class configuration (e.g., through use of static variables) in addition to the existing ability to configure instances separately. Would you mind filing a JIRA issue for this? Best regards, Dar

Re: [fw-general] Zend_Validate static $_messageTemplates

2007-08-15 Thread Darby Felton
Hi Jack, It seems like a good new feature request to be able to modify class configuration (e.g., through use of static variables) in addition to the existing ability to configure instances separately. Would you mind filing a JIRA issue for this? Best regards, Darby Jack Sleight wrote: > Off th

[fw-general] Zend_Validate static $_messageTemplates

2007-08-15 Thread Jack Sleight
Off the back of the post by Ivo Trompert regarding changing the error messages returned by Zend_Filter_Input, would it be beneficial to make the $_messageTemplates property of each validator static? So they can be customised easily, validator wide, rather than per instance? -- Jack

Re: [fw-general] Zend_Validate, Custom Messages in Chains

2007-07-02 Thread Darby Felton
Hello, One solution would be to set the messages on the individual validation objects prior to adding them to the chain. Also, if you might make use of Zend_Filter_Input, you can use the MESSAGES metacommand in order to control validation failure messages. Hope this helps! Best regards, Darby

[fw-general] Zend_Validate, Custom Messages in Chains

2007-07-02 Thread phareous
How can I set custom error messages when doing a validator chain? I was trying something like this, but I just get an error that setMessages is an undefined method in Zend_Validate $validatorChain = new Zend_Validate(); $validatorChain ->addValidator(new Zend_Validate_NotEmpty(),t

Re: [fw-general] Zend_Validate

2007-05-29 Thread Thomas Weidner
Original Message - From: "Pádraic Brady" <[EMAIL PROTECTED]> To: "Andries Seutens" <[EMAIL PROTECTED]> Cc: "Zend Framework General" Sent: Tuesday, May 29, 2007 6:49 PM Subject: Re: [fw-general] Zend_Validate From what I remember the CLDR exemplar

Re: [fw-general] Zend_Validate

2007-05-29 Thread Pádraic Brady
; Zend Framework General Sent: Tuesday, May 29, 2007 9:58:56 AM Subject: Re: [fw-general] Zend_Validate Hello Alexander, This issue is slightly more complicated, and so far, we have not come to a consensus. You might want to check out the following Jira issue as well: http://framework.zend.com/

Re: [fw-general] Zend_Validate

2007-05-29 Thread Pádraic Brady
encoding. Long post, eh? :) Hope it helps some. Pádraic Brady http://blog.astrumfutura.com http://www.patternsforphp.com - Original Message ---- From: Alexander Jaeger <[EMAIL PROTECTED]> To: Darby Felton <[EMAIL PROTECTED]> Cc: Guillaume Millet <[EMAIL PROTECTED]>; Zend Frame

Re: [fw-general] Zend_Validate

2007-05-29 Thread Andries Seutens
Hello Alexander, This issue is slightly more complicated, and so far, we have not come to a consensus. You might want to check out the following Jira issue as well: http://framework.zend.com/issues/browse/ZF-1248 I have a proof of concept available here: http://andries.systray.be/Alpha.phps

Re: [fw-general] Zend_Validate

2007-05-29 Thread Alexander Jaeger
Hello List, i waited eagerly to see 1.0 RC1, and here it is ;) I am still looking for a solution to my Umlauts problem, i tried using the mbstring settings within php, [mbstring] mbstring.language = neutral mbstring.http_input = iso-88589 mbstring.http_output = iso-8859-1 mbstring.internal_enc

Re: [fw-general] Zend_Validate

2007-03-28 Thread Darby Felton
Hi Alex, The issue you experience is related to ZF-269: http://framework.zend.com/issues/browse/ZF-269 Thanks for the report! Best regards, Darby Alexander Jäger wrote: > Sorry to bother, > > I try to validate a variable cotaining my lastname "jäger". > > $alpha = new Zend_Validate(); > $alp

Re: [fw-general] Zend_Validate

2007-03-28 Thread Alexander Jäger
Sorry to bother, I try to validate a variable cotaining my lastname "jäger". $alpha = new Zend_Validate(); $alpha->addValidator(new Zend_Validate_StringLength(1, 64)); $alpha->addValidator(new Zend_Validate_Alpha()); $var1 = "jäger" if ($alpha->isValid($var1) { echo $var1 . 'is Valid'; } els

Re: [fw-general] Zend_Validate

2007-03-28 Thread Alexander Jäger
Hello Guillaume, thats a simple solution somtimes i don´t see the forest, because of all the trees. thanks. Alex Guillaume Millet schrieb: Hi Alex, If you're trying to validate data like your name using Zend_Validate_Alpha, you may want to try and set PHP's locale to German using setl

Re: [fw-general] Zend_Validate

2007-03-27 Thread Guillaume Millet
Hi Alex, If you're trying to validate data like your name using Zend_Validate_Alpha, you may want to try and set PHP's locale to German using setlocale() if it's not already done. Regards, Guillaume Lx a écrit : Simon R Jones schrieb: Hi Alexander, Some domain names have been set up to

Re: [fw-general] Zend_Validate

2007-03-27 Thread Lx
Simon R Jones schrieb: Hi Alexander, Some domain names have been set up to accept international characters, DE domains being one of them. More info on how to use it is on http://framework.zend.com/manual/en/zend.validate.validating_hostnames.html However, there have been reports of it not wor

RE: [fw-general] Zend_Validate

2007-03-27 Thread Simon R Jones
Hi Alexander, Some domain names have been set up to accept international characters, DE domains being one of them. More info on how to use it is on http://framework.zend.com/manual/en/zend.validate.validating_hostnames.html However, there have been reports of it not working reliably for some pe

[fw-general] Zend_Validate

2007-03-27 Thread Alexander Jäger
Hello together, i try to get Zend_Validate to work with german umlauts, but they are not recognized as normal Alpha chars? Also I couldn´t find any solution using regex to validate. does any one know of a solution? Greatly appreciated, Alexander Jäger

Re: [fw-general] Zend_Validate usage example and question

2007-02-03 Thread Will Prater
Here is a solution: just instantiate a new Validate Type for each field name. // Validation $validations = array(); $validations['email'] = new Zend_Validate_EmailAddress(); $validations['firstName'] = new Zend_Validat

[fw-general] Zend_Validate usage example and question

2007-02-03 Thread Will Prater
List, I'm working with Zend_Validate and my first usage example did not work as expected. Perhaps this is not user expected behavior. The issue is that each Zend_Validate_Interface::isValid() resets the _messages property each time it's called. Leaving this example somewhat useless.