Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | use MediaWiki\User\User; |
| 4 | |
| 5 | /** |
| 6 | * This is a hook handler interface, see docs/Hooks.md in core. |
| 7 | * Use the hook name "CentralNoticeCampaignChange" to register handlers implementing this interface. |
| 8 | * |
| 9 | * @stable to implement |
| 10 | * @ingroup Hooks |
| 11 | */ |
| 12 | interface CentralNoticeCampaignChangeHook { |
| 13 | /** |
| 14 | * @param string $action 'created', 'modified', or 'removed' |
| 15 | * @param string $time Database depending timestamp of the modification |
| 16 | * @param string $campaignName Name of the campaign |
| 17 | * @param User $user User causing the change |
| 18 | * @param array $beginSettings array of campaign settings before changes |
| 19 | * @param array $endSettings array of campaign settings after changes |
| 20 | * @param string $summary Change summary provided by the user |
| 21 | */ |
| 22 | public function onCentralNoticeCampaignChange( |
| 23 | $action, |
| 24 | $time, |
| 25 | $campaignName, |
| 26 | $user, |
| 27 | $beginSettings, |
| 28 | $endSettings, |
| 29 | $summary |
| 30 | ): void; |
| 31 | } |