PluginProbe ʕ •ᴥ•ʔ
JetFormBuilder — Dynamic Blocks Form Builder / 3.2.3
JetFormBuilder — Dynamic Blocks Form Builder v3.2.3
3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.1.0 2.1.1 2.1.10 2.1.11 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 3.0.0 3.0.0.1 3.0.0.2 3.0.0.3 3.0.1 3.0.1.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.0.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.2 3.2.3 3.3.0 3.3.1 3.3.2 3.3.3 3.3.3.1 3.3.4 3.3.4.1 3.3.4.2 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.5.1 3.4.5.2 3.4.6 3.4.7 3.4.7.1 3.5.0 3.5.1 3.5.1.1 3.5.1.2 3.5.2 3.5.2.1 3.5.3 3.5.4 3.5.5 3.5.6 3.5.6.1 3.5.6.2 3.5.6.3 3.6.0
jetformbuilder / modules / gateways / meta-boxes / payer-box.php
jetformbuilder / modules / gateways / meta-boxes Last commit date
actions 2 years ago columns 2 years ago payer-box.php 2 years ago payer-shipping-box.php 2 years ago payment-actions-box.php 2 years ago payment-details-box.php 2 years ago payment-info-for-record.php 2 years ago
payer-box.php
52 lines
1 <?php
2
3
4 namespace JFB_Modules\Gateways\Meta_Boxes;
5
6 use Jet_Form_Builder\Admin\Exceptions\Empty_Box_Exception;
7 use Jet_Form_Builder\Admin\Exceptions\Not_Found_Page_Exception;
8 use Jet_Form_Builder\Admin\Single_Pages\Meta_Boxes\Base_List_Box;
9 use Jet_Form_Builder\Exceptions\Query_Builder_Exception;
10 use JFB_Modules\Gateways\Meta_Boxes\Columns\Payer_Email_Column;
11 use JFB_Modules\Gateways\Meta_Boxes\Columns\Payer_First_Name_Column;
12 use JFB_Modules\Gateways\Meta_Boxes\Columns\Payer_Last_Name_Column;
13 use JFB_Modules\Gateways\Query_Views\Payment_View;
14
15 // If this file is called directly, abort.
16 if ( ! defined( 'WPINC' ) ) {
17 die;
18 }
19
20 class Payer_Box extends Base_List_Box {
21
22 public function get_title(): string {
23 return __( 'Payer Info', 'jet-form-builder' );
24 }
25
26 public function get_columns(): array {
27 return array(
28 'first_name' => new Payer_First_Name_Column(),
29 'last_name' => new Payer_Last_Name_Column(),
30 'email' => new Payer_Email_Column(),
31 );
32 }
33
34 /**
35 * @return array
36 * @throws Empty_Box_Exception
37 */
38 public function get_list(): array {
39 try {
40 $payment = Payment_View::findById( $this->get_id() );
41
42 return $payment['payer'] ?? array();
43 } catch ( Query_Builder_Exception $exception ) {
44 throw new Empty_Box_Exception(
45 esc_html( $exception->getMessage() ),
46 // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped
47 ...$exception->get_additional()
48 );
49 }
50 }
51 }
52