A helper class for parsing and prefetching properties from summaries for federated properties.
More...
|
const | PROPERTY_SUMMARY_REGEXP = '/\[\[(\S+)(P[1-9]\d*)\]\]/' |
| Matching links to properties in in edit summaries, such as "[[Property:P123]]" or "[[wdbeta:Special:EntityPage/P123]]".
|
|
A helper class for parsing and prefetching properties from summaries for federated properties.
- Copyright
- GPL-2.0-or-later
◆ __construct()
Wikibase\Repo\FederatedProperties\SummaryParsingPrefetchHelper::__construct |
( |
PrefetchingTermLookup |
$prefetchingLookup | ) |
|
◆ extractSummaryProperties()
Wikibase\Repo\FederatedProperties\SummaryParsingPrefetchHelper::extractSummaryProperties |
( |
|
$result | ) |
|
- Parameters
-
IResultWrapper | array | $result | |
- Returns
- PropertyId[]
◆ getCommentText()
Wikibase\Repo\FederatedProperties\SummaryParsingPrefetchHelper::getCommentText |
( |
|
$revisionRow | ) |
|
|
private |
◆ prefetchFederatedProperties()
Wikibase\Repo\FederatedProperties\SummaryParsingPrefetchHelper::prefetchFederatedProperties |
( |
|
$rows, |
|
|
array |
$languageCodes, |
|
|
array |
$termTypes |
|
) |
| |
- Parameters
-
IResultWrapper | array | $rows | |
array | $languageCodes | |
array | $termTypes | |
◆ $prefetchingLookup
Wikibase\Repo\FederatedProperties\SummaryParsingPrefetchHelper::$prefetchingLookup |
|
private |
◆ PROPERTY_SUMMARY_REGEXP
const Wikibase\Repo\FederatedProperties\SummaryParsingPrefetchHelper::PROPERTY_SUMMARY_REGEXP = '/\[\[(\S+)(P[1-9]\d*)\]\]/' |
Matching links to properties in in edit summaries, such as "[[Property:P123]]" or "[[wdbeta:Special:EntityPage/P123]]".
The documentation for this class was generated from the following file: