|
Wikibase
MediaWiki Wikibase extension
|
Implements initial population (priming) for the wb_changes_subscription table, based on the wb_items_per_site. More...
Public Member Functions | |
| __construct (RepoDomainDb $db, EntityIdComposer $entityIdComposer, $tableName, $batchSize, $verbosity='standard') | |
| setProgressReporter (MessageReporter $progressReporter) | |
| setExceptionHandler (ExceptionHandler $exceptionHandler) | |
| fillSubscriptionTable (?ItemId $startItem=null) | |
| Fill the subscription table with rows based on entries in wb_items_per_site. | |
Private Member Functions | |
| processSubscriptionBatch (&$continuation=[]) | |
| insertSubscriptionBatch (IDatabase $db, array $subscriptionsPerItem) | |
| getSubscriptionsPerItemBatch (IDatabase $db, &$continuation=[]) | |
| getSubscriptionsPerItemFromRows (IResultWrapper $res, &$continuation=[]) | |
| makeSubscriptionRows ( $itemId, array $subscribers) | |
| Returns a list of rows for insertion, using Database's multi-row insert mechanism. | |
Private Attributes | |
| $db | |
| $entityIdComposer | |
| $tableName | |
| $batchSize | |
| $exceptionHandler | |
| $progressReporter | |
| $verbosity | |
Implements initial population (priming) for the wb_changes_subscription table, based on the wb_items_per_site.
Any wiki linked via the wb_items_per_site table will be considered a subscriber.
| Wikibase\Repo\Store\Sql\ChangesSubscriptionTableBuilder::__construct | ( | RepoDomainDb | $db, |
| EntityIdComposer | $entityIdComposer, | ||
| $tableName, | |||
| $batchSize, | |||
| $verbosity = 'standard' ) |
| RepoDomainDb | $db | |
| EntityIdComposer | $entityIdComposer | |
| string | $tableName | |
| int | $batchSize | |
| string | $verbosity | Either 'standard' or 'verbose' |
| InvalidArgumentException |
| Wikibase\Repo\Store\Sql\ChangesSubscriptionTableBuilder::fillSubscriptionTable | ( | ?ItemId | $startItem = null | ) |
Fill the subscription table with rows based on entries in wb_items_per_site.
| ItemId | null | $startItem | The item to start with. |
|
private |
| IDatabase | $db | |
| array | &$continuation |
|
private |
| IResultWrapper | $res | A result set with the ips_item_id and ips_site_id fields set for each row. |
| array | &$continuation | Single item ID => site ID pair or empty. |
|
private |
| IDatabase | $db | |
| array[] | $subscriptionsPerItem |
|
private |
Returns a list of rows for insertion, using Database's multi-row insert mechanism.
Each row is represented as [ $itemId, $subscriber ].
| string | $itemId | |
| string[] | $subscribers |
|
private |
| array | &$continuation |
| Wikibase\Repo\Store\Sql\ChangesSubscriptionTableBuilder::setExceptionHandler | ( | ExceptionHandler | $exceptionHandler | ) |
| Wikibase\Repo\Store\Sql\ChangesSubscriptionTableBuilder::setProgressReporter | ( | MessageReporter | $progressReporter | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |