Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Client\Hooks\FormatAutocommentsHandler Class Reference

Handler for the FormatAutocomments hook, implementing localized formatting for machine readable autocomments generated by SummaryFormatter. More...

+ Inheritance diagram for Wikibase\Client\Hooks\FormatAutocommentsHandler:
+ Collaboration diagram for Wikibase\Client\Hooks\FormatAutocommentsHandler:

Public Member Functions

 __construct (Language $contentLanguage, string $repoSiteId)
 
 onFormatAutocomments (&$comment, $pre, $auto, $post, $title, $local, $wikiId)
 

Static Public Member Functions

static factory (Language $contentLanguage, SettingsArray $clientSettings)
 

Private Attributes

Language $contentLanguage
 
string $repoSiteId
 

Detailed Description

Handler for the FormatAutocomments hook, implementing localized formatting for machine readable autocomments generated by SummaryFormatter.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\Hooks\FormatAutocommentsHandler::__construct ( Language $contentLanguage,
string $repoSiteId )

Member Function Documentation

◆ factory()

static Wikibase\Client\Hooks\FormatAutocommentsHandler::factory ( Language $contentLanguage,
SettingsArray $clientSettings )
static

◆ onFormatAutocomments()

Wikibase\Client\Hooks\FormatAutocommentsHandler::onFormatAutocomments ( & $comment,
$pre,
$auto,
$post,
$title,
$local,
$wikiId )

Member Data Documentation

◆ $contentLanguage

Language Wikibase\Client\Hooks\FormatAutocommentsHandler::$contentLanguage
private

◆ $repoSiteId

string Wikibase\Client\Hooks\FormatAutocommentsHandler::$repoSiteId
private

The documentation for this class was generated from the following file: