PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.9
GiveWP – Donation Plugin and Fundraising Platform v4.16.9
4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 All 255 releases
give / src / Donors / ListTable / DonorsListTable.php

DonorsListTable.php in GiveWP – Donation Plugin and Fundraising Platform 4.16.9, at src/Donors/ListTable/DonorsListTable.php

65 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Give\Donors\ListTable;
4
5 use Give\Donors\ListTable\Columns\DateCreatedColumn;
6 use Give\Donors\ListTable\Columns\DonationRevenueColumn;
7 use Give\Donors\ListTable\Columns\DonationCountColumn;
8 use Give\Donors\ListTable\Columns\DonorInformationColumn;
9 use Give\Donors\ListTable\Columns\DonorTypeColumn;
10 use Give\Donors\ListTable\Columns\IdColumn;
11 use Give\Donors\ListTable\Columns\LatestDonationColumn;
12 use Give\Framework\ListTable\ListTable;
13
14 /**
15 * @since 2.24.0
16 */
17 class DonorsListTable extends ListTable
18 {
19 /**
20 * @since 2.24.0
21 *
22 * @inheritDoc
23 */
24 public function id(): string
25 {
26 return 'donors';
27 }
28
29 /**
30 * @since 4.12.0 Reorder DonorType column
31 * @since 2.24.0
32 *
33 * @inheritDoc
34 */
35 public function getDefaultColumns(): array
36 {
37 return [
38 new IdColumn(),
39 new DonorInformationColumn(),
40 new DonorTypeColumn(),
41 new DonationRevenueColumn(),
42 new DonationCountColumn(),
43 new LatestDonationColumn(),
44 new DateCreatedColumn(),
45 ];
46 }
47
48 /**
49 * @since 4.12.0 Remove date created column
50 * @since 2.24.0
51 *
52 * @inheritDoc
53 */
54 public function getDefaultVisibleColumns(): array
55 {
56 return [
57 DonorInformationColumn::getId(),
58 DonationRevenueColumn::getId(),
59 DonationCountColumn::getId(),
60 LatestDonationColumn::getId(),
61 DonorTypeColumn::getId(),
62 ];
63 }
64 }
65