1<?php
2/**
3 * DokuWiki Plugin Matrix Notifier (Action Component)
4 *
5 * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
6 *
7 * @author Wilhelm/ JPTV.club
8 */
9if (!defined('DOKU_INC')) { die (); }
10
11class action_plugin_matrixnotifier extends \dokuwiki\Extension\ActionPlugin
12{
13	public function register(Doku_Event_Handler $controller)
14	{
15		$controller->register_hook('COMMON_WIKIPAGE_SAVE', 'AFTER', $this, '_handle');
16	}
17
18	public function _handle(Doku_Event $event, $param)
19	{
20		$helper = plugin_load('helper', 'matrixnotifier');
21		$helper->sendUpdate($event);
22	}
23}
24