Skip to content

Commit

Permalink
yiisoft#197 fix references
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkart committed Jul 22, 2019
1 parent 9a8b4db commit a2fe880
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion src/helpers/BaseIpHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class BaseIpHelper
* Gets the IP version. Does not perform IP address validation.
*
* @param string $ip the valid IPv4 or IPv6 address.
* @return int {@see IPV4} or {@see IPV6}
* @return int {@see BaseIpHelper::IPV4} or {@see BaseIpHelper::IPV6}
*/
public static function getIpVersion($ip)
{
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* Nearly all of the methods in this class allow setting additional html attributes for the html
* tags they generate. You can specify, for example, `class`, `style` or `id` for an html element
* using the `$options` parameter. See the documentation of the {@see tag()} method for more details.
* using the `$options` parameter. See the documentation of the {@see BaseHtml::tag()} method for more details.
*
* For more details and usage information on Html, see the [guide article on html helpers](guide:helper-html).
*
Expand Down
64 changes: 32 additions & 32 deletions src/i18n/Formatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
*
* The formatting methods provided by Formatter are all named in the form of `asXyz()`.
* The behavior of some of them may be configured via the properties of Formatter. For example,
* by configuring {@see dateFormat}, one may control how {@see asDate()} formats the value into a date string.
* by configuring {@see Formatter::dateFormat}, one may control how {@see Formatter::asDate()} formats the value into a date string.
*
* The Formatter class is designed to format values according to a {@see locale}. For this feature to work
* The Formatter class is designed to format values according to a {@see Formatter::_locale}. For this feature to work
* the [PHP intl extension](http://php.net/manual/en/book.intl.php) has to be installed.
* Most of the methods however work also if the PHP intl extension is not installed by providing
* a fallback implementation. Without intl month and day names are in English only.
Expand Down Expand Up @@ -73,14 +73,14 @@ class Formatter extends Component
/**
* @var string the text to be displayed when formatting a `null` value.
* Defaults to `'<span class="not-set">(not set)</span>'`, where `(not set)`
* will be translated according to {@see locale}.
* will be translated according to {@see _locale}.
*/
protected $_nullDisplay;
/**
* @var array the text to be displayed when formatting a boolean value. The first element corresponds
* to the text displayed for `false`, the second element for `true`.
* Defaults to `['No', 'Yes']`, where `Yes` and `No`
* will be translated according to {@see locale}.
* will be translated according to {@see _locale}.
*/
protected $_booleanFormat;
/**
Expand Down Expand Up @@ -174,7 +174,7 @@ class Formatter extends Component
*
* To use an alternative calendar like for example the [Jalali calendar](https://en.wikipedia.org/wiki/Jalali_calendar),
* set this property to `\IntlDateFormatter::TRADITIONAL`.
* The calendar must then be specified in the {@see locale}, for example for the persian calendar the configuration for the formatter would be:
* The calendar must then be specified in the {@see _locale}, for example for the persian calendar the configuration for the formatter would be:
*
* ```php
* 'formatter' => [
Expand All @@ -198,13 +198,13 @@ class Formatter extends Component
public $calendar;
/**
* @var string the character displayed as the decimal point when formatting a number.
* If not set, the decimal separator corresponding to {@see locale} will be used.
* If not set, the decimal separator corresponding to {@see _locale} will be used.
* If [PHP intl extension](http://php.net/manual/en/book.intl.php) is not available, the default value is '.'.
*/
public $decimalSeparator;
/**
* @var string the character displayed as the thousands separator (also called grouping separator) character when formatting a number.
* If not set, the thousand separator corresponding to {@see locale} will be used.
* If not set, the thousand separator corresponding to {@see _locale} will be used.
* If [PHP intl extension](http://php.net/manual/en/book.intl.php) is not available, the default value is ','.
*/
public $thousandSeparator;
Expand Down Expand Up @@ -267,8 +267,8 @@ class Formatter extends Component
public $numberFormatterSymbols = [];
/**
* @var string the 3-letter ISO 4217 currency code indicating the default currency to use for {@see asCurrency}.
* If not set, the currency code corresponding to {@see locale} will be used.
* Note that in this case the {@see locale} has to be specified with a country code, e.g. `en-US` otherwise it
* If not set, the currency code corresponding to {@see _locale} will be used.
* Note that in this case the {@see _locale} has to be specified with a country code, e.g. `en-US` otherwise it
* is not possible to determine the default currency.
*/
public $currencyCode;
Expand All @@ -278,10 +278,10 @@ class Formatter extends Component
*/
public $sizeFormatBase = 1024;
/**
* @var string default system of measure units. Defaults to {@see UNIT_SYSTEM_METRIC}.
* @var string default system of measure units. Defaults to {@see Formatter::UNIT_SYSTEM_METRIC}.
* Possible values:
* - {@see UNIT_SYSTEM_METRIC}
* - {@see UNIT_SYSTEM_IMPERIAL}
* - {@see Formatter::UNIT_SYSTEM_METRIC}
* - {@see Formatter::UNIT_SYSTEM_IMPERIAL}
*
* @see asLength
* @see asWeight
Expand Down Expand Up @@ -521,7 +521,7 @@ public function format($value, $format)
/**
* Formats the value as is without any formatting.
* This method simply returns back the parameter without any format.
* The only exception is a `null` value which will be formatted using {@see nullDisplay}.
* The only exception is a `null` value which will be formatted using {@see _nullDisplay}.
* @param mixed $value the value to be formatted.
* @return string the formatted result.
*/
Expand Down Expand Up @@ -648,7 +648,7 @@ public function asUrl($value, $options = [])
* Formats the value as a boolean.
* @param mixed $value the value to be formatted.
* @return string the formatted result.
* @see booleanFormat
* @see _booleanFormat
*/
public function asBoolean($value)
{
Expand All @@ -674,8 +674,8 @@ public function asBoolean($value)
* - a PHP [DateTime](http://php.net/manual/en/class.datetime.php) object. You may set the time zone
* for the DateTime object to specify the source time zone.
*
* The formatter will convert date values according to {@see timeZone} before formatting it.
* If no timezone conversion should be performed, you need to set {@see defaultTimeZone} and {@see timeZone} to the same value.
* The formatter will convert date values according to {@see _timeZone} before formatting it.
* If no timezone conversion should be performed, you need to set {@see defaultTimeZone} and {@see _timeZone} to the same value.
* Also no conversion will be performed on values that have no time information, e.g. `"2017-06-05"`.
*
* @param string $format the format used to convert the value into a date string.
Expand Down Expand Up @@ -712,8 +712,8 @@ public function asDate($value, $format = null)
* - a PHP [DateTime](http://php.net/manual/en/class.datetime.php) object. You may set the time zone
* for the DateTime object to specify the source time zone.
*
* The formatter will convert date values according to {@see timeZone} before formatting it.
* If no timezone conversion should be performed, you need to set {@see defaultTimeZone} and {@see timeZone} to the same value.
* The formatter will convert date values according to {@see _timeZone} before formatting it.
* If no timezone conversion should be performed, you need to set {@see defaultTimeZone} and {@see _timeZone} to the same value.
*
* @param string $format the format used to convert the value into a date string.
* If null, {@see timeFormat} will be used.
Expand Down Expand Up @@ -749,8 +749,8 @@ public function asTime($value, $format = null)
* - a PHP [DateTime](http://php.net/manual/en/class.datetime.php) object. You may set the time zone
* for the DateTime object to specify the source time zone.
*
* The formatter will convert date values according to {@see timeZone} before formatting it.
* If no timezone conversion should be performed, you need to set {@see defaultTimeZone} and {@see timeZone} to the same value.
* The formatter will convert date values according to {@see _timeZone} before formatting it.
* If no timezone conversion should be performed, you need to set {@see defaultTimeZone} and {@see _timeZone} to the same value.
*
* @param string $format the format used to convert the value into a date string.
* If null, {@see datetimeFormat} will be used.
Expand Down Expand Up @@ -1168,7 +1168,7 @@ public function asInteger($value, $options = [], $textOptions = [])
* @param int $decimals the number of digits after the decimal point.
* If not given, the number of digits depends in the input value and is determined based on
* `NumberFormatter::MIN_FRACTION_DIGITS` and `NumberFormatter::MAX_FRACTION_DIGITS`, which can be configured
* using {@see $numberFormatterOptions}.
* using {@see numberFormatterOptions}.
* If the PHP intl extension is not available, the default value is `2`.
* If you want consistent behavior between environments where intl is available and not, you should explicitly
* specify a value here.
Expand Down Expand Up @@ -1264,7 +1264,7 @@ public function asPercent($value, $decimals = null, $options = [], $textOptions
* @param int $decimals the number of digits after the decimal point.
* If not given, the number of digits depends in the input value and is determined based on
* `NumberFormatter::MIN_FRACTION_DIGITS` and `NumberFormatter::MAX_FRACTION_DIGITS`, which can be configured
* using {@see $numberFormatterOptions}.
* using {@see numberFormatterOptions}.
* If the [PHP intl extension](http://php.net/manual/en/book.intl.php) is not available, the default value depends on your PHP configuration.
* If you want consistent behavior between environments where intl is available and not, you should explicitly
* specify a value here.
Expand Down Expand Up @@ -1532,7 +1532,7 @@ public function asSize($value, $decimals = null, $options = [], $textOptions = [
/**
* Formats the value as a length in human readable form for example `12 meters`.
* Check properties {@see baseUnits} if you need to change unit of value as the multiplier
* of the smallest unit and {@see systemOfUnits} to switch between {@see UNIT_SYSTEM_METRIC} or {@see UNIT_SYSTEM_IMPERIAL}.
* of the smallest unit and {@see systemOfUnits} to switch between {@see Formatter::UNIT_SYSTEM_METRIC} or {@see Formatter::UNIT_SYSTEM_IMPERIAL}.
*
* @param float|int $value value to be formatted.
* @param int $decimals the number of digits after the decimal point.
Expand All @@ -1555,7 +1555,7 @@ public function asLength($value, $decimals = null, $numberOptions = [], $textOpt
* This is the short form of {@see asLength}.
*
* Check properties {@see baseUnits} if you need to change unit of value as the multiplier
* of the smallest unit and {@see systemOfUnits} to switch between {@see UNIT_SYSTEM_METRIC} or {@see UNIT_SYSTEM_IMPERIAL}.
* of the smallest unit and {@see systemOfUnits} to switch between {@see Formatter::UNIT_SYSTEM_METRIC} or {@see Formatter::UNIT_SYSTEM_IMPERIAL}.
*
* @param float|int $value value to be formatted.
* @param int $decimals the number of digits after the decimal point.
Expand All @@ -1576,7 +1576,7 @@ public function asShortLength($value, $decimals = null, $options = [], $textOpti
/**
* Formats the value as a weight in human readable form for example `12 kilograms`.
* Check properties {@see baseUnits} if you need to change unit of value as the multiplier
* of the smallest unit and {@see systemOfUnits} to switch between {@see UNIT_SYSTEM_METRIC} or {@see UNIT_SYSTEM_IMPERIAL}.
* of the smallest unit and {@see systemOfUnits} to switch between {@see Formatter::UNIT_SYSTEM_METRIC} or {@see Formatter::UNIT_SYSTEM_IMPERIAL}.
*
* @param float|int $value value to be formatted.
* @param int $decimals the number of digits after the decimal point.
Expand All @@ -1598,7 +1598,7 @@ public function asWeight($value, $decimals = null, $options = [], $textOptions =
* This is the short form of {@see asWeight}.
*
* Check properties {@see baseUnits} if you need to change unit of value as the multiplier
* of the smallest unit and {@see systemOfUnits} to switch between {@see UNIT_SYSTEM_METRIC} or {@see UNIT_SYSTEM_IMPERIAL}.
* of the smallest unit and {@see systemOfUnits} to switch between {@see Formatter::UNIT_SYSTEM_METRIC} or {@see Formatter::UNIT_SYSTEM_IMPERIAL}.
*
* @param float|int $value value to be formatted.
* @param int $decimals the number of digits after the decimal point.
Expand All @@ -1616,12 +1616,12 @@ public function asShortWeight($value, $decimals = null, $options = [], $textOpti
}

/**
* @param string $unitType one of {@see UNIT_WEIGHT}, {@see UNIT_LENGTH}
* @param string $unitFormat one of {@see FORMAT_WIDTH_SHORT}, {@see FORMAT_WIDTH_LONG}
* @param string $unitType one of {@see Formatter::UNIT_WEIGHT}, {@see Formatter::UNIT_LENGTH}
* @param string $unitFormat one of {@see Formatter::FORMAT_WIDTH_SHORT}, {@see Formatter::FORMAT_WIDTH_LONG}
* @param float|int $value to be formatted
* @param float $baseUnit unit of value as the multiplier of the smallest unit. When `null`, property {@see baseUnits}
* will be used to determine base unit using $unitType and $unitSystem.
* @param string $unitSystem either {@see UNIT_SYSTEM_METRIC} or {@see UNIT_SYSTEM_IMPERIAL}. When `null`, property {@see systemOfUnits} will be used.
* @param string $unitSystem either {@see Formatter::UNIT_SYSTEM_METRIC} or {@see Formatter::UNIT_SYSTEM_IMPERIAL}. When `null`, property {@see systemOfUnits} will be used.
* @param int $decimals the number of digits after the decimal point.
* @param array $options optional configuration for the number formatter. This parameter will be merged with {@see numberFormatterOptions}.
* @param array $textOptions optional configuration for the number formatter. This parameter will be merged with {@see numberFormatterTextOptions}.
Expand Down Expand Up @@ -1660,9 +1660,9 @@ private function formatUnit($unitType, $unitFormat, $value, $baseUnit, $unitSyst
}

/**
* @param string $unitType one of {@see UNIT_WEIGHT}, {@see UNIT_LENGTH}
* @param string $unitFormat one of {@see FORMAT_WIDTH_SHORT}, {@see FORMAT_WIDTH_LONG}
* @param string $system either {@see UNIT_SYSTEM_METRIC} or {@see UNIT_SYSTEM_IMPERIAL}. When `null`, property {@see systemOfUnits} will be used.
* @param string $unitType one of {@see Formatter::UNIT_WEIGHT}, {@see Formatter::UNIT_LENGTH}
* @param string $unitFormat one of {@see Formatter::FORMAT_WIDTH_SHORT}, {@see Formatter::FORMAT_WIDTH_LONG}
* @param string $system either {@see Formatter::UNIT_SYSTEM_METRIC} or {@see Formatter::UNIT_SYSTEM_IMPERIAL}. When `null`, property {@see systemOfUnits} will be used.
* @param int $position internal position of size unit
* @return string
* @throws InvalidConfigException when INTL is not installed or does not contain required information
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/MessageSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* A message source stores message translations in some persistent storage.
*
* Child classes should override {@see loadMessages()} to provide translated messages.
* Child classes should override {@see MessageSource::loadMessages()} to provide translated messages.
*
* @author Qiang Xue <[email protected]>
* @since 2.0
Expand Down
4 changes: 2 additions & 2 deletions src/i18n/PhpMessageSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* - Each PHP script contains one array which stores the message translations in one particular
* language and for a single message category;
* - Each PHP script is saved as a file named as "{@see basePath}/LanguageID/CategoryName.php";
* - Each PHP script is saved as a file named as "{@see PhpMessageSource::basePath}/LanguageID/CategoryName.php";
* - Within each PHP script, the message translations are returned as an array like the following:
*
* ```php
Expand All @@ -27,7 +27,7 @@
* ];
* ```
*
* You may use {@see fileMap} to customize the association between category names and the file names.
* You may use {@see PhpMessageSource::fileMap} to customize the association between category names and the file names.
*
* @author Qiang Xue <[email protected]>
* @since 2.0
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @property MessageFormatter $messageFormatter The message formatter to be used to format message via ICU
* message format. Note that the type of this property differs in getter and setter. See
* {@see getMessageFormatter()} and {@see setMessageFormatter()} for details.
* {@see Translator::getMessageFormatter()} and {@see Translator::setMessageFormatter()} for details.
*
* @author Qiang Xue <[email protected]>
* @since 2.0
Expand Down

0 comments on commit a2fe880

Please sign in to comment.