|
| __construct (EventSerializer $eventSerializer, PageEntitySerializer $pageEntitySerializer, string $stream=self::STREAM) |
|
| getStream () |
|
| toArray (WikiPage $wikiPage, array $weightedTags, ?bool $revBased=null, ?string $dt=null) |
|
| toSetEvent (WikiPage $wikiPage, array $set, ?bool $revBased=null, ?string $dt=null) |
|
| toClearEvent (WikiPage $wikiPage, array $clear, ?bool $revBased=null, ?string $dt=null) |
|
|
const | SCHEMA = '/development/cirrussearch/page_weighted_tags_change/1.0.0' |
|
const | STREAM = 'mediawiki.cirrussearch.page_weighted_tags_change.rc0' |
|
◆ __construct()
CirrusSearch\EventBusWeightedTagSerializer::__construct |
( |
EventSerializer | $eventSerializer, |
|
|
PageEntitySerializer | $pageEntitySerializer, |
|
|
string | $stream = self::STREAM ) |
- Parameters
-
EventSerializer | $eventSerializer | |
PageEntitySerializer | $pageEntitySerializer | |
string | $stream | |
◆ getStream()
CirrusSearch\EventBusWeightedTagSerializer::getStream |
( |
| ) |
|
◆ toArray()
CirrusSearch\EventBusWeightedTagSerializer::toArray |
( |
WikiPage | $wikiPage, |
|
|
array | $weightedTags, |
|
|
?bool | $revBased = null, |
|
|
?string | $dt = null ) |
- Parameters
-
WikiPage | $wikiPage | page to tag |
array | $weightedTags | weighted_tags payload, see schema |
bool | null | $revBased | rev_based flag |
string | null | $dt | event timestamp |
- Returns
- array encoded event
- See also
- self::SCHEMA
◆ toClearEvent()
CirrusSearch\EventBusWeightedTagSerializer::toClearEvent |
( |
WikiPage | $wikiPage, |
|
|
array | $clear, |
|
|
?bool | $revBased = null, |
|
|
?string | $dt = null ) |
- Parameters
-
WikiPage | $wikiPage | |
string[] | $clear | prefixes to be cleared |
bool | null | $revBased | rev_based flag |
string | null | $dt | event timestamp |
- Returns
- array
◆ toSetEvent()
CirrusSearch\EventBusWeightedTagSerializer::toSetEvent |
( |
WikiPage | $wikiPage, |
|
|
array | $set, |
|
|
?bool | $revBased = null, |
|
|
?string | $dt = null ) |
- Parameters
-
WikiPage | $wikiPage | |
array[] | $set | prefix => [ [ 'tag' => string ] | [ 'tag' => string, 'score' => int ] ] map |
bool | null | $revBased | rev_based flag |
string | null | $dt | event timestamp |
- Returns
- array
The documentation for this class was generated from the following file:
- includes/EventBusWeightedTagSerializer.php