PluginProbe
JetFormBuilder — Dynamic Blocks Form Builder / 3.6.6
JetFormBuilder — Dynamic Blocks Form Builder v3.6.6
3.6.6.1 3.6.6 3.6.5.4 3.6.5.3 3.6.5.2 3.6.5.1 3.6.5 3.6.4.2 3.6.4.1 3.6.4 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 All 134 releases
jetformbuilder / modules / gateways / meta-boxes / columns / export-csv-column.php

export-csv-column.php in JetFormBuilder — Dynamic Blocks Form Builder 3.6.6, at modules/gateways/meta-boxes/columns/export-csv-column.php

38 lines 799 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3
4 namespace JFB_Modules\Gateways\Meta_Boxes\Columns;
5
6 use Jet_Form_Builder\Admin\Pages\Pages_Manager;
7 use Jet_Form_Builder\Exceptions\Repository_Exception;
8 use JFB_Modules\Gateways\Module;
9
10 // If this file is called directly, abort.
11 if ( ! defined( 'WPINC' ) ) {
12 die;
13 }
14
15 class Export_Csv_Column extends \JFB_Modules\Form_Record\Admin\View_Columns\Export_Csv_Column {
16
17 /**
18 * @param array $record
19 *
20 * @return array
21 */
22 public function get_value( array $record = array() ) {
23 $record_id = (int) $record['id'];
24
25 return array(
26 'text' => __( 'Export in CSV', 'jet-form-builder' ),
27 'href' => Pages_Manager::instance()->get_action_url(
28 'payments-export',
29 array(
30 'id' => $record_id,
31 )
32 ),
33 'target' => '_blank',
34 'type' => 'media-spreadsheet',
35 );
36 }
37 }
38