PluginProbe ʕ •ᴥ•ʔ
Check & Log Email – Easy Email Testing & Mail logging / 2.0.3
Check & Log Email – Easy Email Testing & Mail logging v2.0.3
1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 2.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.13.1 2.0.13.2 2.0.14 2.0.2 2.0.3 2.0.4 2.0.5 2.0.5.1 2.0.6 2.0.7 2.0.8 2.0.9 trunk 0.5.7 0.6.0 0.6.1 0.6.2 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.12.1 1.0.13 1.0.13.1 1.0.2 1.0.3
check-email / include / Core / UI / Page / Check_Email_BasePage.php
check-email / include / Core / UI / Page Last commit date
partials 1 year ago Check_Email_BasePage.php 1 year ago Check_Email_Error_Tracker_list.php 1 year ago Check_Email_Log_List_Page.php 1 year ago Check_Email_Settings_Page.php 1 year ago Check_Email_Status_Page.php 1 year ago Check_Email_Wizard_Page.php 1 year ago
Check_Email_BasePage.php
56 lines
1 <?php namespace CheckEmail\Core\UI\Page;
2
3 use CheckEmail\Core\Loadie;
4
5 defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
6
7 /**
8 * Base class for all Check Email Log admin pages.
9 */
10
11 abstract class Check_Email_BasePage implements Loadie {
12
13 /**
14 * Current page.
15 *
16 * @var string
17 */
18 protected $page;
19
20 /**
21 * Current screen.
22 *
23 * @var \WP_Screen
24 */
25 protected $screen;
26
27 /**
28 * Register page.
29 *
30 * @return void
31 */
32 abstract public function register_page();
33
34 /**
35 * Setup hooks related to pages.
36 *
37 * @inheritdoc
38 */
39 public function load() {
40 add_action( 'admin_menu', array( $this, 'register_page' ) );
41 }
42
43 /**
44 * Return the WP_Screen object for the current page's handle.
45 *
46 * @return \WP_Screen Screen object.
47 */
48 public function get_screen() {
49 if ( ! isset( $this->screen ) ) {
50 $this->screen = \WP_Screen::get( $this->page );
51 }
52
53 return $this->screen;
54 }
55 }
56