[dev] String.php patch

Marko marko at oblo.com
Thu Jan 9 18:41:37 PST 2003


jan,

this is what i was talking about putting in the String.php, and to give you an
example of how i was using it, i added a few extra lines of code in Form.php to
do extra isValid checks on form values submitted, for example i wanted one
password field to be always mixed case and more than 4 characters, so:

$this->addVariable('Your password', 'userpass',
_getPasswordType(array('mixedcase' => true, 'minchar' => '4')), true);

the password type then just checks for which elements are returned in the
$check_failed array and hence report isValid accordingly.

what do you think?

marko-------------- next part --------------
A non-text attachment was scrubbed...
Name: string.php.patch
Type: text/diff
Size: 2910 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20030109/47069451/string.php.bin


More information about the dev mailing list