Merge pull request #23766 from eileenmcnaughton/cont_up
[civicrm-core.git] / CRM / Contribute / Import / Form / Preview.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
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 |
9 +--------------------------------------------------------------------+
10 */
11
12 /**
13 *
14 * @package CRM
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
16 */
17
18 /**
19 * This class previews the uploaded file and returns summary statistics.
20 */
21 class CRM_Contribute_Import_Form_Preview extends CRM_Import_Form_Preview {
22
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
35 }