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
9d03667b40
Fixes #16527 : Fixed return content for \yii\widgets\ActiveForm::run()
2018-07-28 23:50:22 +08:00
22832b7c49
release version 2.0.14
2018-02-19 00:27:09 +02:00
b3130be7ba
Fixes #15476 : Added \yii\widgets\ActiveForm::$validationStateOn
to be able to specify where to add class for invalid fields
2018-01-31 03:03:21 +07:00
08eccb612f
Fixes #15536 : Fixed yii\widgets\ActiveForm::init()
for call parent::init()
2018-01-24 11:15:10 +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
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
f14d4c767f
fixed missing changelog and missing @since
2017-04-28 10:49:07 +02:00
fce20a3020
Renamed ActiveForm::registerJs()
to registerClientScript()
, added tests
2017-04-27 22:27:59 +03:00
a480d70875
More control over ActiveForm widget
...
If part of a form is rendered separately (e.g. in ajax request), it's not easy to apply JS validation to it.
By moving JS registration to a separate method this problem could be solved much more easier.
2017-04-27 22:27:59 +03:00
5609e918de
Fixed some malformed @var tags ( #13468 ) [skip ci]
2017-01-30 11:42:52 +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
8f5b1fb3eb
Fixes #12790 : Added scrollToErrorOffset
option for ActiveForm
which adds ability to specify offset in pixels when scrolling to error
2016-10-21 01:06:37 +03:00
b668970a80
Small corrections in docblocks ( #12443 ) [skip ci]
2016-09-02 23:39:29 +03:00
b5b674995c
Cosmetic changes
2016-08-27 20:05:33 +03:00
608066b05f
fixed ActiveForm tests for output buffering
...
related to #8779 , and 7dc984d35928128b3612fb6aa4ed19b03ee963fd
2016-03-28 04:55:15 +02:00
7dc984d359
Fixed #8779 : Automatically set enctype form option when using file input field
2016-03-27 23:47:19 +03:00
cd87d67f34
Global DOCS update: ~~~ replaced with ```
2015-12-02 23:15:28 +02:00
2577a5915b
Fixes #7259 : Added errorAttributes
parameter to ActiveForm afterValidate
event. Made scrolling to first error optional
2015-08-02 12:58:35 +03:00
49e5c59a75
Fix phpdoc
2015-07-23 13:57:59 +02:00
78d3a856d3
Added Json::htmlEncode()
to support safer JSON data encoding in HTML code
2015-05-09 23:38:17 -04:00
92b1ba77db
improved phpdoc of ActiveForm
2015-03-27 00:36:05 +01:00
64b4d6dca1
Correct order of property declaration
2014-10-25 16:28:36 +03:00
d3f2010e07
Fixes #2380 : Added yii\widgets\ActiveForm::enableClientScript
to support turning on and off client side script generation
2014-09-18 13:04:46 -04:00
a187d47aec
Fixes #5049 : ActiveForm::validationDelay
should be applied to user types only
2014-09-16 14:40:00 -04:00
f50f840a55
Fixes #4955 : Replaced callbacks with events for ActiveForm
2014-09-09 22:37:27 -04:00
ae13b0593f
Fixes #3410 : yii.activeForm.js now supports adding/removing fields dynamically
2014-09-05 23:10:23 -04:00
08d4d89930
Fixes #2914 : ActiveForm::fieldConfig
will be merged recursively with the $options
parameter in ActiveForm::field()
2014-09-05 20:54:05 -04:00
155f525e0b
Fixes #2380 : yii\widgets\ActiveForm
will register validation js even if there are not fields inside
2014-09-05 15:08:09 -04:00
4ad022c372
Fixes #3240 : Added support for assigning an anonymous function to yii\widgets\ActiveForm::fieldConfig
2014-09-05 13:37:52 -04:00
f34b138aab
Fixes #4225 : Added ActiveForm::validateOnBlur
and ActiveField::validateOnBlur
2014-09-03 16:14:54 -04:00
c0d771f744
Fixes #4640 : Added yii\widgets\ActiveForm::beginField()
and endField()
2014-08-17 20:58:34 -04:00
25c2f9bf85
Made error message encoding configurable for ActiveForm
...
Updated yii.activeform.js to use the encode option introduced in #4122 .
Updated ActiveForm with new option encodeErrorSummary
fixes #4690 , close #4691
2014-08-13 00:53:38 +02:00
594b57836d
Added validation js callbacks
...
- `beforeValidateAll`
- `afterValidateAll`
fixes #4234 , close #4559
2014-08-04 18:06:10 +02:00
3a1e0f3a5c
property codestyle framework
2014-07-30 00:21:31 +02:00
88191bbe5c
New callback functions for form validation using Ajax.
...
close #4436
2014-07-25 09:24:04 +02:00
0c14f47f9a
Fixes #3793 : Changed inline autocomplete hints style to get more IDEs support
2014-06-20 17:40:00 +04:00
1b81503d71
\yii\widgets\ActiveForm incorrect js selector for errorSummaryCss
property better fix
2014-06-14 02:02:35 +04:00
4894d66d6e
\yii\widgets\ActiveForm incorrect js selector for errorSummaryCss
property fixed
2014-06-14 01:28:16 +04:00
55c2ee9885
added note about GET method to ActiveForm
...
fixes #3353
2014-05-17 16:17:32 +02:00
7ca1be3504
Fixes #3008 : Added Html::errorSummary()
2014-04-22 19:55:13 -04:00
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
2014-03-23 20:51:09 +01:00
b5f8a4dc22
Reformat code te be PSR-2 compatible
2014-03-16 10:46:21 +06:00
ca3b2cd057
Fix some references to removed Html::url in phpdoc
2014-03-11 11:15:21 +01: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
5d6c314d4e
Adjusted URL helper, fixed usage
2014-03-10 15:25:15 +04:00