Salem Ouerdani
e9ffcb2d12
Fixes #16456 : Fixed OptimisticLockBehavior omitting HTML web forms
6 years ago
Salem Ouerdani
1945dc69c7
Fixes #9133 : Added `yii\behaviors\OptimisticLockBehavior`
6 years ago
Nick Denry
d880148fd0
Add php-intl dependency info for SluggableBehavior ( #15997 ) [skip ci]
7 years ago
SilverFire - Dmitry Naumenko
abb503c284
release version 2.0.14.1
7 years ago
SilverFire - Dmitry Naumenko
820e502d64
Fixed syntax error caused by bad csfix run
7 years ago
SilverFire - Dmitry Naumenko
22832b7c49
release version 2.0.14
7 years ago
Alexander Makarov
0de49406db
Minor code style adjustments, phpdoc
7 years ago
Carsten Brandt
488f98648a
added missing `@since` annotations
7 years ago
Alexander Makarov
78c95b453c
Fixed changelog and `@since` tag that was in the wrong method [skip ci]
7 years ago
SilverFire - Dmitry Naumenko
41cf14e515
Added tests for #14538 , added CHANGELOG line
7 years ago
Hryhorii Furletov
798947af29
Update AttributeTypecastBehavior.php
...
Line `Handles owner 'beforeInsert' and 'beforeUpdate' events, ensuring attribute typecasting.` required for change (hotfix php docs.)
7 years ago
Brandon Kelly
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()`
7 years ago
Alexander Makarov
846444d17e
Refactor cacheable widget behavior ( #15608 )
7 years ago
Nikolay Oleynikov
37bd97ad9a
Fixes #13679 : Added `yii\behaviors\CacheableWidgetBehavior`
7 years ago
Klimov Paul
65f6b59b35
`@inheritdoc` notation changed
7 years ago
Klimov Paul
2a742cee9f
Fixed `yii\behaviors\AttributeTypecastBehavior::$attributeTypes` auto-detection fails for rule, which specify attribute with '!' prefix
7 years ago
Dmitry Dorogin
5ebf98cc1d
Fixes #5515 : Added default value for `yii\behaviors\BlameableBehavior` for cases when the user is guest
7 years ago
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
cuiliang
c0df003ac0
merge from master
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