87 Commits

Author SHA1 Message Date
1a74b3d4f8 [minor] SCA with Php Inspections (EA Ultimate) (#15871)
* Php Inspections (EA Ultimate): use type casting where applicable

* Php Inspections (EA Ultimate): use constants where applicable

* Php Inspections (EA Ultimate): CS

* Php Inspections (EA Ultimate): address some of one-time used variables

* Php Inspections (EA Ultimate): address some of performance-related findings

* Php Inspections (EA Ultimate): address some of performance-related findings

* Php Inspections (EA Ultimate): revert a constant usage

* Php Inspections (EA Ultimate): revert sequential assignments

* Php Inspections (EA Ultimate): build is green again

* Php Inspections (EA Ultimate): revert array_merge tweaks

* Php Inspections (EA Ultimate): revert BC-incompatible one-time used variable tweak

* Update description [skip ci]

* Php Inspections (EA Ultimate): CS
2018-03-12 01:37:19 +03:00
22832b7c49 release version 2.0.14 2018-02-19 00:27:09 +02:00
e6f5c46cdc Fixes #15633: Deprecate some things going away/changing in 2.1
- Deprecated `yii\base\BaseObject::className()` in favor of native PHP syntax `::class`, which does not trigger autoloading
- Deprecated XCache and Zend data cache support as caching backends
- Deprecated `yii\BaseYii::powered()` method
- Added `yii\base\InvalidArgumentException` and deprecated `yii\base\InvalidParamException`
- Added `yii\BaseYii::debug()` and deprecated `yii\BaseYii::trace()`
2018-02-11 01:48:29 +03:00
5550ad2021 Fixes #15595: yii\data\DataFilter can now handle lt,gt,lte and gte on yii\validators\DateValidator 2018-02-05 22:54:45 +07:00
65f6b59b35 @inheritdoc notation changed 2018-01-23 13:11:24 +02:00
2d672b6722 release version 2.0.13 2017-11-03 01:09:29 +03:00
ec76b624a9 Adjusted new message quotes style [skip ci] 2017-11-03 00:39:38 +03:00
fb23b0d0ea Code style fixes 2017-11-01 02:43:02 +03:00
376006a2d5 Data filter enhancements and docs
- Added docs.
- Moved to "data" namespace.
- Moved messages to "yii" category.
- Added Russian messages translation.
2017-10-26 11:32:52 +03:00
d68789a195 Fixes #13779, fixes #5786
- #13779: Fixed `yii\db\ActiveRecord::joinWith()` unable to use relation defined via attached behavior.
- #5786: Allowed to use custom constructors in ActiveRecord-based classes.
2017-08-29 15:13:28 +03:00
5a8c3d537b Enable phpdoc_summary rule in php-cs-fixer config (#14675)
* Enable `phpdoc_summary` rule in php-cs-fixer config.

* Fix case in "PHPDoc".
2017-08-21 11:19:35 +02:00
1f26db9fb7 Applied code style fixes 2017-07-21 15:42:06 +03:00
69673c0c94 Rename Object -> BaseObject for PHP 7.2 compatibility
issue #7936
2017-07-19 10:51:46 +02:00
fe8a0a6a2e Enable no_useless_else rule in php-cs-fixer (#14420) 2017-07-10 11:26:21 +03:00
ba0ab403b5 Added php-cs-fixer coding standards validation to Travis CI (#14100)
* php-cs-fixer: PSR2 rule.

* php-cs-fixer: PSR2 rule - fix views.

* Travis setup refactoring.

* Add php-cs-fixer to travis cs tests.

* Fix tests on hhvm-3.12

* improve travis config

* composer update

* revert composer update

* improve travis config

* Fix CS.

* Extract config to separate classes.

* Extract config to separate classes.

* Add file header.

* Force short array syntax.

* binary_operator_spaces fixer

* Fix broken tests

* cast_spaces fixer

* concat_space fixer

* dir_constant fixer

* ereg_to_preg fixer

* function_typehint_space fixer

* hash_to_slash_comment fixer

* is_null fixer

* linebreak_after_opening_tag fixer

* lowercase_cast fixer

* magic_constant_casing fixer

* modernize_types_casting fixer

* native_function_casing fixer

* new_with_braces fixer

* no_alias_functions fixer

* no_blank_lines_after_class_opening fixer

* no_blank_lines_after_phpdoc fixer

* no_empty_comment fixer

* no_empty_phpdoc fixer

* no_empty_statement fixer

* no_extra_consecutive_blank_lines fixer

* no_leading_import_slash fixer

* no_leading_namespace_whitespace fixer

* no_mixed_echo_print fixer

* no_multiline_whitespace_around_double_arrow fixer

* no_multiline_whitespace_before_semicolons fixer

* no_php4_constructor fixer

* no_short_bool_cast fixer

* no_singleline_whitespace_before_semicolons fixer

* no_spaces_around_offset fixer

* no_trailing_comma_in_list_call fixer

* no_trailing_comma_in_singleline_array fixer

* no_unneeded_control_parentheses fixer

* no_unused_imports fixer

* no_useless_return fixer

* no_whitespace_before_comma_in_array fixer

* no_whitespace_in_blank_line fixer

* not_operator_with_successor_space fixer

* object_operator_without_whitespace fixer

* ordered_imports fixer

* php_unit_construct fixer

* php_unit_dedicate_assert fixer

* php_unit_fqcn_annotation fixer

* phpdoc_indent fixer

* phpdoc_no_access fixer

* phpdoc_no_empty_return fixer

* phpdoc_no_package fixer

* phpdoc_no_useless_inheritdoc fixer

* Fix broken tests

* phpdoc_return_self_reference fixer

* phpdoc_single_line_var_spacing fixer

* phpdoc_single_line_var_spacing fixer

* phpdoc_to_comment fixer

* phpdoc_trim fixer

* phpdoc_var_without_name fixer

* psr4 fixer

* self_accessor fixer

* short_scalar_cast fixer

* single_blank_line_before_namespace fixer

* single_quote fixer

* standardize_not_equals fixer

* ternary_operator_spaces fixer

* trailing_comma_in_multiline_array fixer

* trim_array_spaces fixer

* protected_to_private fixer

* unary_operator_spaces fixer

* whitespace_after_comma_in_array fixer

* `parent::setRules()` -> `$this->setRules()`

* blank_line_after_opening_tag fixer

* Update finder config.

* Revert changes for YiiRequirementChecker.

* Fix array formatting.

* Add missing import.

* Fix CS for new code merged from master.

* Fix some indentation issues.
2017-06-12 12:25:45 +03:00
be658f82bf release version 2.0.12 2017-06-05 16:33:41 +02:00
473598ac8c Added support for sorting by expression to \yii\data\Sort 2017-05-09 17:26:49 +03:00
533da6240e Update phpdoc, \yii\db\ActiveRecord => \yii\db\ActiveRecordInterface [skip ci] (#14076) 2017-04-30 21:14:58 +02:00
da6eada8c8 Fix an invalid phpDocumentor annotation
Fixed an invalid phpDocumentor annotation of `yii\data\DataProviderInterface::getPagination()`.
2017-04-27 17:46:46 +03:00
385eb88048 Added yii\data\Sort::parseSortParams
allowing customize other params request formats in descendant class.

close #13170
2017-04-26 01:42:45 +02:00
98871123c9 Fixed ignored params when using count in SqlDataProvider 2017-04-25 10:54:18 +02:00
ae7378974e Fixes #13376: Data provider now automatically sets an ID so there is no need to set it manually in case multiple data providers are used with pagination 2017-04-01 18:27:27 +03:00
78a0035703 Removed unnecessary else 2017-04-01 16:37:48 +03:00
79f16b1492 Fixes #13883: \yii\data\SqlDataProvider now provides automatic fallback for the case when totalCount is not specified 2017-04-01 16:37:25 +03:00
7d82bbcd37 Fixes #13467: yii\data\ActiveDataProvider no longer queries models if models count is zero 2017-02-20 12:00:00 +03:00
c19b2f7dc8 release version 2.0.11 2017-02-01 17:46:29 +01:00
69de8f8460 Update ActiveDataProvider.php 2016-12-20 10:07:04 +03:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
32f4dc8997 Fixes #5385: links created from classes to corresponding guide articles (#12920) 2016-11-04 18:55:14 +03:00
333c4b6b4f Remove unnecessary comparsion (#12833)
* Remove unnecessary comparsion

* Clarify condition
2016-10-27 10:06:39 +02:00
11fe407ad0 release version 2.0.10 2016-10-20 14:02:50 +02:00
6bffb78391 Added public keyword to example (#12789) [skip ci] 2016-10-20 00:39:57 +03:00
088f15ee67 Cosmetic changes in DocBlocks (#12788) [skip ci] 2016-10-20 00:31:25 +03:00
90b9ed87bd Added yii\data\Sort::setAttributeOrders() 2016-08-31 14:03:34 +03:00
976acc6146 Update BaseDataProvider.php (#12168) [skip ci] 2016-08-16 10:14:56 +03:00
217d50e4ff improved PHPdoc and @since annotations 2016-07-11 12:58:43 +02:00
2a05754ede Fix link in documentation (#11861) [skip ci] 2016-07-02 01:42:08 +03:00
7e96db253d Add missing documentation for getSort (#11862) [skip ci] 2016-07-01 18:25:31 +03:00
030913e7f0 Fixed code style and indentations 2016-05-03 14:51:25 +03:00
7f3511a908 Update ArrayDataProvider.php
Update DataColumn.php

Update CHANGELOG.md
2016-05-03 14:51:22 +03:00
731769241b release version 2.0.8 2016-04-28 16:50:20 +02:00
8001f2b259 Update BaseDataProvider.php (#11342) 2016-04-13 13:02:22 +03:00
f6094ee519 Update Pagination.php (#11343) 2016-04-13 13:01:46 +03:00
cd87d67f34 Global DOCS update: ~~~ replaced with ``` 2015-12-02 23:15:28 +02:00
b53bbb34e9 Fixed typo 2015-09-16 17:38:02 +03:00
0c5e4b7105 PSR-2 foreach statement 2015-06-08 23:21:21 +03:00
bb4bed4833 Fixed yii\data\ArrayDataProvider::getKeys() return wrong when yii\data\ArrayDataProvider::$allModels contain integer key 2015-04-14 17:07:16 +03:00
0a6715bd0b enhanced default value for ListView Sort attribute labels
fixes #7530
close #7561
2015-03-20 14:18:52 +01:00
985119350b 2.0.3 release. 2015-03-01 01:22:44 -05:00
6481d13494 Optimized checks order in conditions 2015-02-08 17:56:36 +03:00