1 | <?php |
||
19 | abstract class Auto_Load_Next_Post_Settings_Page { |
||
20 | |||
21 | /** |
||
22 | * Setting page id. |
||
23 | * |
||
24 | * @access protected |
||
25 | * @var string $id |
||
26 | */ |
||
27 | protected $id = ''; |
||
28 | |||
29 | /** |
||
30 | * Setting page label. |
||
31 | * |
||
32 | * @access protected |
||
33 | * @var string $label |
||
34 | */ |
||
35 | protected $label = ''; |
||
36 | |||
37 | /** |
||
38 | * Constructor. |
||
39 | * |
||
40 | * @access public |
||
41 | * @since 1.4.10 |
||
42 | */ |
||
43 | public function __construct() { |
||
48 | |||
49 | /** |
||
50 | * Get settings page ID. |
||
51 | * |
||
52 | * @access public |
||
53 | * @since 1.4.10 |
||
54 | * @return string |
||
55 | */ |
||
56 | public function get_id() { |
||
59 | |||
60 | /** |
||
61 | * Get settings page label. |
||
62 | * |
||
63 | * @access public |
||
64 | * @since 1.4.10 |
||
65 | * @return string |
||
66 | */ |
||
67 | public function get_label() { |
||
70 | |||
71 | /** |
||
72 | * Add this page to settings. |
||
73 | * |
||
74 | * @access public |
||
75 | * @since 1.0.0 |
||
76 | * @param array $pages |
||
77 | * @return array $pages |
||
78 | */ |
||
79 | public function add_settings_page( $pages ) { |
||
84 | |||
85 | /** |
||
86 | * Add this settings page to plugin menu. |
||
87 | * |
||
88 | * @access public |
||
89 | * @since 1.0.0 |
||
90 | * @param array $pages |
||
91 | * @return array $pages |
||
92 | */ |
||
93 | public function add_menu_page( $pages ) { |
||
98 | |||
99 | /** |
||
100 | * Get settings array |
||
101 | * |
||
102 | * @access public |
||
103 | * @since 1.0.0 |
||
104 | * @return array |
||
105 | */ |
||
106 | public function get_settings() { |
||
109 | |||
110 | /** |
||
111 | * Output the settings. |
||
112 | * |
||
113 | * @access public |
||
114 | * @since 1.0.0 |
||
115 | */ |
||
116 | public function output() { |
||
121 | |||
122 | /** |
||
123 | * Save settings. |
||
124 | * |
||
125 | * @access public |
||
126 | * @since 1.0.0 |
||
127 | * @global $current_tab |
||
128 | */ |
||
129 | public function save() { |
||
136 | |||
137 | } // END class |
||
138 | |||
140 |