A Summary object can be used to build complex, translatable summaries.
More...
A Summary object can be used to build complex, translatable summaries.
- Copyright
- GPL-2.0-or-later
- Author
- John Erling Blad
-
Daniel Kinzler
-
Tobias Gritschacher < tobia.nosp@m.s.gr.nosp@m.itsch.nosp@m.ache.nosp@m.r@wik.nosp@m.imed.nosp@m.ia.de >
◆ __construct()
Wikibase\Lib\Summary::__construct |
( |
|
$moduleName = null , |
|
|
|
$actionName = null , |
|
|
|
$languageCode = null , |
|
|
array |
$commentArgs = [] , |
|
|
array |
$summaryArgs = [] |
|
) |
| |
- Parameters
-
string | null | $moduleName | The module part of the auto comment |
string | null | $actionName | The action part of the auto comment |
string | null | $languageCode | The language code to use as the second auto comment argument |
array | $commentArgs | The arguments to the auto comment |
array | $summaryArgs | The arguments to the auto summary |
◆ addAutoCommentArgs()
Wikibase\Lib\Summary::addAutoCommentArgs |
( |
|
$args | ) |
|
Add auto comment arguments.
- Parameters
-
mixed | ...$args Parts to be stringed together |
◆ addAutoSummaryArgs()
Wikibase\Lib\Summary::addAutoSummaryArgs |
( |
|
$args | ) |
|
Add arguments to the summary part.
- Parameters
-
mixed | ...$args Parts to be stringed together |
◆ getAutoSummaryArgs()
Wikibase\Lib\Summary::getAutoSummaryArgs |
( |
| ) |
|
◆ getCommentArgs()
Wikibase\Lib\Summary::getCommentArgs |
( |
| ) |
|
◆ getLanguageCode()
Wikibase\Lib\Summary::getLanguageCode |
( |
| ) |
|
◆ getMessageKey()
Wikibase\Lib\Summary::getMessageKey |
( |
| ) |
|
Format the message key using the object-specific values.
- Returns
- string with a message key, or possibly an empty string
Implements Wikibase\Lib\FormatableSummary.
◆ getUserSummary()
Wikibase\Lib\Summary::getUserSummary |
( |
| ) |
|
◆ setAction()
Wikibase\Lib\Summary::setAction |
( |
|
$name | ) |
|
Set the action part of the autocomment.
- Parameters
-
◆ setAutoCommentArgs()
Wikibase\Lib\Summary::setAutoCommentArgs |
( |
array |
$args | ) |
|
- Parameters
-
array | $args | Parts to be used in auto comment |
◆ setAutoSummaryArgs()
Wikibase\Lib\Summary::setAutoSummaryArgs |
( |
array |
$args | ) |
|
- Parameters
-
array | $args | Parts to be used in auto summary |
◆ setLanguage()
Wikibase\Lib\Summary::setLanguage |
( |
|
$languageCode = null | ) |
|
Set the language code to use as the second autocomment argument.
- Parameters
-
string | null | $languageCode | |
◆ setUserSummary()
Wikibase\Lib\Summary::setUserSummary |
( |
|
$summary = null | ) |
|
- Parameters
-
string | null | $summary | The user-provided edit summary, or null if none was given. |
◆ $actionName
Wikibase\Lib\Summary::$actionName |
|
private |
◆ $commentArgs
Wikibase\Lib\Summary::$commentArgs |
|
private |
◆ $languageCode
Wikibase\Lib\Summary::$languageCode |
|
private |
◆ $moduleName
Wikibase\Lib\Summary::$moduleName |
|
private |
◆ $summaryArgs
Wikibase\Lib\Summary::$summaryArgs |
|
private |
◆ $userSummary
Wikibase\Lib\Summary::$userSummary |
|
private |
The documentation for this class was generated from the following file: