1 | <?php |
||
14 | class Give_Email_Notification_Table extends WP_List_Table { |
||
15 | /** |
||
16 | * @var Give_Email_Notifications $email_notifications |
||
17 | * @since 2.0 |
||
18 | * @access private |
||
19 | */ |
||
20 | private $email_notifications; |
||
21 | |||
22 | |||
23 | /** |
||
24 | * Number of email notifications per page |
||
25 | * |
||
26 | * @since 2.0 |
||
27 | * @access private |
||
28 | * @var int |
||
29 | */ |
||
30 | private $per_page = - 1; |
||
31 | |||
32 | /** |
||
33 | * Give_Email_Notification_Table constructor. |
||
34 | * |
||
35 | * @since 2.0 |
||
36 | * @access public |
||
37 | */ |
||
38 | public function __construct() { |
||
46 | |||
47 | |||
48 | /** |
||
49 | * Get table columns. |
||
50 | * |
||
51 | * @since 2.0 |
||
52 | * @access public |
||
53 | * |
||
54 | * @return array |
||
55 | */ |
||
56 | public function get_columns() { |
||
70 | |||
71 | /** |
||
72 | * Get name column. |
||
73 | * |
||
74 | * @since 2.0 |
||
75 | * @access public |
||
76 | * |
||
77 | * @param Give_Email_Notification $email |
||
78 | * |
||
79 | * @return string |
||
80 | */ |
||
81 | public function column_name( $email ) { |
||
97 | |||
98 | /** |
||
99 | * Get recipient column. |
||
100 | * |
||
101 | * @since 2.0 |
||
102 | * @access public |
||
103 | * |
||
104 | * @param Give_Email_Notification $email |
||
105 | * |
||
106 | * @return string |
||
107 | */ |
||
108 | public function column_recipient( $email ) { |
||
125 | |||
126 | /** |
||
127 | * Get status column. |
||
128 | * |
||
129 | * @since 2.0 |
||
130 | * @access public |
||
131 | * |
||
132 | * @param Give_Email_Notification $email |
||
133 | * |
||
134 | * @return string |
||
135 | */ |
||
136 | public function column_cb( $email ) { |
||
163 | |||
164 | |||
165 | /** |
||
166 | * Get email_type column. |
||
167 | * |
||
168 | * @since 2.0 |
||
169 | * @access public |
||
170 | * |
||
171 | * @param Give_Email_Notification $email |
||
172 | * |
||
173 | * @return string |
||
174 | */ |
||
175 | public function column_email_type( Give_Email_Notification $email ) { |
||
178 | |||
179 | /** |
||
180 | * Get setting column. |
||
181 | * |
||
182 | * @since 2.0 |
||
183 | * @access public |
||
184 | * |
||
185 | * @param Give_Email_Notification $email |
||
186 | * |
||
187 | * @return string |
||
188 | */ |
||
189 | public function column_setting( Give_Email_Notification $email ) { |
||
199 | |||
200 | |||
201 | /** |
||
202 | * Print row actions. |
||
203 | * |
||
204 | * @since 2.0 |
||
205 | * @access private |
||
206 | * |
||
207 | * @param Give_Email_Notification $email |
||
208 | * |
||
209 | * @return array |
||
210 | */ |
||
211 | private function get_row_actions( $email ) { |
||
231 | |||
232 | |||
233 | /** |
||
234 | * Prepare email notifications |
||
235 | * |
||
236 | * @since 2.0 |
||
237 | * @access public |
||
238 | */ |
||
239 | public function prepare_items() { |
||
262 | |||
263 | /** |
||
264 | * Message to be displayed when there are no items |
||
265 | * |
||
266 | * @since 2.0 |
||
267 | * @access public |
||
268 | */ |
||
269 | public function no_items() { |
||
272 | |||
273 | /** |
||
274 | * Get primary column. |
||
275 | * |
||
276 | * @since 2,0 |
||
277 | * @access public |
||
278 | * |
||
279 | * @return string Name of the default primary column. |
||
280 | */ |
||
281 | public function get_primary_column_name() { |
||
284 | } |
||
285 |