HEX
Server: LiteSpeed
System: Linux server315.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: globfdxw (6114)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/globfdxw/www/wp-content/plugins/give/src/Donors/ListTable/DonorsListTable.php
<?php

namespace Give\Donors\ListTable;

use Give\Donors\ListTable\Columns\DateCreatedColumn;
use Give\Donors\ListTable\Columns\DonationRevenueColumn;
use Give\Donors\ListTable\Columns\DonationCountColumn;
use Give\Donors\ListTable\Columns\DonorInformationColumn;
use Give\Donors\ListTable\Columns\DonorTypeColumn;
use Give\Donors\ListTable\Columns\IdColumn;
use Give\Donors\ListTable\Columns\LatestDonationColumn;
use Give\Framework\ListTable\ListTable;

/**
 * @since 2.24.0
 */
class DonorsListTable extends ListTable
{
    /**
     * @since 2.24.0
     *
     * @inheritDoc
     */
    public function id(): string
    {
        return 'donors';
    }

    /**
     * @since 4.12.0 Reorder DonorType column
     * @since 2.24.0
     *
     * @inheritDoc
     */
    public function getDefaultColumns(): array
    {
        return [
            new IdColumn(),
            new DonorInformationColumn(),
            new DonorTypeColumn(),
            new DonationRevenueColumn(),
            new DonationCountColumn(),
            new LatestDonationColumn(),
            new DateCreatedColumn(),
        ];
    }

    /**
     * @since 4.12.0 Remove date created column
     * @since 2.24.0
     *
     * @inheritDoc
     */
    public function getDefaultVisibleColumns(): array
    {
        return [
            DonorInformationColumn::getId(),
            DonationRevenueColumn::getId(),
            DonationCountColumn::getId(),
            LatestDonationColumn::getId(),
            DonorTypeColumn::getId(),
        ];
    }
}