Wikibase
MediaWiki Wikibase extension
|
A helper class for parsing and prefetching terms of entities mentioned in edit summaries. More...
Public Member Functions | |
__construct (TermBuffer $termBuffer) | |
prefetchTermsForMentionedEntities ( $rows, array $languageCodes, array $termTypes) | |
extractSummaryMentions ( $result) | |
Public Attributes | |
const | ENTITY_ID_SUMMARY_REGEXP = '/\[\[(\S*)([PQ][1-9]\d*)\]\]/' |
Matching links to properties in in edit summaries, such as "[[Q23]]", "[[Property:P123]]" or "[[wdbeta:Special:EntityPage/P123]]". | |
Private Member Functions | |
getCommentText ( $revisionRow) | |
Private Attributes | |
TermBuffer | $termBuffer |
BasicEntityIdParser | $entityIdParser |
A helper class for parsing and prefetching terms of entities mentioned in edit summaries.
Wikibase\Repo\Hooks\SummaryParsingPrefetchHelper::__construct | ( | TermBuffer | $termBuffer | ) |
Wikibase\Repo\Hooks\SummaryParsingPrefetchHelper::extractSummaryMentions | ( | $result | ) |
IResultWrapper | \stdClass[] | RevisionRecord[] | $result |
|
private |
\stdClass | RevisionRecord | null | $revisionRow |
Wikibase\Repo\Hooks\SummaryParsingPrefetchHelper::prefetchTermsForMentionedEntities | ( | $rows, | |
array | $languageCodes, | ||
array | $termTypes ) |
IResultWrapper | \stdClass[] | RevisionRecord[] | $rows | |
array | $languageCodes | |
array | $termTypes |
|
private |
|
private |
const Wikibase\Repo\Hooks\SummaryParsingPrefetchHelper::ENTITY_ID_SUMMARY_REGEXP = '/\[\[(\S*)([PQ][1-9]\d*)\]\]/' |
Matching links to properties in in edit summaries, such as "[[Q23]]", "[[Property:P123]]" or "[[wdbeta:Special:EntityPage/P123]]".