Mark Story
104da15a73
Making built-in Canadian postal code validation accept postal codes with no spaces. Fixes #289
2010-02-06 14:20:56 -05:00
Mark Story
66a8910810
Fixing cakephp domain name.
2010-01-26 17:15:15 -05:00
Mark Story
527eec1a54
Fixing doc tags to make merge easier.
2010-01-26 16:51:53 -05:00
Mark Story
8f2a4a1e0e
Merge branch '1.2' of github.com:cakephp/cakephp1x into 1.2
2010-01-14 20:28:00 -05:00
Mark Story
5c47d8dd7a
Trimming trailing whitespace from files. Refs #201
2010-01-14 20:15:54 -05:00
Joël Perras
15b8a3ec71
Updating copyright date on all files.
2010-01-13 23:47:14 -05:00
Juan Basso
71df8dbbba
Replace function sizeof (alias) by count.
...
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-21 13:50:57 -05:00
mark_story
8b419d2dd8
Removing use of ife() from core classes.
2009-10-21 12:57:15 -04:00
jperras
14aaa1682f
Updating doc block for Valdation::url optional parameter. Fixes #6220 .
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8126 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-23 13:48:37 +00:00
mark_story
cc88680d17
Adding array cast to $check. Fixes issues when non arrays are validated with Validation::multiple. Tests added. Fixes #5986
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7974 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-13 18:41:04 +00:00
nate
1deae7a586
Updating Validation::url() with $strict parameter to require URL scheme, fixes #5536
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7958 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-25 22:11:06 +00:00
mariano.iglesias
acaaa7ee64
Resetting error on Validation (patch from francky06l), fixes #5797
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7890 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-25 13:05:57 +00:00
renan.saddam
6319f8ea69
Removed trailing whitespaces from core.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7847 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-08 02:54:07 +00:00
TommyO
e40ea525f0
Added tests for validation for slightly better coverage.
...
Minor refactoring of Validation class inspired by a number of recent bug reports. Mostly for consistency and clarity.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7845 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-08 00:55:36 +00:00
AD7six
b12a5739a2
updating documentation for url validation, making the regex easier to edit. Ref #5685
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7828 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-05 16:29:10 +00:00
mark_story
ea30a48c5a
Fixing validation of URLs with round brackets. Patch from 'dho' added.
...
Closes #5685
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7826 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-05 03:49:55 +00:00
AD7six
3f2fa6929b
changing tabs for spaces in comment block indentation
...
Removing address and replacing with cakefoundation url
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7805 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-30 17:30:26 +00:00
mark_story
1b456f2cf1
Applying patch from 'davidpersson' fixing code spacing. Closes #5643
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7772 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-23 00:10:44 +00:00
phpnut
47f78d13a0
Adding more optimizations for the static classes
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7736 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-12 03:52:24 +00:00
the_undefined
38bc438fc7
Applying patch by rnowotniak, fixes #5523
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7706 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-06 10:43:57 +00:00
mark_story
62168bfe0f
Updating doc blocks to include access and return PHPDOC tags.
...
Removing use of e() in Debugger.
Fixing code formatting in CookieComponent
Closes #5477
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7662 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-25 16:49:56 +00:00
phpnut
cb487bd6e6
More optimization refactoring.
...
Fix cache but causing object_map to be created and deleted on each request.
Replacing function and method calls with better performing code.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7596 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-12 05:11:34 +00:00
gwoo
c350448cd8
adding a notEmpty rule to validation and updating bake default for strings to use notEmpty
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7399 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-31 23:58:20 +00:00
mark_story
c1dce9e7ff
Implemented Validation::multiple() Tests added. Closes #5086 , #3329 , #4852
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7353 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-23 02:15:48 +00:00
the_undefined
d363dfccd1
Fixed documentation for date 'my' validation
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7343 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-17 15:59:18 +00:00
phpnut
d853520e46
Fixes #5025 , UTF8 signs are not treated correctly at form validation
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7320 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-05 13:25:22 +00:00
nate
df75a06756
Fixing coding standards violations in core, and adding misc tests
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7222 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-20 20:17:23 +00:00
nate
42da5aba81
Moving Cake folder to correct location
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7063 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 11:40:08 +00:00
DarkAngelBGE
e6e0d852a2
deleting cake folder from svn
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7061 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 10:59:16 +00:00
nate
082aedc0b3
Adding check for domain name length in Validation::url(), thanks AD7six
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7033 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 17:50:24 +00:00
nate
7402680cc1
Misc code formatting and whitespace fixes
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7020 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 05:11:41 +00:00
mark_story
f2231a6bcf
Added inList to Validation closes #4429
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6981 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 03:22:51 +00:00
the_undefined
c3d266e27d
Applied patch by 'GreyCells', closes #4629
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6956 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 07:10:06 +00:00
the_undefined
0662d595cb
Added postal code verification for belgium, fixes #4192
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6948 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 05:38:22 +00:00
DarkAngelBGE
032990a364
bringing the validator to 93% coverage,
...
adding default regexes for Validator::phone(), Validator::postal() and Validator::ssn() if no default regex is supplied, but also no country
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6927 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 15:47:35 +00:00
DarkAngelBGE
e7609469d4
refactoring Validation::ip()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6755 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-05 14:21:05 +00:00
phpnut
d0d001d6dd
"Added patches from #4413 , closes #4413 . Thanks maular."
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6638 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-09 01:34:25 +00:00
phpnut
e65f44bed2
"Fixes #4001 , 'money' validation uses invalid regular expression syntax"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6605 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-26 06:44:40 +00:00
phpnut
cb53dc61b0
"Closes #2897 , Built-in file validation.
...
Implemented Validation::extension(); and Vaidation::range();
Updated copyright notices in all files"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6296 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-01 22:18:17 +00:00
phpnut
3935746a29
"Refactored Model::invalidFields() to pass array(field => value) back to custom validation methods in a model
...
Closes #1863 postal code validation for Italy and Germany
Closes #2766 , Add field name to params array for custom validation rules
Closes #3735 , Custom validation functions
Commented out the failing model tests until the missing fixtures are added
"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6243 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-25 04:53:15 +00:00
phpnut
51baf42d62
"Changing Validation class to be a static class"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6203 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-22 21:03:30 +00:00
nate
e6af521843
Implementing Validation::equalTo() (Ticket #3594 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6187 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-21 23:39:52 +00:00
phpnut
8a2b51c3ec
"Removing all shortcut function usage from the core"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6128 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-08 06:08:03 +00:00
phpnut
bb9148a302
"Fixes #3606 , Validation::phone method regex allows any string containing phone number"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6085 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-26 17:52:51 +00:00
phpnut
28d6ef1688
Fixes #3466 , Validation::url() fails for some common urls. Anything without the protocol is not a valid url so part of this ticket is invalid
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5901 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-25 03:55:41 +00:00
mariano.iglesias
896f62544b
Changing @return int to @return integer and @param bool to @param boolean
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5860 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 16:54:36 +00:00
phpnut
160cd28440
Correcting @return int
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5858 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 16:11:12 +00:00
phpnut
da97a5c871
Correcting @return bool
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5857 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 16:09:35 +00:00
mariano.iglesias
897825d596
Adding documentation to classes belonging to Cake console.
...
Standarizing on datatypes used in phpdocblocs and removing unneeded @return types
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5851 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 05:52:20 +00:00
phpnut
d9f5bb7a35
Fixes #3288 , Erroneous URL validation
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5790 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-19 04:01:04 +00:00