| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
namespace JFB_Modules\Gateways\Query_Views; |
| 5 |
|
| 6 |
use Jet_Form_Builder\Db_Queries\Views\View_Base; |
| 7 |
use JFB_Modules\Gateways\Db_Models\Payer_Model; |
| 8 |
use JFB_Modules\Gateways\Db_Models\Payment_Model; |
| 9 |
|
| 10 |
// If this file is called directly, abort. |
| 11 |
if ( ! defined( 'WPINC' ) ) { |
| 12 |
die; |
| 13 |
} |
| 14 |
|
| 15 |
class Payer_View extends View_Base { |
| 16 |
|
| 17 |
protected $order_by = array( |
| 18 |
array( |
| 19 |
'column' => 'id', |
| 20 |
'sort' => self::FROM_HIGH_TO_LOW, |
| 21 |
), |
| 22 |
); |
| 23 |
|
| 24 |
public function table(): string { |
| 25 |
return Payer_Model::table(); |
| 26 |
} |
| 27 |
|
| 28 |
public function select_columns(): array { |
| 29 |
return array_keys( Payer_Model::schema() ); |
| 30 |
} |
| 31 |
} |
| 32 |
|