Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?php |
2 | /* | |
3 | +--------------------------------------------------------------------+ | |
bc77d7c0 | 4 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 5 | | | |
bc77d7c0 TO |
6 | | This work is published under the GNU AGPLv3 license with some | |
7 | | permitted exceptions and without any warranty. For full license | | |
8 | | and copyright information, see https://civicrm.org/licensing | | |
6a488035 | 9 | +--------------------------------------------------------------------+ |
d25dd0ee | 10 | */ |
6a488035 TO |
11 | |
12 | /** | |
13 | * | |
14 | * @package CRM | |
ca5cec67 | 15 | * @copyright CiviCRM LLC https://civicrm.org/licensing |
6a488035 TO |
16 | */ |
17 | ||
18 | /** | |
347e061b | 19 | * This class previews the uploaded file and returns summary statistics. |
6a488035 | 20 | */ |
f532671f | 21 | class CRM_Contribute_Import_Form_Preview extends CRM_Import_Form_Preview { |
6a488035 | 22 | |
83a1c234 EM |
23 | /** |
24 | * @return \CRM_Contribute_Import_Parser_Contribution | |
25 | */ | |
26 | protected function getParser(): CRM_Contribute_Import_Parser_Contribution { | |
27 | if (!$this->parser) { | |
28 | $this->parser = new CRM_Contribute_Import_Parser_Contribution(); | |
29 | $this->parser->setUserJobID($this->getUserJobID()); | |
30 | $this->parser->init(); | |
31 | } | |
32 | return $this->parser; | |
33 | } | |
34 | ||
6a488035 | 35 | } |