mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-06 14:19:23 +08:00
[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
This commit is contained in:
@ -60,7 +60,7 @@ class DateValidator extends Validator
|
||||
* This property influences the default value of [[format]] and also sets the correct behavior when [[format]] is one of the intl
|
||||
* short formats, `short`, `medium`, `long`, or `full`.
|
||||
*
|
||||
* This is only effective when the [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) is installed.
|
||||
* This is only effective when the [PHP intl extension](https://www.php.net/manual/en/book.intl.php) is installed.
|
||||
*
|
||||
* This property can be set to the following values:
|
||||
*
|
||||
@ -76,7 +76,7 @@ class DateValidator extends Validator
|
||||
* This can be a date time pattern as described in the [ICU manual](http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax).
|
||||
*
|
||||
* Alternatively this can be a string prefixed with `php:` representing a format that can be recognized by the PHP Datetime class.
|
||||
* Please refer to <https://secure.php.net/manual/en/datetime.createfromformat.php> on supported formats.
|
||||
* Please refer to <https://www.php.net/manual/en/datetime.createfromformat.php> on supported formats.
|
||||
*
|
||||
* If this property is not set, the default value will be obtained from `Yii::$app->formatter->dateFormat`, see [[\yii\i18n\Formatter::dateFormat]] for details.
|
||||
* Since version 2.0.8 the default value will be determined from different formats of the formatter class,
|
||||
@ -95,8 +95,8 @@ class DateValidator extends Validator
|
||||
* ```
|
||||
*
|
||||
* **Note:** the underlying date parsers being used vary dependent on the format. If you use the ICU format and
|
||||
* the [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) is installed, the [IntlDateFormatter](https://secure.php.net/manual/en/intldateformatter.parse.php)
|
||||
* is used to parse the input value. In all other cases the PHP [DateTime](https://secure.php.net/manual/en/datetime.createfromformat.php) class
|
||||
* the [PHP intl extension](https://www.php.net/manual/en/book.intl.php) is installed, the [IntlDateFormatter](https://www.php.net/manual/en/intldateformatter.parse.php)
|
||||
* is used to parse the input value. In all other cases the PHP [DateTime](https://www.php.net/manual/en/datetime.createfromformat.php) class
|
||||
* is used. The IntlDateFormatter has the advantage that it can parse international dates like `12. Mai 2015` or `12 мая 2014`, while the
|
||||
* PHP parser is limited to English only. The PHP parser however is more strict about the input format as it will not accept
|
||||
* `12.05.05` for the format `php:d.m.Y`, but the IntlDateFormatter will accept it for the format `dd.MM.yyyy`.
|
||||
@ -105,16 +105,16 @@ class DateValidator extends Validator
|
||||
public $format;
|
||||
/**
|
||||
* @var string the locale ID that is used to localize the date parsing.
|
||||
* This is only effective when the [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) is installed.
|
||||
* This is only effective when the [PHP intl extension](https://www.php.net/manual/en/book.intl.php) is installed.
|
||||
* If not set, the locale of the [[\yii\base\Application::formatter|formatter]] will be used.
|
||||
* See also [[\yii\i18n\Formatter::locale]].
|
||||
*/
|
||||
public $locale;
|
||||
/**
|
||||
* @var string the timezone to use for parsing date and time values.
|
||||
* This can be any value that may be passed to [date_default_timezone_set()](https://secure.php.net/manual/en/function.date-default-timezone-set.php)
|
||||
* This can be any value that may be passed to [date_default_timezone_set()](https://www.php.net/manual/en/function.date-default-timezone-set.php)
|
||||
* e.g. `UTC`, `Europe/Berlin` or `America/Chicago`.
|
||||
* Refer to the [php manual](https://secure.php.net/manual/en/timezones.php) for available timezones.
|
||||
* Refer to the [php manual](https://www.php.net/manual/en/timezones.php) for available timezones.
|
||||
* If this property is not set, [[\yii\base\Application::timeZone]] will be used.
|
||||
*/
|
||||
public $timeZone;
|
||||
@ -150,9 +150,9 @@ class DateValidator extends Validator
|
||||
/**
|
||||
* @var string the timezone to use when populating the [[timestampAttribute]] with [[timestampAttributeFormat]]. Defaults to `UTC`.
|
||||
*
|
||||
* This can be any value that may be passed to [date_default_timezone_set()](https://secure.php.net/manual/en/function.date-default-timezone-set.php)
|
||||
* This can be any value that may be passed to [date_default_timezone_set()](https://www.php.net/manual/en/function.date-default-timezone-set.php)
|
||||
* e.g. `UTC`, `Europe/Berlin` or `America/Chicago`.
|
||||
* Refer to the [php manual](https://secure.php.net/manual/en/timezones.php) for available timezones.
|
||||
* Refer to the [php manual](https://www.php.net/manual/en/timezones.php) for available timezones.
|
||||
*
|
||||
* If [[timestampAttributeFormat]] is not set, this property will be ignored.
|
||||
* @see timestampAttributeFormat
|
||||
|
@ -62,8 +62,8 @@ class FileValidator extends Validator
|
||||
* Defaults to null, meaning no limit.
|
||||
* Note, the size limit is also affected by `upload_max_filesize` and `post_max_size` INI setting
|
||||
* and the 'MAX_FILE_SIZE' hidden field value. See [[getSizeLimit()]] for details.
|
||||
* @see https://secure.php.net/manual/en/ini.core.php#ini.upload-max-filesize
|
||||
* @see https://secure.php.net/post-max-size
|
||||
* @see https://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize
|
||||
* @see https://www.php.net/post-max-size
|
||||
* @see getSizeLimit
|
||||
* @see tooBig for the customized message for a file that is too big.
|
||||
*/
|
||||
@ -77,7 +77,7 @@ class FileValidator extends Validator
|
||||
* > Note: The maximum number of files allowed to be uploaded simultaneously is
|
||||
* also limited with PHP directive `max_file_uploads`, which defaults to 20.
|
||||
*
|
||||
* @see https://secure.php.net/manual/en/ini.core.php#ini.max-file-uploads
|
||||
* @see https://www.php.net/manual/en/ini.core.php#ini.max-file-uploads
|
||||
* @see tooMany for the customized message when too many files are uploaded.
|
||||
*/
|
||||
public $maxFiles = 1;
|
||||
|
Reference in New Issue
Block a user