Commit Graph

57 Commits

Author SHA1 Message Date
SilverFire - Dmitry Naumenko
22832b7c49 release version 2.0.14 2018-02-19 00:27:09 +02:00
Bizley
dbb49b436b Fixes #15625: yii\grid\DataColumn boolean filter dropdown list values are now in reversed order 2018-02-09 12:22:26 +03:00
Klimov Paul
65f6b59b35 @inheritdoc notation changed 2018-01-23 13:11:24 +02:00
Evgeniy Tkachenko
f6b2d4dbcc Added information about filters and header of DataColumn (#14981) [skip ci] 2017-12-19 22:26:00 +03:00
Paul Klimov
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
Robert Korulczyk
1501c659ac Add empty lines before return statements. (#14682) [skip ci] 2017-08-21 01:58:49 +03:00
Robert Korulczyk
fe8a0a6a2e Enable no_useless_else rule in php-cs-fixer (#14420) 2017-07-10 11:26:21 +03:00
Carsten Brandt
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
Robert Korulczyk
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
Bizley
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
Robert Korulczyk
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
Boudewijn Vahrmeijer
32f4dc8997 Fixes #5385: links created from classes to corresponding guide articles (#12920) 2016-11-04 18:55:14 +03:00
Evgeniy Tkachenko
8e34f9f45d Update DataColumn.php (#11724) [skip ci] 2016-06-08 18:25:41 +02:00
Nikola Kovacs
9d327baa8b coding style fixes 2016-05-26 11:19:32 +02:00
SilverFire - Dmitry Naumenko
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
SilverFire - Dmitry Naumenko
030913e7f0 Fixed code style and indentations 2016-05-03 14:51:25 +03:00
PowerGamer1
7f3511a908 Update ArrayDataProvider.php
Update DataColumn.php

Update CHANGELOG.md
2016-05-03 14:51:22 +03:00
Alexander Makarov
84827597dc Added @since tags for #10631 2016-04-23 01:27:36 +03:00
Alexander Makarov
9f45a94661 #10631: added changelog, simpified code a bit more 2016-04-22 17:07:22 +03:00
Konstantin Timoshenko
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
Alexander Makarov
5c4e2d4372 Removed unnecessary parentheses 2016-02-16 14:08:43 +03:00
Ivan Yakovlev
dec4a4f239 Fixes #7008: Removed extra white space in GridView filter cell 2015-01-31 00:31:14 +03:00
Carsten Brandt
eeb4e29d55 improve gridview phpdoc 2014-12-17 09:18:00 +01:00
Qiang Xue
de8966079f Fixes #5367: Added yii\grid\DataColumn::encodeLabel 2014-11-13 21:28:47 -05:00
Serge Postrash
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
Carsten Brandt
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
Carsten Brandt
d82195706f UPGRADE and CHANGELOG notes for the Formatter changes 2014-09-10 17:56:25 +02:00
Carsten Brandt
1c1dcc2c15 fixed gridview documentation
fixes #4045
2014-06-25 18:33:50 +02:00
Alexander Makarov
0c14f47f9a Fixes #3793: Changed inline autocomplete hints style to get more IDEs support 2014-06-20 17:40:00 +04:00
MDMunir
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
Qiang Xue
c15aceb094 Refactored filter error display for GridView. 2014-04-22 20:46:23 -04:00
Carsten Brandt
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
Ivan Kolmycheck
bb4e8eb736 DataColumn - error detection moved into renderFilterCellContent() 2014-04-22 18:47:11 +03:00
Carsten Brandt
0a3f4e85f1 made grid\DataColumn::getDataCellValue() public
allow using it from the gridview directly
2014-04-22 13:51:54 +02:00
Ivan Kolmycheck
104a38a714 Issue #3154 - DataColumn checkForFilterErrors() now use Html::addCssClass 2014-04-19 12:22:40 +03:00
Ivan Kolmycheck
c57e1fcb78 Issue #3154 - DataColumn filter model validation error indication added 2014-04-18 12:57:19 +03:00
Thiago Talma
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
Carsten Brandt
e87e120040 refactored GridView to have clear separation between value and content 2014-03-27 01:44:06 +01:00
SonicGD
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
Carsten Brandt
6fff5662df better use @see for See in phpdoc 2014-03-11 05:38:35 +01:00
Carsten Brandt
c94a40e90d added a large amount of missing documentation 2014-03-11 05:38:35 +01:00
Alexander Makarov
150d5152b2 more grid docs 2014-03-09 03:21:42 +04:00
AlexGx
eaaa5b1bb5 fix code style 2014-03-04 06:12:30 +02:00
Qiang Xue
eaa1ba029f minor cs fixes. 2014-02-25 16:43:31 -05:00
Qiang Xue
3ad7d6d356 Merge pull request #2284 from kartik-v/patch-12
Raw content return for Grid DataColumn & Column
2014-02-25 16:37:39 -05:00
Alexander Makarov
e3e26540a2 Fixes #2508 2014-02-21 15:03:10 +04:00
Kartik Visweswaran
cd1f7b10ea Removed unnecessary blank space 2014-02-03 11:32:42 +00:00
Kartik Visweswaran
5f5570e73f Raw content return for Grid DataColumn & Column 2014-02-02 21:57:41 +00:00
Kartik Visweswaran
342ba95d4a Raw content return for Grid DataColumn & Column
Need to have a method  `getDataCellContent` to return raw parsed data cell content. This is useful when extending these Columns, for processing any other data before formatting via `renderDataCellContent`.
2014-02-02 21:50:58 +00:00
Thiago Talma
8c49dabb1b Change condition 2014-01-30 17:04:16 -02:00