1 | <?php |
||
17 | class listener implements EventSubscriberInterface |
||
18 | { |
||
19 | /** @var \phpbb\config\config */ |
||
20 | protected $config; |
||
21 | |||
22 | /** @var \phpbb\controller\helper */ |
||
23 | protected $helper; |
||
24 | |||
25 | /** @var \phpbb\template\template */ |
||
26 | protected $template; |
||
27 | |||
28 | /** @var \phpbb\user */ |
||
29 | protected $user; |
||
30 | |||
31 | /** |
||
32 | * Constructor |
||
33 | * |
||
34 | * @param \phpbb\config\config $config Config object |
||
35 | * @param \phpbb\controller\helper $helper Helper object |
||
36 | * @param \phpbb\template\template $template Template object |
||
37 | * @param \phpbb\user $user User object |
||
38 | * @access public |
||
39 | */ |
||
40 | public function __construct(\phpbb\config\config $config, \phpbb\controller\helper $helper, \phpbb\template\template $template, \phpbb\user $user) |
||
47 | |||
48 | /** |
||
49 | * Assign functions defined in this class to event listeners in the core |
||
50 | * |
||
51 | * @return array |
||
52 | * @static |
||
53 | * @access public |
||
54 | */ |
||
55 | public static function getSubscribedEvents() |
||
62 | |||
63 | /** |
||
64 | * Send AJAX URL to template |
||
65 | * |
||
66 | * @return null |
||
67 | * @access public |
||
68 | */ |
||
69 | public function page_header() |
||
76 | |||
77 | /** |
||
78 | * Add field to acp_board load settings page |
||
79 | * |
||
80 | * @param object $event The event object |
||
81 | * @return null |
||
82 | * @access public |
||
83 | */ |
||
84 | public function acp_board_config_edit_add($event) |
||
102 | |||
103 | private function array_insert(&$array, $position, $insert) |
||
120 | |||
121 | } |
||
122 |