Commit Graph

185 Commits

Author SHA1 Message Date
Luke Briner
271a86aff3 Extend description
Help users understand the concept of massive assignment without relying on the Guide by extending the description for this type.
2015-05-17 13:21:29 +01:00
Nikola Kovacs
f64d00bdf0 Fix client-side trim validator.
Subsequent validators now use the trimmed value instead of the original value.

fixes #7707
2015-05-13 14:18:27 +02:00
Carsten Brandt
23b31d13de improve documentation of date validator
fixes #7514
2015-05-10 15:47:45 +02:00
Qiang Xue
78d3a856d3 Added Json::htmlEncode() to support safer JSON data encoding in HTML code 2015-05-09 23:38:17 -04:00
Nikola Kovacs
3f24954659 Added min/max option to DateValidator.
Refs #7514
close #8115
2015-05-03 00:50:35 +02:00
Carsten Brandt
cf51d46a75 keep BC in internal implamentation of DateValidator
prepare for #8115
2015-05-03 00:24:57 +02:00
Carsten Brandt
1c41c2bd58 added DateValidator::$timestampAttributeTimeZone
this also makes DateValidator completly functional for validating values that include time.

issue #5053
2015-05-02 23:52:37 +02:00
Carsten Brandt
d60445c066 Add DateValidator::$timestampAttributeFormat
includes refactoring of the formatting method to fix some major timezone issues.

fixes #5053
close #6820
2015-05-01 18:53:28 +02:00
Carsten Brandt
ef662b57be added missing @since annotations 2015-04-24 12:09:40 +02:00
Klimov Paul
4672a8c83f Doc comments at yii\validators\Validator::isEmpty() fixed 2015-04-22 16:32:37 +03:00
Nikola Kovacs
f11bdfa2a7 Grammar fix: followings -> following 2015-04-21 15:08:16 +02:00
Klimov Paul
83e2603985 Restriction on inline model method usage at yii\validators\EachValidator removed in case of usage inside model scope 2015-04-16 11:32:02 +03:00
Qiang Xue
d8848ebf25 Doc improvement [skip ci] 2015-04-12 20:52:05 -04:00
Paul Klimov
d594ab0b03 yii\validators\EachValidator uses single generic error message 2015-04-11 13:59:02 +03:00
Klimov Paul
e29fcc8ea2 Docs about yii\validators\EachValidator adjusted 2015-04-09 18:14:35 +03:00
Klimov Paul
9fedb978f6 Docs for yii\validators\EachValidator adjusted 2015-04-09 18:13:50 +03:00
Klimov Paul
35eb833a2b Added yii\validators\EachValidator 2015-04-09 16:48:15 +03:00
Carsten Brandt
2a23520618 added documentation about handling date values
fixes #6530
fixes #5857
relates to #3973
2015-03-20 16:06:12 +01:00
Carsten Brandt
ba6bce4e2d fixed DateValidator to work with multibyte strings
fixes #6835
2015-02-28 23:45:17 +01:00
Yoyon Cahyono
8b5e16ed56 compare position at which date value parsing ended with its string length to ensure validation when using php intl extension to parse date value
- fixes #6553
- Add additional testValidateAttributeICUFormat() test case using "2012-12-12foo" for "yyyy-MM-dd" date format
- close #6835
2015-02-28 23:33:17 +01:00
Nikolay Bogolubov
2e414632be fix EmailValidator - added unit tests
close #7183
fixes #7172
2015-02-28 23:04:12 +01:00
Carsten Brandt
e83b479dfb improved validator documentation
fixes #7472
2015-02-26 18:40:13 +01:00
Qiang Xue
57c298a523 Fixes #7361: The trim validator now works on the client side too 2015-02-22 19:25:06 -05:00
李某某
1fb842ef5e annotation typo 2015-01-28 10:46:23 +08:00
Alexander Makarov
9db19914ca Used (float) instead of floatval() 2015-01-28 00:25:50 +03:00
Qiang Xue
5ab1d1a0d1 Fixes #6992. 2015-01-24 08:57:53 -05:00
Alexander Makarov
f66b8ba571 Fixes #6589: updated code style guide to mention else after return, adjusted code involved in the issue 2014-12-27 00:15:20 +03:00
Carsten Brandt
58becaceab suppress warning thrown by IntlDateFormatter::parse()
Works around PHP Bug https://bugs.php.net/bug.php?id=68528

fixes #5962
2014-11-30 17:56:23 +01:00
Qiang Xue
d13d274d05 renamed $object to $model 2014-10-31 14:56:59 -04:00
Qiang Xue
7c48837a67 Fixes #5836: doc fixes. 2014-10-31 14:28:51 -04:00
Alexander Makarov
48ec791e4a Fixes #5587: json_encode is now used with JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE where it makes sense, also it is now default for Json::encode() 2014-10-19 18:50:46 +04:00
Alexander Makarov
02622b6fe4 phpdoc fixes and additions 2014-10-14 01:35:21 +04:00
Qiang Xue
d6b797e236 Fixes #5252: Null values are not properly handled by RangeValidator 2014-10-03 09:30:26 -04:00
Carsten Brandt
ef2f6a0887 Merge pull request #5027 from yiisoft/date-format-convert
[WIP] extracted date format converting to a helper class
2014-09-17 18:42:35 +02:00
Qiang Xue
074c1f6c53 Merge branch 'master' into new-asset
Conflicts:
	apps/basic/composer.json
	composer.json
2014-09-16 20:03:53 -04:00
Carsten Brandt
3ff548a442 Refactored DateValidator to support ICU format 2014-09-16 22:53:12 +02:00
Qiang Xue
72a81b8e31 Fixes #3581: Added yii\validators\CompareValidator::type to support type conversion before comparing values 2014-09-16 11:41:54 -04:00
Qiang Xue
b9b6fbc94b Fixes #5039: UniqueValidator and ExistValidator did not respect query conditions added by default scope 2014-09-15 21:19:55 -04:00
Qiang Xue
7ce6a8a456 Fixed typo [skip ci] 2014-09-14 11:54:33 -04:00
Alexander Makarov
11812af1c1 Fixed formatting, initialized options array 2014-09-06 01:48:12 +04:00
Qiang Xue
60e07e0d2a new asset WIP: renabled asset publishing 2014-09-02 14:51:44 -04:00
Qiang Xue
1a62551691 new asset WIP 2014-08-28 17:02:56 -04:00
Arthur Khachaturov
5794534a26 Unused InvalidConfigException 2014-08-24 23:47:36 +04:00
Qiang Xue
2ef7eda249 Fixes #4611. 2014-08-06 08:08:07 -04:00
Tomek Romik
24d0314928 Update docs for clientValidateAttribute() 2014-08-05 16:56:00 +02:00
Qiang Xue
6dd2203a5c Fixes #4566: Added client validation support for image validator 2014-08-02 22:36:22 -04:00
Tomek Romik
8c5c4c503b Fix lines 2014-08-02 17:04:42 -04:00
Tomek Romik
ed3564c1cf Added client-side image validation 2014-08-02 17:04:42 -04:00
Carsten Brandt
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
Alexander Makarov
0edd8bc65a Fixed missing and incorrect phpdoc 2014-07-25 17:26:35 +04:00