PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 6.2.9
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v6.2.9
6.2.14 6.2.13 6.2.12 6.2.10 6.2.11 6.2.9 6.2.8 6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 3.6.22 3.6.31 3.6.40 3.6.41 3.6.42 3.6.50 3.6.51 3.6.60 3.6.61 3.6.62 3.6.64 3.6.65 All 196 releases
fluentform / app / Modules / Entries / Export.php

Export.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 6.2.9, at app/Modules/Entries/Export.php

40 lines 910 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace FluentForm\App\Modules\Entries;
4
5 use FluentForm\App\Services\Transfer\TransferService;
6 use FluentForm\Framework\Foundation\Application;
7
8 /**
9 * @deprecated Use TransferService::exportEntries() instead.
10 * @todo Remove in next major version.
11 */
12 class Export
13 {
14 protected $app;
15 protected $request;
16 protected $tableName;
17
18 public function __construct(Application $application, $tableName = 'fluentform_submissions')
19 {
20 $this->app = $application;
21 $this->request = $application->request;
22 $this->tableName = $tableName;
23 }
24
25 /**
26 * @deprecated Use TransferService::exportEntries() instead.
27 */
28 public function index()
29 {
30
31 $args = $this->request->get();
32
33 if ($this->tableName !== 'fluentform_submissions') {
34 $args['table'] = $this->tableName;
35 }
36
37 TransferService::exportEntries($args);
38 }
39 }
40