1 | <?php namespace EmailLog\Core\UI\Page; |
||
12 | abstract class BasePage implements Loadie { |
||
13 | |||
14 | /** |
||
15 | * Current page. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $page; |
||
20 | |||
21 | /** |
||
22 | * Current screen. |
||
23 | * |
||
24 | * @var \WP_Screen |
||
25 | */ |
||
26 | protected $screen; |
||
27 | |||
28 | /** |
||
29 | * Register page. |
||
30 | * |
||
31 | * @return void |
||
32 | */ |
||
33 | abstract public function register_page(); |
||
34 | |||
35 | /** |
||
36 | * Setup hooks related to pages. |
||
37 | * |
||
38 | * @inheritdoc |
||
39 | */ |
||
40 | 1 | public function load() { |
|
43 | |||
44 | /** |
||
45 | * Render help tab. |
||
46 | * |
||
47 | * TODO: Change links used in this function. |
||
48 | */ |
||
49 | public function render_help_tab() { |
||
77 | |||
78 | /** |
||
79 | * Render admin page footer. |
||
80 | */ |
||
81 | protected function render_page_footer() { |
||
89 | |||
90 | /** |
||
91 | * Return the WP_Screen object for the current page's handle. |
||
92 | * |
||
93 | * @return \WP_Screen Screen object. |
||
94 | */ |
||
95 | public function get_screen() { |
||
102 | } |
||
103 |