Formatter for rendering the details of a TimeValue (most useful for diffs) in HTML.
More...
|
| __construct (?FormatterOptions $options, ValueFormatter $timeFormatter) |
|
| format ( $value) |
|
Formatter for rendering the details of a TimeValue (most useful for diffs) in HTML.
- See also
- \Wikibase\Lib\Formatters\HtmlTimeFormatter
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
-
Thiemo Kreuz
◆ __construct()
Wikibase\Lib\Formatters\TimeDetailsFormatter::__construct |
( |
?FormatterOptions | $options, |
|
|
ValueFormatter | $timeFormatter ) |
- Parameters
-
FormatterOptions | null | $options | |
ValueFormatter | $timeFormatter | A TimeValue formatter that outputs a single line of HTML, suitable for headings. |
◆ format()
Wikibase\Lib\Formatters\TimeDetailsFormatter::format |
( |
| $value | ) |
|
- See also
- ValueFormatter::format
Generates HTML representing the details of a TimeValue, as an itemized list.
- Parameters
-
- Exceptions
-
- Returns
- string HTML
◆ getAmountAndPrecisionHtml()
Wikibase\Lib\Formatters\TimeDetailsFormatter::getAmountAndPrecisionHtml |
( |
| $precision, |
|
|
| $amount = 1 ) |
|
private |
- Parameters
-
int | $precision | One of the TimeValue::PRECISION_... constants. |
int | $amount | |
- Returns
- string HTML
◆ getCalendarModelHtml()
Wikibase\Lib\Formatters\TimeDetailsFormatter::getCalendarModelHtml |
( |
| $calendarModel | ) |
|
|
private |
- Parameters
-
- Returns
- string HTML
◆ getFieldHtml()
Wikibase\Lib\Formatters\TimeDetailsFormatter::getFieldHtml |
( |
| $fieldName, |
|
|
| $valueHtml ) |
|
private |
- Parameters
-
string | $fieldName | |
string | $valueHtml | |
- Returns
- string HTML
◆ getTimestampHtml()
Wikibase\Lib\Formatters\TimeDetailsFormatter::getTimestampHtml |
( |
| $timestamp | ) |
|
|
private |
- Parameters
-
- Returns
- string HTML
◆ getTimeZoneHtml()
Wikibase\Lib\Formatters\TimeDetailsFormatter::getTimeZoneHtml |
( |
| $timezone | ) |
|
|
private |
- Parameters
-
- Returns
- string HTML
◆ msg()
Wikibase\Lib\Formatters\TimeDetailsFormatter::msg |
( |
| $key | ) |
|
|
private |
◆ $options
Wikibase\Lib\Formatters\TimeDetailsFormatter::$options |
|
private |
◆ $timeFormatter
Wikibase\Lib\Formatters\TimeDetailsFormatter::$timeFormatter |
|
private |
The documentation for this class was generated from the following file: