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
phpnut
0f1de003c6
Fixes #3215 , UserDefined Validation broken.
...
Added test for Validation::userDefined()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5679 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-21 00:42:34 +00:00
dho
7c5b93e34e
Validate "0" as alphanumeric value (ticket #2972 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5461 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-25 14:22:14 +00:00
phpnut
dac1bd0913
Correcting code structure to standards
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5315 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 07:51:52 +00:00
phpnut
23dfd90b29
Correcting code structure to standards
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5313 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 06:15:35 +00:00
mariano.iglesias
c9cd07139c
Adding documentation for Socket, Validation and Xml
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5201 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-26 19:33:55 +00:00
phpnut
156013f99e
Added fix for #2545 , fixes VALID_NUMBER does not allow negative values
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5047 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-12 08:50:42 +00:00
phpnut
719d704360
Reformatting code comments
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4666 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-23 18:07:35 +00:00
phpnut
2d0eaf517b
Adding test for Validation::alphaNumeric() to check empty $check.
...
Corrected Validation::alphaNumeric() to return false if $this->check; is empty
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4665 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-23 18:01:36 +00:00
phpnut
b82cf78964
Corrected doc comment in Validation::blank()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4543 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-20 17:27:14 +00:00
phpnut
a8a91e35be
Correcting all headers in the files
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4407 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-02 10:39:45 +00:00
phpnut
7e68d31e60
Adding fix for #2023
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4381 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-01 04:43:22 +00:00
nate
9737072e27
Fixing array key name in FormHelper::input()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4301 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-17 20:07:35 +00:00
dho
98f32860a9
Implementing Validation::ip()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4265 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-06 16:37:03 +00:00
dho
50149aeeed
Implementing minLength and maxLength
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4264 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-06 10:32:12 +00:00
phpnut
d773f0f8d3
Adding changes that where made to validation class that I forgot to commit
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4198 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-25 10:22:48 +00:00
nate
0cea0a6ff5
Integrating new Validation class with Model
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4193 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-25 06:53:19 +00:00
phpnut
8048251fd0
Added implementation of Validation::decimal()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3869 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-15 06:14:12 +00:00
phpnut
ac30edb9f0
Implementing custom regular expression in Validation::date()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3867 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-15 03:51:35 +00:00
phpnut
ded7398254
Adding doc comment for Validation::date()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3865 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-15 03:37:47 +00:00
phpnut
6f6b068227
Finishing Validation::date()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3864 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-15 03:08:41 +00:00
phpnut
f95285d75f
Starting to change all core code that uses $this->params
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3859 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-12 00:12:34 +00:00
phpnut
3ca4762d32
Adding Validation::date() implementation for:
...
mm/dd/yyyy mm/dd/yy m/d/yy m/d/yyyy
yyyy/mm/dd yy/mm/dd y/m/d/ /yyyy/m/d/
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3853 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-09 16:26:54 +00:00
phpnut
678e1be889
Adding Validation::date() implementation for dd/mm/yyyy dd/mm/yy d/m/yy d/m/yyyy
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3851 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-09 14:19:32 +00:00
phpnut
fa3e71d169
Additional changes to Validation::comparison()
...
Refactored Validation::custom()to set an error.
Added more doc comments.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3849 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-08 22:48:15 +00:00
phpnut
2a5f53ddb9
Changes made to Validation::comparison().
...
Added Validation::__reset().
Removed redundant code.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3847 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-08 21:15:34 +00:00
phpnut
a046a338bb
Changed Validation::cc() so custom regex match will call Validation::_luhn()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3845 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-08 12:50:39 +00:00
phpnut
57ef07a04d
Added additional credit card validation regex in Validation:cc().
...
Added Validation::_luhn() to check the Luhn algorithm or credit cards.
[http://en.wikipedia.org/wiki/Luhn_algorithm Luhn algorithm]
Added new doc comments for both methods
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3843 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-08 10:55:07 +00:00
phpnut
803bf4d0e4
Correcting Validation::blank() implementation
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3837 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-08 01:56:07 +00:00
phpnut
d2ffbe2016
Adding changes to Validation::alphaNumeric().
...
Added doc comment to Validation::alphaNumeric() and Validation::between()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3835 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-08 01:09:56 +00:00
phpnut
20da5e67a7
Formatting Validation class
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3830 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-07 21:05:48 +00:00
phpnut
0801dce999
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3092 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-14 19:06:14 +00:00