Bizley
0041f034fd
[doc] Update PHP doc links ( #18957 )
...
* Replace https://secure.php.net with https://www.php.net
* Replace http://www.php.net with https://www.php.net
3 years ago
Bizley
840083724e
Fix #18351 : Added option to change default timezone for parsing formats without time part in `yii\validators\DateValidator`
4 years ago
Alexander Kartavenko
2d333b2301
Fixes #17382 : Added `\yii\validators\DateValidator::$strictDateFormat` to enable strict validation
5 years ago
Pavel Dovlatov
bdb7c64910
Update to https protocol for php.net links ( #17168 ) [skip ci]
...
* Updated php.net link for some MemCache properties [skip ci]
* Changed protocol to https for links to php.net in comments
* Changed protocol to https for links to php.net in code
* Changed www.php.net (http) to secure.php.net (https) in comments
* Changed www.php.net (http) to secure.php.net (https) in code
* Changed protocol to https for links to php.net in UPGRADE.md
* Changed protocol to https for links to pecl.php.net in comments
* Changed us.php.net to secure.php.net (https) in comments
* Changed protocol to https for links to php.net in docs
* Changed www.php.net (http) to secure.php.net (https) in docs
* Changed protocol to https for links to pecl.php.net in docs
* Changed ru/jp.php.net to secure.php.net (https) in docs
Don't sure about russian guide: is this links meant to be for guide on russian, or not?
6 years ago
SilverFire - Dmitry Naumenko
a4b6b853b6
Fixed DateValidator to respect time when `format` is `php:U`
...
Fixes #15628
7 years ago
Klimov Paul
71c541773f
PHPDoc fix
7 years ago
Klimov Paul
65f6b59b35
`@inheritdoc` notation changed
7 years ago
Robert Korulczyk
5a8c3d537b
Enable `phpdoc_summary` rule in php-cs-fixer config ( #14675 )
...
* Enable `phpdoc_summary` rule in php-cs-fixer config.
* Fix case in "PHPDoc".
7 years ago
Robert Korulczyk
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
7 years ago
Robert Korulczyk
fe8a0a6a2e
Enable `no_useless_else` rule in php-cs-fixer ( #14420 )
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
Paul Klimov
40e5702b6b
Fixes #5108 `DateValidator` resets `$timestampAttribute` value on empty attribute ( #14242 )
...
* `yii\validators\DateValidator` now resets `$timestampAttribute` value on empty validated attribute value
* array-value test at `DateValidatorTest` restored
7 years ago
Carsten Brandt
5bbf372f85
cleanup some phpdoc
8 years ago
Sam
06967f9018
Fixes #13254 : Core validators no longer require Yii::$app to be set
8 years ago
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed `boolean` to `bool` and `integer` to `int` in phpdoc
8 years ago
Carsten Brandt
64ed8c9112
added note about timezone conversion to DateValidator
...
fixes #11692
8 years ago
Alexander Makarov
9b1b4fc5fa
Added missing phpdoc
8 years ago
cuiliang
c0df003ac0
merge from master
8 years ago
Carsten Brandt
84e9c40ca1
updated datevalidator docs
...
issue #11692
8 years ago
Carsten Brandt
00d506c398
completed implementation for #7177
...
added TYPE_TIME and default values for format to be chosen from
corresponding formatter variable
fixes #7177
close #10778
9 years ago
Robbert Jan
bb0ef88860
Enhancement for DateValidator ( #7177 , #10165 )
...
Added parameter to define if checking for 'date' or 'dateTime'
and updated parseDateValueIntl($value, $format) to facilitate
this validation based on defined type.
Added unit tests to for validating dateTime values when using short format validation.
close #10778
9 years ago
Klimov Paul
2cf7e35074
Check for timestamp at `yii\validators\DateValidator` improved
9 years ago
Klimov Paul
779b1e90ce
`yii\validators\DateValidator` skip validation for `timestampAttribute`, if it is already in correct format
9 years ago
Carsten Brandt
cd84f6c4c5
typo in DateValidator docs
9 years ago
╃巡洋艦㊣
586684b050
2.0.5 bf7edc5
9 years ago
Sebastian Chojniak
6ee285f321
unused imports removed
9 years ago
Alexander Mohorev
ae42a054bb
PSR-2 spaces, commas, etc
9 years ago
Alexander Mohorev
3ec0d94b4a
Remove unused variable
9 years ago
Carsten Brandt
23b31d13de
improve documentation of date validator
...
fixes #7514
10 years ago
Nikola Kovacs
3f24954659
Added min/max option to DateValidator.
...
Refs #7514
close #8115
10 years ago
Carsten Brandt
cf51d46a75
keep BC in internal implamentation of DateValidator
...
prepare for #8115
10 years ago
Carsten Brandt
1c41c2bd58
added DateValidator::$timestampAttributeTimeZone
...
this also makes DateValidator completly functional for validating values that include time.
issue #5053
10 years ago
Carsten Brandt
d60445c066
Add DateValidator::$timestampAttributeFormat
...
includes refactoring of the formatting method to fix some major timezone issues.
fixes #5053
close #6820
10 years ago
Carsten Brandt
ef662b57be
added missing `@since` annotations
10 years ago
Carsten Brandt
2a23520618
added documentation about handling date values
...
fixes #6530
fixes #5857
relates to #3973
10 years ago
Carsten Brandt
ba6bce4e2d
fixed DateValidator to work with multibyte strings
...
fixes #6835
10 years ago
Yoyon Cahyono
8b5e16ed56
compare position at which date value parsing ended with its string length to ensure validation when using php intl extension to parse date value
...
- fixes #6553
- Add additional testValidateAttributeICUFormat() test case using "2012-12-12foo" for "yyyy-MM-dd" date format
- close #6835
10 years ago
╃巡洋艦㊣
1468bd4d3d
version 2.0.1 84b42ab
10 years ago
Carsten Brandt
58becaceab
suppress warning thrown by IntlDateFormatter::parse()
...
Works around PHP Bug https://bugs.php.net/bug.php?id=68528
fixes #5962
10 years ago
Qiang Xue
d13d274d05
renamed $object to $model
10 years ago
Alexander Makarov
02622b6fe4
phpdoc fixes and additions
10 years ago
Carsten Brandt
3ff548a442
Refactored DateValidator to support ICU format
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Carsten Brandt
3a1e0f3a5c
property codestyle framework
10 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Qiang Xue
0c38655217
psr-4 move
11 years ago
Carsten Brandt
5eed149f24
fixed links in phpdoc
11 years ago
Qiang Xue
cb4a8c764c
Refactored validators.
11 years ago
Qiang Xue
b9f9b16536
Apply fix for #1003 to validateAttribute.
11 years ago
Alexander Makarov
c127171efb
Fixes #1003 : DateValidator returned true for invalid dates
11 years ago