1 | <?php |
||
16 | class admin_controller |
||
17 | { |
||
18 | /** @var \phpbb\db\driver\driver_interface */ |
||
19 | protected $db; |
||
20 | |||
21 | /** @var \phpbb\template\template */ |
||
22 | protected $template; |
||
23 | |||
24 | /** @var \phpbb\user */ |
||
25 | protected $user; |
||
26 | |||
27 | /** @var \phpbb\request\request */ |
||
28 | protected $request; |
||
29 | |||
30 | /** @var string ads_table */ |
||
31 | protected $ads_table; |
||
32 | |||
33 | /** @var string Custom form action */ |
||
34 | protected $u_action; |
||
35 | |||
36 | /** |
||
37 | * Constructor |
||
38 | * |
||
39 | * @param \phpbb\db\driver\driver_interface $db DB driver interface |
||
40 | * @param \phpbb\template\template $template Template object |
||
41 | * @param \phpbb\user $user User object |
||
42 | * @param \phpbb\request\request $request Request object |
||
43 | * @param string $ads_table Ads table |
||
44 | */ |
||
45 | public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\template\template $template, \phpbb\user $user, \phpbb\request\request $request, $ads_table) |
||
53 | |||
54 | /** |
||
55 | * Set page url |
||
56 | * |
||
57 | * @param string $u_action Custom form action |
||
58 | * @return void |
||
59 | */ |
||
60 | public function set_page_url($u_action) |
||
64 | |||
65 | /** |
||
66 | * Load module-specific language |
||
67 | * |
||
68 | * @return void |
||
69 | */ |
||
70 | public function load_lang() |
||
74 | |||
75 | /** |
||
76 | * Get ACP page title for Ads module |
||
77 | * |
||
78 | * @return string Language string for Ads ACP module |
||
79 | */ |
||
80 | public function get_page_title() |
||
84 | |||
85 | /** |
||
86 | * Get action |
||
87 | * |
||
88 | * @return string Ads module action |
||
89 | */ |
||
90 | public function get_action() |
||
94 | |||
95 | /** |
||
96 | * Process 'add' action |
||
97 | * |
||
98 | * @return void |
||
99 | */ |
||
100 | public function action_add() |
||
152 | |||
153 | /** |
||
154 | * Display the ads |
||
155 | * |
||
156 | * @return void |
||
157 | */ |
||
158 | public function list_ads() |
||
183 | } |
||
184 |