Commit graph

106 commits

Author SHA1 Message Date
Mark Story
b97ac84a34 Fixing method_exists use in Validation for php4 compatibility. 2010-01-14 23:41:35 -05:00
Mark Story
d8e7aa929c Merge branch '1.3-misc' into 1.3 2010-01-12 17:18:14 -05:00
tPl0ch
5ae0164574 Added Validation::uuid(). Updated test cases.
Signed-off-by: Mark Story <mark@mark-story.com>
2010-01-06 21:29:55 -05:00
predominant
e2a2770d9f Fixing validation errors for wrong case checking on Validation::ip.
Adding IPv6 validation for Validation::url().
Added tests for ports in urls.
Fixed port length allowance on Validation.
2010-01-07 11:02:05 +11:00
predominant
485570de24 Remote getInstance() from validation protected methods. 2010-01-06 09:34:07 +11:00
predominant
1302fba632 Fix validation of IPv6 on IPv4 checks.
Separate IPv4 and IPv6 validation to allow strict checking.
2010-01-06 00:53:48 +11:00
ADmad
9d5015882f Updating deep email validation to check and use 'getmxrr' or 'checkdnsrr' if either function exists 2010-01-05 03:04:46 +05:30
Mark Story
93ced3be46 Casting return of Validation::ip to always be a boolean when filter_var is used. It used to return the input string which could cause issue with identity checks. 2009-12-29 11:04:58 -05:00
Joël Perras
8eb9f9e8fd Implenting IPv6 validation using filter_var(), with a regex-based fallback if the aforementioned function does not exist (PHP < 5.2). Fixes #38. 2009-12-22 23:52:06 -05:00
predominant
13ffd76178 Removing "Long description for file" from /cake/libs tree. 2009-12-08 20:19:02 +11:00
mark_story
0806545f35 Adding passthrough to localized Validation class for Validation::ssn. Tests added. Fixes #378 2009-12-02 20:57:14 -05:00
mark_story
4d37e75f18 Merge branch '1.2' into 1.3-merger
Conflicts:
	cake/console/libs/tasks/controller.php
	cake/console/libs/tasks/extract.php
	cake/console/libs/tasks/model.php
	cake/libs/configure.php
	cake/libs/controller/components/cookie.php
	cake/libs/debugger.php
	cake/libs/flay.php
	cake/libs/http_socket.php
	cake/libs/inflector.php
	cake/libs/model/cake_schema.php
	cake/libs/model/connection_manager.php
	cake/libs/model/datasources/dbo/dbo_mysql.php
	cake/libs/model/datasources/dbo_source.php
	cake/libs/router.php
	cake/libs/view/helper.php
	cake/libs/view/helpers/form.php
	cake/libs/view/helpers/html.php
	cake/libs/view/helpers/js.php
2009-11-22 20:38:50 -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
47e6f332d7 Reformatting doc blocks. 2009-11-10 23:35:45 -05:00
mark_story
63ee8f0fcd Starting pass through validation handling.
Implemented phone, and postal pass throughs.
Adding tests.
2009-11-10 21:20:39 -05:00
predominant
384bb7a0e0 Update license lines throughout. 2009-11-06 17:51:51 +11:00
predominant
d7b604c8ed Fixing links throughout 2009-11-06 17:46:59 +11:00
predominant
8ff6505fe8 Removing excess whitespace 2009-11-06 17:08:23 +11:00
predominant
6782cb019c Update CakePHP Project link. 2009-11-06 17:00:11 +11:00
predominant
8f75ff58c7 Removing @filesource 2009-11-06 15:24:02 +11:00
mark_story
403bd15cca Removing Validation::file() It was never implemented, and file validation can be a lengthy and complicated process. This is better implemented at the application level. 2009-10-31 14:17:24 -04:00
mark_story
8b419d2dd8 Removing use of ife() from core classes. 2009-10-21 12:57:15 -04:00
mark_story
55ef5cedfb Updating fileheaders. 2009-10-07 23:43:02 -04:00
mark_story
2c144a9d0d Adding mb_ functions to Validation methods. 2009-10-07 23:43:02 -04:00
jperras
84b5458a36 Reverting inheritance modification to Validation. 2009-10-07 01:08:19 -04:00
jperras
9409f2651e Removing deprecated validation constants of VALID_NOT_EMPTY, VALID_NUMBER, VALID_EMAIL and VALID_YEAR. 2009-09-30 00:05:17 -04:00
jperras
a06147272d Removing inheritance of Object in Set, String and in Validation. 2009-09-30 00:04:58 -04:00
jperras
ca632461f1 Adding tilde (~) to accepted characters for URL validation. Fixes #52, and legacy trac enhancement 6213. 2009-09-19 12:14:47 -04:00
mark_story
81865bc960 Removing use of ife() from core classes. 2009-08-27 22:54:57 -04:00
AD7six
a4bc755cc7 whitespace normalization 2009-08-02 16:10:24 -07:00
gwoo
15ed658a27 Revert "Merge branch '1.3-newlines' into 1.3"
This reverts commit c088131cd8e9f53396852e8a320e2b0396807d20, reversing
changes made to 9341a2bb5eda1db208019aa8a9171224fb76fc6b.
2009-08-02 15:59:54 -07:00
AD7six
fd0aaefb39 whitespace normalization 2009-07-26 12:46:07 +02:00
AD7six
b2142df2bc adding a newline before all comment blocks 2009-07-24 21:18:37 +02: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