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 | /** | |
19 | * This class previews the uploaded file and returns summary | |
20 | * statistics | |
21 | */ | |
f532671f | 22 | class CRM_Event_Import_Form_Preview extends CRM_Import_Form_Preview { |
6a488035 | 23 | |
83a1c234 EM |
24 | /** |
25 | * @return CRM_Event_Import_Parser_Participant | |
26 | */ | |
27 | protected function getParser(): CRM_Event_Import_Parser_Participant { | |
28 | if (!$this->parser) { | |
29 | $this->parser = new CRM_Event_Import_Parser_Participant(); | |
30 | $this->parser->setUserJobID($this->getUserJobID()); | |
31 | $this->parser->init(); | |
32 | } | |
33 | return $this->parser; | |
34 | } | |
35 | ||
6a488035 | 36 | } |