Carsten Brandt
|
93bbf5b39d
|
Fixes #15015: Added `StringHelper::floatToString()` to savely cast float values independent of the locale, also fixes some places in the framework that use it now
|
7 years ago |
Robert Korulczyk
|
1501c659ac
|
Add empty lines before return statements. (#14682) [skip ci]
|
7 years ago |
Robert Korulczyk
|
b99e955627
|
Fix CS (#14665)
* Run php-cs-fixer.
* Enable phpdoc_types rule.
|
7 years ago |
Alexander Makarov
|
e9fad56381
|
#14151: Added attribute name to AttributesBehavior callback signature
See 6ffa5fb087 (commitcomment-23630375)
|
7 years ago |
Alexander Makarov
|
6ffa5fb087
|
Additional fixes for #14151
|
7 years ago |
bscheshirwork
|
2b9b0c7166
|
Fixes #14151: Added `AttributesBehavior` that assigns values specified to one or multiple attributes of an AR object when certain events happen
|
7 years ago |
Alexander Makarov
|
0adae899ce
|
Additional fix for SluggableBehavior immutability after merge of #13449
|
7 years ago |
Andrew Nester
|
d26493a287
|
Fixes #13378: Added skipOnEmpty option to SluggableBehaviour
|
7 years ago |
Sam
|
e34505caad
|
Refactored BlameableBehavior to call `$app->has()` to check for component existence (#14185)
|
7 years ago |
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.
|
7 years ago |
Kolyunya
|
9031a115b9
|
Fixes #13586: Added `$preserveNonEmptyValues` property to the `yii\behaviors\AttributeBehavior`
|
7 years ago |
Carsten Brandt
|
be658f82bf
|
release version 2.0.12
|
7 years ago |
Nikolay Oleynikov
|
d0ce165ba6
|
Fixes #13728: Fixed the bug when `yii\behaviors\SluggableBehavior` wasn't preserving immutable slug values
|
8 years ago |
Nikolay Oleynikov
|
ad1ce9e498
|
Improve sluggable behavior documentation (#13747) [skip ci]
|
8 years ago |
Nikolay Oleynikov
|
3255829abb
|
Remove excessive `use` statement
|
8 years ago |
Herbert Maschke
|
b58fee7d37
|
Fixes #13035: Use ArrayHelper::getValue() in SluggableBehavior::getValue()
|
8 years ago |
Robert Korulczyk
|
7a3a342127
|
Fix errors reported by apidoc extension. (#12986)
|
8 years ago |
Robert Korulczyk
|
4aa935e69e
|
Fixes #12055: Changed `boolean` to `bool` and `integer` to `int` in phpdoc
|
8 years ago |
Klimov Paul
|
e7c080594d
|
Fixed `yii\behaviors\AttributeTypecastBehavior` marks attributes with `null` value as 'dirty'
|
8 years ago |
Klimov Paul
|
d4df72a2a4
|
Fixed `yii\behaviors\AttributeTypecastBehavior` unable to automatically detect `attributeTypes`
|
8 years ago |
Carsten Brandt
|
ff871bdf48
|
adjuste PHPdoc controller to use short form types
|
8 years ago |
Paul Klimov
|
a53c1f9525
|
Added `yii\behaviors\AttributeTypecastBehavior` (#12067)
Added `yii\behaviors\AttributeTypecastBehavior`
|
8 years ago |
Carsten Brandt
|
217d50e4ff
|
improved PHPdoc and `@since` annotations
|
8 years ago |
Nikola Kovacs
|
9d327baa8b
|
coding style fixes
|
8 years ago |
Alexander Makarov
|
73803ff28b
|
Fixes #8422: added note to behaviors explaining that there's no sense in validating attributes there are set automatically
|
9 years ago |
Carsten Brandt
|
731769241b
|
release version 2.0.8
|
9 years ago |
Angel Guevara
|
b49488b1f7
|
Enh new property `skipUpdateOnClean` for `AttributeBehavior` (#11302)
Fixes #11002: `AttributeBehavior::$skipUpdateOnClean` which determines whether to skip a behavior when the behavior owner has not been modified
|
9 years ago |
Angel Guevara
|
0bd7bb961f
|
[doc] link to unexistant class
`\yii\behaviors\Expression` to `\yii\db\Expression`
|
9 years ago |
Jitendra Joshi
|
8476997800
|
MySQL default column type for TimestampBehaviour
|
9 years ago |
Alexander Makarov
|
b6caff1952
|
Removed unused imports
|
9 years ago |
Carsten Brandt
|
4359f4665b
|
docs adjustement for blameable behavior
|
9 years ago |
SilverFire - Dmitry Naumenko
|
4f75bd70b9
|
`BlameableBehavior::getValue()` changed to make value processing consistent with `AttributeBehavior::getValue()`
|
9 years ago |
SilverFire - Dmitry Naumenko
|
2e13136ca8
|
`AttributeBehavior::getValue()` now respects the callable in array format
|
9 years ago |
Carsten Brandt
|
e8d309dddb
|
documentation fixes for 2.0.7
|
9 years ago |
SilverFire - Dmitry Naumenko
|
6936c41cf1
|
SluggableBahavior - PHPDoc and code style fixed; validateSlug, generateUniqueSlug - private -> protected
|
9 years ago |
Hesam Khaki
|
bd6b70b470
|
fixes some coding styles in sluggableBehavior
|
9 years ago |
Hesam Khaki
|
a8dfd50078
|
numerous refactors for SluggabeBehavior class
|
9 years ago |
SilverFire - Dmitry Naumenko
|
cd87d67f34
|
Global DOCS update: ~~~ replaced with ```
|
9 years ago |
Carsten Brandt
|
e2c8c08875
|
made it easier to extend SluggableBehavior slug generation
fixes #10118
|
9 years ago |
SilverFire - Dima Naumenko
|
f38bb6ced4
|
Chg #9953: `TimestampBehavior::getValue()` value processing is consistent with `AttributeBehavior::getValue()`
|
9 years ago |
Carsten Brandt
|
a2568d1ec8
|
updated some comments and `@since` annotations
|
9 years ago |
Klimov Paul
|
cad9fd9d20
|
`yii\behaviors\TimestampBehavior::touch()` throws an exception if owner is new record
|
10 years ago |
Steven Michaels
|
5fc927c959
|
AttributeBehavior documentation cleanup [ci skip]
Removed a rogue 'For example' and split a long line
close #7940
|
10 years ago |
Carsten Brandt
|
da50920ac8
|
improved wording in TimestampBehavior
|
10 years ago |
Carsten Brandt
|
e742ba0ea1
|
updated docs about timestamp and refresh
fixes #7484
|
10 years ago |
Kartik Visweswaran
|
98571fb3b9
|
More correct usage of TimeStamp touch method
TimeStampBehavior PHPDoc update for the `touch()` method
|
10 years ago |
Qiang Xue
|
654dbbb29e
|
Fixes #6678: `yii\behaviors\SluggableBehavior` will generate a new slug only when the slug attribute is empty or the source attribute is changed
|
10 years ago |
Qiang Xue
|
58516ae8a9
|
Fixes #6434: Added `yii\behaviors\SluggableBehavior::immutable` to support keeping the generated slug unchanged
|
10 years ago |
Eugine Terentev
|
4dd15a669f
|
Adds immutable property fit SluggableBehavior fixes #6430
|
10 years ago |
Alexander Mohorev
|
bb8550886e
|
PHP type casting
|
10 years ago |