Formats a changes line for including changes from the Wikibase repo in the client's recent changes, watchlist and related changes special pages.
More...
|
| __construct (RepoLinker $repoLinker) |
|
| format (ExternalChange $externalChange, Title $title, int $count, string $flag, Language $lang, User $user) |
|
| formatDataForEnhancedLine (array &$data, ExternalChange $externalChange, Title $title, int $count, Language $lang, User $user) |
|
| formatDataForEnhancedBlockLine (array &$data, ExternalChange $externalChange, Title $title, int $count, Language $lang, User $user) |
|
|
| formatCommonDataForEnhancedLine (array &$data, ExternalChange $externalChange, Title $title, Language $lang, User $user) |
|
| getFormattedCommentHTML (RevisionData $rev, Title $title, string $siteId, User $user) |
|
| wrapCommentBlockHTML (string $commentHtml) |
|
| getChangeSeparatorHTML () |
|
| formatTimestampHTML (string $timestamp, Language $lang, User $user) |
|
| formatUserLinksHTML (string $userName, int $visibility, Language $lang, User $user) |
|
| formatIpUserLinksHTML (array $links) |
| @fixme use shared bits of formatting from ChangesList and OldChangesList
|
|
| formatRegisteredUserLinksHTML (array $links, Language $lang) |
| @fixme use shared bits of formatting from ChangesList and OldChangesList
|
|
| formatEntityLinkHTML (EntityId $entityId) |
|
| formatDeletionLogLinkHTML () |
|
| formatDiffHistHTML (EntityId $entityId, RevisionData $rev, int $count, Language $lang) |
|
| buildPermanentLinkHTML (EntityId $entityId, RevisionData $rev, Language $lang, User $user) |
|
| buildDiffLinkHTML (EntityId $entityId, RevisionData $rev, $count) |
|
| buildHistoryLinkHTML (EntityId $entityId, RevisionData $rev) |
|
| buildUserLinkHTML (string $userName) |
|
| buildUserContribsLinkHTML (string $userName, ?string $text=null) |
|
| buildUserTalkLinkHTML (string $userName) |
|
| buildUserLinksHTML (string $userName) |
|
Formats a changes line for including changes from the Wikibase repo in the client's recent changes, watchlist and related changes special pages.
- Copyright
- GPL-2.0-or-later
- Author
- Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
-
Daniel Kinzler
◆ __construct()
Wikibase\Client\RecentChanges\ChangeLineFormatter::__construct |
( |
RepoLinker |
$repoLinker | ) |
|
◆ buildDiffLinkHTML()
Wikibase\Client\RecentChanges\ChangeLineFormatter::buildDiffLinkHTML |
( |
EntityId |
$entityId, |
|
|
RevisionData |
$rev, |
|
|
|
$count |
|
) |
| |
|
private |
◆ buildHistoryLinkHTML()
Wikibase\Client\RecentChanges\ChangeLineFormatter::buildHistoryLinkHTML |
( |
EntityId |
$entityId, |
|
|
RevisionData |
$rev |
|
) |
| |
|
private |
◆ buildPermanentLinkHTML()
Wikibase\Client\RecentChanges\ChangeLineFormatter::buildPermanentLinkHTML |
( |
EntityId |
$entityId, |
|
|
RevisionData |
$rev, |
|
|
Language |
$lang, |
|
|
User |
$user |
|
) |
| |
|
private |
◆ buildUserContribsLinkHTML()
Wikibase\Client\RecentChanges\ChangeLineFormatter::buildUserContribsLinkHTML |
( |
string |
$userName, |
|
|
?string |
$text = null |
|
) |
| |
|
private |
◆ buildUserLinkHTML()
Wikibase\Client\RecentChanges\ChangeLineFormatter::buildUserLinkHTML |
( |
string |
$userName | ) |
|
|
private |
◆ buildUserLinksHTML()
Wikibase\Client\RecentChanges\ChangeLineFormatter::buildUserLinksHTML |
( |
string |
$userName | ) |
|
|
private |
- Parameters
-
- Returns
- string[] List of HTML links
◆ buildUserTalkLinkHTML()
Wikibase\Client\RecentChanges\ChangeLineFormatter::buildUserTalkLinkHTML |
( |
string |
$userName | ) |
|
|
private |
◆ format()
Wikibase\Client\RecentChanges\ChangeLineFormatter::format |
( |
ExternalChange |
$externalChange, |
|
|
Title |
$title, |
|
|
int |
$count, |
|
|
string |
$flag, |
|
|
Language |
$lang, |
|
|
User |
$user |
|
) |
| |
◆ formatCommonDataForEnhancedLine()
Wikibase\Client\RecentChanges\ChangeLineFormatter::formatCommonDataForEnhancedLine |
( |
array & |
$data, |
|
|
ExternalChange |
$externalChange, |
|
|
Title |
$title, |
|
|
Language |
$lang, |
|
|
User |
$user |
|
) |
| |
|
private |
◆ formatDataForEnhancedBlockLine()
Wikibase\Client\RecentChanges\ChangeLineFormatter::formatDataForEnhancedBlockLine |
( |
array & |
$data, |
|
|
ExternalChange |
$externalChange, |
|
|
Title |
$title, |
|
|
int |
$count, |
|
|
Language |
$lang, |
|
|
User |
$user |
|
) |
| |
◆ formatDataForEnhancedLine()
Wikibase\Client\RecentChanges\ChangeLineFormatter::formatDataForEnhancedLine |
( |
array & |
$data, |
|
|
ExternalChange |
$externalChange, |
|
|
Title |
$title, |
|
|
int |
$count, |
|
|
Language |
$lang, |
|
|
User |
$user |
|
) |
| |
◆ formatDeletionLogLinkHTML()
Wikibase\Client\RecentChanges\ChangeLineFormatter::formatDeletionLogLinkHTML |
( |
| ) |
|
|
private |
◆ formatDiffHistHTML()
Wikibase\Client\RecentChanges\ChangeLineFormatter::formatDiffHistHTML |
( |
EntityId |
$entityId, |
|
|
RevisionData |
$rev, |
|
|
int |
$count, |
|
|
Language |
$lang |
|
) |
| |
|
private |
◆ formatEntityLinkHTML()
Wikibase\Client\RecentChanges\ChangeLineFormatter::formatEntityLinkHTML |
( |
EntityId |
$entityId | ) |
|
|
private |
◆ formatIpUserLinksHTML()
Wikibase\Client\RecentChanges\ChangeLineFormatter::formatIpUserLinksHTML |
( |
array |
$links | ) |
|
|
private |
@fixme use shared bits of formatting from ChangesList and OldChangesList
- Parameters
-
- Returns
- string[] array of HTML
◆ formatRegisteredUserLinksHTML()
Wikibase\Client\RecentChanges\ChangeLineFormatter::formatRegisteredUserLinksHTML |
( |
array |
$links, |
|
|
Language |
$lang |
|
) |
| |
|
private |
@fixme use shared bits of formatting from ChangesList and OldChangesList
- Parameters
-
string[] | $links | |
Language | $lang | |
- Returns
- string[] array of HTML
◆ formatTimestampHTML()
Wikibase\Client\RecentChanges\ChangeLineFormatter::formatTimestampHTML |
( |
string |
$timestamp, |
|
|
Language |
$lang, |
|
|
User |
$user |
|
) |
| |
|
private |
◆ formatUserLinksHTML()
Wikibase\Client\RecentChanges\ChangeLineFormatter::formatUserLinksHTML |
( |
string |
$userName, |
|
|
int |
$visibility, |
|
|
Language |
$lang, |
|
|
User |
$user |
|
) |
| |
|
private |
- Parameters
-
string | $userName | |
int | $visibility | |
Language | $lang | |
User | $user | |
- Returns
- string[] array of HTML
◆ getChangeSeparatorHTML()
Wikibase\Client\RecentChanges\ChangeLineFormatter::getChangeSeparatorHTML |
( |
| ) |
|
|
private |
◆ getFormattedCommentHTML()
Wikibase\Client\RecentChanges\ChangeLineFormatter::getFormattedCommentHTML |
( |
RevisionData |
$rev, |
|
|
Title |
$title, |
|
|
string |
$siteId, |
|
|
User |
$user |
|
) |
| |
|
private |
◆ wrapCommentBlockHTML()
Wikibase\Client\RecentChanges\ChangeLineFormatter::wrapCommentBlockHTML |
( |
string |
$commentHtml | ) |
|
|
private |
◆ $repoLinker
Wikibase\Client\RecentChanges\ChangeLineFormatter::$repoLinker |
|
private |
The documentation for this class was generated from the following file: