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 ) { |
||
184 | |||
185 | /** |
||
186 | * Get setting column. |
||
187 | * |
||
188 | * @since 2.0 |
||
189 | * @access public |
||
190 | * |
||
191 | * @param Give_Email_Notification $email |
||
192 | * |
||
193 | * @return string |
||
194 | */ |
||
195 | public function column_setting( Give_Email_Notification $email ) { |
||
205 | |||
206 | |||
207 | /** |
||
208 | * Print row actions. |
||
209 | * |
||
210 | * @since 2.0 |
||
211 | * @access private |
||
212 | * |
||
213 | * @param Give_Email_Notification $email |
||
214 | * |
||
215 | * @return array |
||
216 | */ |
||
217 | private function get_row_actions( $email ) { |
||
237 | |||
238 | |||
239 | /** |
||
240 | * Prepare email notifications |
||
241 | * |
||
242 | * @since 2.0 |
||
243 | * @access public |
||
244 | */ |
||
245 | public function prepare_items() { |
||
283 | |||
284 | /** |
||
285 | * Message to be displayed when there are no items |
||
286 | * |
||
287 | * @since 2.0 |
||
288 | * @access public |
||
289 | */ |
||
290 | public function no_items() { |
||
293 | |||
294 | /** |
||
295 | * Get primary column. |
||
296 | * |
||
297 | * @since 2,0 |
||
298 | * @access public |
||
299 | * |
||
300 | * @return string Name of the default primary column. |
||
301 | */ |
||
302 | public function get_primary_column_name() { |
||
305 | } |
||
306 |