157 Commits

Author SHA1 Message Date
d13d274d05 renamed $object to $model 2014-10-31 14:56:59 -04:00
7c48837a67 Fixes #5836: doc fixes. 2014-10-31 14:28:51 -04:00
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
02622b6fe4 phpdoc fixes and additions 2014-10-14 01:35:21 +04:00
d6b797e236 Fixes #5252: Null values are not properly handled by RangeValidator 2014-10-03 09:30:26 -04:00
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
074c1f6c53 Merge branch 'master' into new-asset
Conflicts:
	apps/basic/composer.json
	composer.json
2014-09-16 20:03:53 -04:00
3ff548a442 Refactored DateValidator to support ICU format 2014-09-16 22:53:12 +02:00
72a81b8e31 Fixes #3581: Added yii\validators\CompareValidator::type to support type conversion before comparing values 2014-09-16 11:41:54 -04:00
b9b6fbc94b Fixes #5039: UniqueValidator and ExistValidator did not respect query conditions added by default scope 2014-09-15 21:19:55 -04:00
7ce6a8a456 Fixed typo [skip ci] 2014-09-14 11:54:33 -04:00
11812af1c1 Fixed formatting, initialized options array 2014-09-06 01:48:12 +04:00
60e07e0d2a new asset WIP: renabled asset publishing 2014-09-02 14:51:44 -04:00
1a62551691 new asset WIP 2014-08-28 17:02:56 -04:00
5794534a26 Unused InvalidConfigException 2014-08-24 23:47:36 +04:00
2ef7eda249 Fixes #4611. 2014-08-06 08:08:07 -04:00
24d0314928 Update docs for clientValidateAttribute() 2014-08-05 16:56:00 +02:00
6dd2203a5c Fixes #4566: Added client validation support for image validator 2014-08-02 22:36:22 -04:00
8c5c4c503b Fix lines 2014-08-02 17:04:42 -04:00
ed3564c1cf Added client-side image validation 2014-08-02 17:04:42 -04:00
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
0edd8bc65a Fixed missing and incorrect phpdoc 2014-07-25 17:26:35 +04:00
b3f0f7dceb Fixed typo and inconsistent conditionals 2014-07-23 22:41:35 -04:00
d1c2b137b3 Added client-side file validator 2014-07-23 22:41:35 -04:00
a2e73f9900 Fixes #4370: fileinfo extension is required for FileValidator. 2014-07-22 15:06:14 -04:00
9fd920e2d1 minor refactoring of FileValidator. 2014-07-22 11:29:04 -04:00
aabd69afcf avoid confusion about uploadRequired 2014-07-16 11:43:44 +02:00
9f08d18f96 Fixes #3020 [skip ci] 2014-06-26 22:50:57 -04:00
0c14f47f9a Fixes #3793: Changed inline autocomplete hints style to get more IDEs support 2014-06-20 17:40:00 +04:00
084819b84c refactored file validator. 2014-06-14 16:21:59 -04:00
a89d574a20 updated FileValidator , CHANGELOG.md , UPGRADE.md guides , tests fixed 2014-06-14 22:11:58 +04:00
64deaad75d undo changes 2014-06-14 21:59:10 +04:00
42643e3747 type validation adjusted 2014-06-14 12:42:12 +04:00
d5a1a74864 fixed mime type file info 2014-06-11 11:53:30 +04:00
1bad91bd4e Update FileValidator.php 2014-06-10 17:14:12 -03:00
431915c439 mimeTypes Validator is wrong
I'm find error

```php

Wrong
 } elseif (!empty($this->mimeTypes) && !in_array(FileHelper::getMimeType($file->tempName), $this->mimeTypes, true)) {

Correct
} elseif (!empty($this->mimeTypes) && !in_array(FileHelper::getMimeType($file), $this->mimeTypes, true)) {
```

Not need call '$file->tempName' because getMimeType get object $_FILE => $file, so use $file and validator works fine
2014-06-10 16:35:21 -03:00
c52c063ca6 file validator added mime - types , image validator fixed 2014-06-10 14:14:19 +04:00
01e5ffdceb guide WIP [skip ci] 2014-06-05 22:40:37 -04:00
d1e0a54553 guide WIP [skip ci] 2014-06-04 17:50:24 -04:00
0c02edbfca Adjusted default validator method phpdoc 2014-06-01 00:26:16 +04:00
68341dd50e Merge branch 'defaultValueValidator' of github.com:Alex-Code/yii2 into Alex-Code-defaultValueValidator
Conflicts:
	framework/CHANGELOG.md
2014-05-31 12:09:45 +04:00
a4e8829717 Additional RangeValidator fixes 2014-05-23 15:26:09 +04:00
b1ba2439a6 [WIP] Additional RangeValidator fixes 2014-05-23 01:56:51 +04:00
431d8864f9 refactored RangeValidator. 2014-05-22 16:32:00 -04:00
ca4a228b55 RangeValidator bugfix 2014-05-22 21:29:18 +04:00
3de8630fd3 Code readability fix 2014-05-22 20:05:25 +04:00
af09fe16df Improve in validator to properly support array attributes. 2014-05-22 17:51:17 +04:00
c6e8f66e1b Update UniqueValidator.php 2014-05-19 15:52:54 +08:00
15904951ef Merge PR #3406 branch 'exist-validator-enhancement' of https://github.com/creocoder/yii2
* 'exist-validator-enhancement' of https://github.com/creocoder/yii2:
  ExistValidator final refactoring. `allowArray` checking also added to `validateValue` method.
  New tests added
  New tests added
  ExistValidator::validateValue() fixed
  Tests excess dump removed
  ExistValidator bugfix
  Tests updated
  ExistValidator refactoring
  CHANGELOG updated
  `allowArray` introduced.
  CHANGELOG
  ExistValidator count logic fix
  Tests updated
  Tests updated
  Tests updated
  Refactoring
  Refactoring
  Improve `exist` validator to support array attributes

Conflicts:
	framework/CHANGELOG.md
2014-05-15 10:00:06 +02:00
49f8d45d8b ExistValidator final refactoring. allowArray checking also added to validateValue method. 2014-05-14 21:18:32 +04:00