64 Commits

Author SHA1 Message Date
d5e8849283 Fix #19508: Fix wrong selection for boolean attributes in GridView 2022-08-24 15:54:27 +03:00
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
ad1fd84f39 Fix PHP 8.1 Empty header DataColumn (#19350)
* Fix PHP 8.1 Empty header DataColumn

#19349

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: Bizley <pawel@positive.codes>
2022-04-13 17:58:28 +02: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
0781b02cc3 Fix #18455: Add ability to use separate attributes for data model and filter model of yii\grid\GridView in yii\grid\DataColumn 2021-01-13 11:47:30 +03:00
763a2b04ea Fix #18200: Add maxlength attribute by default to the input text when it is an active field within a yii\grid\DataColumn 2020-11-15 22:16:20 +03:00
251a3aaf23 Fix #18336: typo in documentation 2020-10-19 01:21:07 +03:00
22832b7c49 release version 2.0.14 2018-02-19 00:27:09 +02:00
dbb49b436b Fixes #15625: yii\grid\DataColumn boolean filter dropdown list values are now in reversed order 2018-02-09 12:22:26 +03:00
65f6b59b35 @inheritdoc notation changed 2018-01-23 13:11:24 +02:00
f6b2d4dbcc Added information about filters and header of DataColumn (#14981) [skip ci] 2017-12-19 22:26:00 +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
1501c659ac Add empty lines before return statements. (#14682) [skip ci] 2017-08-21 01:58:49 +03:00
fe8a0a6a2e Enable no_useless_else rule in php-cs-fixer (#14420) 2017-07-10 11:26:21 +03:00
fadeb5d2b4 added formatter as second paramter to format closure
to allow reusing the formatter in custom formats.

fixes #4495
addition to #14326
2017-07-03 11:34:20 +02: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
c5296242b1 Fixes #13698: yii\grid\DataColumn filter is automatically generated as dropdown list in case of format set to boolean 2017-03-09 00:33:13 +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
8e34f9f45d Update DataColumn.php (#11724) [skip ci] 2016-06-08 18:25:41 +02:00
9d327baa8b coding style fixes 2016-05-26 11:19:32 +02:00
53e1018648 Updated yii\grid\DataColumn::getHeaderCellLabel() to extract attribute label from the filterModel of Grid
Closes #9950
2016-05-03 15:01:33 +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
84827597dc Added @since tags for #10631 2016-04-23 01:27:36 +03:00
9f45a94661 #10631: added changelog, simpified code a bit more 2016-04-22 17:07:22 +03:00
b5b55ad302 Fixes #10631: Splitted gettng label and rendering cell in yii\grid\DataColumn::renderHeaderCellContent() to make code simpler 2016-04-22 17:07:07 +03:00
5c4e2d4372 Removed unnecessary parentheses 2016-02-16 14:08:43 +03:00
dec4a4f239 Fixes #7008: Removed extra white space in GridView filter cell 2015-01-31 00:31:14 +03:00
eeb4e29d55 improve gridview phpdoc 2014-12-17 09:18:00 +01:00
de8966079f Fixes #5367: Added yii\grid\DataColumn::encodeLabel 2014-11-13 21:28:47 -05:00
c6cb205653 Added encodeLabel param to \yii\grid\DataColumn
Use case:

```
    echo GridView::widget([
        ...
        'columns' => [
            ...
            [
                'attribute' => 'created_at',
                'label' => '<span data-toggle="tooltip" class="glyphicon glyphicon-time" title="'.Yii::t('app', 'Created At').'"></span>',
                'encodeLabel' => false,
                ...
            ],
```
2014-11-13 21:26:39 -05:00
b5af2f6ab3 fixed size format plural rule to not format number itself
This fix ensures the format configured in the formatter class is used in the message instead
of the default ICU format.

fixes #4960
2014-09-10 21:53:29 +02:00
d82195706f UPGRADE and CHANGELOG notes for the Formatter changes 2014-09-10 17:56:25 +02:00
1c1dcc2c15 fixed gridview documentation
fixes #4045
2014-06-25 18:33:50 +02:00
0c14f47f9a Fixes #3793: Changed inline autocomplete hints style to get more IDEs support 2014-06-20 17:40:00 +04:00
53e193049f Add $key to function parameter
I think it's better to enclose `$key` as function parameter.
2014-05-22 17:57:30 +07:00
c15aceb094 Refactored filter error display for GridView. 2014-04-22 20:46:23 -04:00
61841345eb Merge pull request #3164 from ivan-kolmychek/3154-gridview-filter-error-indication
GridView filter error indication added (#3154)
2014-04-23 00:25:11 +02:00
bb4e8eb736 DataColumn - error detection moved into renderFilterCellContent() 2014-04-22 18:47:11 +03:00
0a3f4e85f1 made grid\DataColumn::getDataCellValue() public
allow using it from the gridview directly
2014-04-22 13:51:54 +02:00
104a38a714 Issue #3154 - DataColumn checkForFilterErrors() now use Html::addCssClass 2014-04-19 12:22:40 +03:00
c57e1fcb78 Issue #3154 - DataColumn filter model validation error indication added 2014-04-18 12:57:19 +03:00
c1445871f4 Correction of many errors code inspection.
Adjustments code according to the standards.
Adding missing PHPDoc comment.
2014-04-16 19:29:07 -03:00
e87e120040 refactored GridView to have clear separation between value and content 2014-03-27 01:44:06 +01:00
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
6fff5662df better use @see for See in phpdoc 2014-03-11 05:38:35 +01:00
c94a40e90d added a large amount of missing documentation 2014-03-11 05:38:35 +01:00
150d5152b2 more grid docs 2014-03-09 03:21:42 +04:00
eaaa5b1bb5 fix code style 2014-03-04 06:12:30 +02:00