55ea8eee1e
Fix sorting link for multisort with default order ( #19733 )
...
* Add sort tests
* Fix link for multisort
* changelog
* Fix test
2023-01-10 12:16:04 +01:00
161526cd41
HTTPS everywhere ( #19503 )
2022-08-03 12:32:18 +03:00
a87c02c712
Fix more types ( #19333 )
...
* Migration::upsert() returns void
* Unneeded `@property` tags
* Add missing `null` param/return types
* Null types for db\Query + db\ActiveQuery
* Fixed testSelect
* Null types for Validator
* Several more null types
* One more
* Make AccessRule::$allow always a boolean
It doesn't have any special null handling, so it's safe to default to false
* Validator::$skipOnEmpty is always a boolean
* Catch all throwable from Widget::widget()
* Don't limit $previous args to \Exception
The actual \Exception allows $previous to be any throwable in PHP 7+
* Add Throwable catch block to Instance::get()
* Throwable cleanup
Comment changes only.
- Document \Throwable instead of \Exception wherever appropriate
- Removed redundant exception/error classes when \Throwable is referenced
* Yii::setlogger() accepts null
* ArrayHelper::removeValue() can remove any type of value
* Change default $allow value to false
2022-04-03 11:20:21 +02:00
4628b91e73
Fix types ( #19332 )
...
* Migration::upsert() returns void
* Unneeded `@property` tags
* Add missing `null` param/return types
* Null types for db\Query + db\ActiveQuery
* Fixed testSelect
2022-03-30 18:40:10 +02:00
655786b7ed
release version 2.0.44
2021-12-30 10:50:56 +03:00
fa6f0ef658
Fix variable references in phpdoc ( #19006 )
2021-11-10 13:26:55 +03:00
e3028c524d
Fix #18899 : Replace usages of strpos
with strncmp
and remove redundant usage of array_merge
and array_values
2021-09-28 11:06:46 +03:00
7332cc2cba
Fix an invalid phpDoc annotation of yii\data\DataProviderInterface::getSort()
. ( #18897 )
2021-09-22 19:13:09 +02:00
463a67bc73
Add ability to turn the sorting off for a clicked column in GridView with multisort ( #18826 )
...
* Add ability to turn the sorting off for a clicked column in GridView with multisort
* Update Sort.php
* Fix SortTest
* Update CHANGELOG.md
Co-authored-by: Bizley <pawel@positive.codes>
2021-08-11 13:37:37 +02:00
d5a428e001
Fix some code smells ( #18696 )
2021-06-05 13:37:45 +03:00
9a7f778194
Fix #18557 : Fix yii\data\ActiveDataProvider
to handle DB connection configuration of different type than just yii\db\Connection
2021-03-14 18:43:25 +03:00
4479c66522
Fixed phpdoc types
2021-03-12 23:41:48 +03:00
bd2b1f25f0
Fix #18552 : Fix bug with yii\data\SqlDataProvider
not properly handling SQL with ORDER BY
clause
2021-03-10 23:28:45 +03:00
4e2045c040
release version 2.0.41
2021-03-04 00:51:35 +03:00
13cda988e7
#18475 : Correct conditional configuration of db property
2021-01-13 11:35:50 +03:00
f544883148
Fix #18472 : Fix initializing db component configuration
2021-01-11 14:54:39 +03:00
19da4511fb
Fix #18472 : Fix initializing db
component configuration in yii\data\ActiveDataProvider
2021-01-11 11:16:52 +03:00
ee0fe97a45
Fix #18370 : Add option to provide a string replacement for null
value in yii\data\DataFilter
2020-11-10 16:13:21 +03:00
ccb14ff667
release version 2.0.39
2020-11-10 13:58:35 +03:00
67728476ec
Fix #16418 : Fixed yii\data\Pagination::getLinks()
to return links to the first and the last pages regardless of the current page
2020-09-21 00:18:52 +03:00
2d15c484ef
Fix #17961 : Fix pagination pageSizeLimit
ignore if set as array with more then 2 elements
2020-05-02 12:03:01 +03:00
70f9ab858b
release version 2.0.33
2020-03-24 23:03:06 +03:00
a19dd48b79
Fix #7622 : Allow yii\data\ArrayDataProvider
to control the sort flags for sortModels
through yii\data\Sort::sortFlags
property
2020-02-04 11:56:35 +03:00
561242be5e
Fix Sort:: setAttributeOrders() phpdoc ( #17663 ) [skip ci]
2019-11-12 20:18:10 +02:00
8cc74f5c57
Fixes #17156 : Fixes PHP 7.2 warning when a data provider has no data as a parameter for a GridView
2019-02-28 11:02:08 +03:00
26789ed04e
Fixes #17093 by reverting #16891 ( #17154 )
2019-02-23 00:29:20 +03:00
768d590eef
added missing @since annotations
2019-01-31 00:45:25 +01:00
e1623868f9
Fixes #16891 : Fixed Pagination::totalCount initialized incorrectly
2019-01-01 13:24:14 -05:00
e53fc0ded1
Fixes #16558 : Added cloning yii\data\ActiveDataProvider::query
property when ActiveDataProvider object is cloned
2018-08-05 15:18:24 +03:00
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