1 | <?php namespace EmailLog\Core\UI\Page; |
||
11 | class LogListPage extends BasePage { |
||
12 | /** |
||
13 | * @var LogListTable |
||
14 | */ |
||
15 | protected $log_list_table; |
||
16 | |||
17 | /** |
||
18 | * Page slug. |
||
19 | */ |
||
20 | const PAGE_SLUG = 'email-log'; |
||
21 | |||
22 | /** |
||
23 | * Nonce Field. |
||
24 | */ |
||
25 | const LOG_LIST_ACTION_NONCE_FIELD = 'el-log-list-nonce-field'; |
||
26 | |||
27 | /** |
||
28 | * Nonce name. |
||
29 | */ |
||
30 | const LOG_LIST_ACTION_NONCE = 'el-log-list-nonce'; |
||
31 | |||
32 | /** |
||
33 | * Capability to manage email logs. |
||
34 | * |
||
35 | * @since 2.1.0 |
||
36 | */ |
||
37 | const CAPABILITY = 'manage_email_logs'; |
||
38 | |||
39 | /** |
||
40 | * Setup hooks. |
||
41 | */ |
||
42 | 1 | public function load() { |
|
49 | |||
50 | /** |
||
51 | * Register page. |
||
52 | * |
||
53 | * @inheritdoc |
||
54 | */ |
||
55 | public function register_page() { |
||
86 | |||
87 | /** |
||
88 | * Render page. |
||
89 | */ |
||
90 | public function render_page() { |
||
119 | |||
120 | /** |
||
121 | * Load page. |
||
122 | */ |
||
123 | public function load_page() { |
||
138 | |||
139 | /** |
||
140 | * Gets the per page option. |
||
141 | * |
||
142 | * @return int Number of logs a user wanted to be displayed in a page. |
||
143 | */ |
||
144 | public function get_per_page() { |
||
156 | |||
157 | /** |
||
158 | * Get nonce args. |
||
159 | * |
||
160 | * @return array Nonce args. |
||
161 | */ |
||
162 | public function get_nonce_args() { |
||
167 | |||
168 | /** |
||
169 | * Get TableManager instance. |
||
170 | * |
||
171 | * @return TableManager TableManager instance. |
||
172 | */ |
||
173 | public function get_table_manager() { |
||
178 | |||
179 | /** |
||
180 | * Saves Screen options. |
||
181 | * |
||
182 | * @since Genesis |
||
183 | * |
||
184 | * @param bool|int $status Screen option value. Default false to skip. |
||
185 | * @param string $option The option name. |
||
186 | * @param int $value The number of rows to use. |
||
187 | * |
||
188 | * @return bool|int |
||
189 | */ |
||
190 | public function save_screen_options( $status, $option, $value ) { |
||
197 | |||
198 | /** |
||
199 | * Loads assets on the Log List page. |
||
200 | * |
||
201 | * @since 2.0.0 |
||
202 | * |
||
203 | * @param string $hook The current admin page. |
||
204 | */ |
||
205 | public function load_view_logs_assets( $hook ) { |
||
223 | } |
||
224 |