1 | <?php |
||
12 | final class Admin |
||
13 | { |
||
14 | use Singleton; |
||
15 | |||
16 | /** |
||
17 | * @traitDoc |
||
18 | */ |
||
19 | public function initializes() |
||
23 | |||
24 | /** |
||
25 | * All WordPress hooks come here |
||
26 | * |
||
27 | * @since 1.0.0 |
||
28 | * @return void |
||
29 | */ |
||
30 | public function hooks() { |
||
35 | |||
36 | /** |
||
37 | * Enqueue styles and scripts |
||
38 | * |
||
39 | * @since 1.0.0 |
||
40 | * @return void |
||
41 | */ |
||
42 | public function wpdfi_enqueue_scripts() { |
||
45 | |||
46 | /** |
||
47 | * Add new setting menu |
||
48 | * |
||
49 | * @since 1.0.0 |
||
50 | * @return void |
||
51 | */ |
||
52 | public function setting_menu() { |
||
55 | |||
56 | /** |
||
57 | * Render layout for wpdfi setting page |
||
58 | * |
||
59 | * @since 1.0.0 |
||
60 | * @return void |
||
61 | */ |
||
62 | public function render_layout() { |
||
71 | |||
72 | /** |
||
73 | * Retrieve tabs content |
||
74 | * |
||
75 | * @since 1.0.0 |
||
76 | * @return array |
||
77 | */ |
||
78 | private function _get_tabs() { |
||
84 | |||
85 | /** |
||
86 | * Get the current Admin tab |
||
87 | * |
||
88 | * @since 1.0.0 |
||
89 | * @return string |
||
90 | */ |
||
91 | private function _get_current_tab() { |
||
94 | |||
95 | /** |
||
96 | * Retrieve default tab |
||
97 | * |
||
98 | * @since 1.0.0 |
||
99 | * @return string |
||
100 | */ |
||
101 | private function _get_default_tab() { |
||
104 | |||
105 | /** |
||
106 | * Get main setting options |
||
107 | * |
||
108 | * @since 1.0.0 |
||
109 | * @return mixed |
||
110 | */ |
||
111 | private function _get_options() { |
||
114 | |||
115 | /** |
||
116 | * Get the name of current layout, it will be default or exist, depending on settings option |
||
117 | * |
||
118 | * @since 1.0.0 |
||
119 | * @return string |
||
120 | */ |
||
121 | private function _get_layout_name() { |
||
124 | |||
125 | /** |
||
126 | * Update main setting options |
||
127 | * |
||
128 | * @param array $options |
||
129 | * @since 1.0.0 |
||
130 | * @return boolean |
||
131 | */ |
||
132 | private function _update_options($options) { |
||
135 | |||
136 | /** |
||
137 | * Update wpdfi settings option |
||
138 | * |
||
139 | * @since 1.0.0 |
||
140 | * @return void |
||
141 | */ |
||
142 | public function update_settings() { |
||
167 | |||
168 | /** |
||
169 | * Get single setting option. |
||
170 | * |
||
171 | * @param string $option_key |
||
172 | * @param string $option_detail |
||
173 | * @since 1.0.0 |
||
174 | * @return mixed(string/array) |
||
175 | */ |
||
176 | public function get_option($option_key, $option_detail = null) { |
||
180 | |||
181 | } |