Merge pull request #23620 from bugfolder/8_move_session_start
[civicrm-core.git] / CRM / Member / 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
20 * statistics
21 */
22 class CRM_Member_Import_Form_Preview extends CRM_Import_Form_Preview {
23
24 /**
25 * Set variables up before form is built.
26 *
27 * @return void
28 */
29 public function preProcess() {
30 parent::preProcess();
31 $this->setStatusUrl();
32 }
33
34 /**
35 * @return \CRM_Member_Import_Parser_Membership
36 */
37 protected function getParser(): CRM_Member_Import_Parser_Membership {
38 if (!$this->parser) {
39 $this->parser = new CRM_Member_Import_Parser_Membership();
40 $this->parser->setUserJobID($this->getUserJobID());
41 $this->parser->init();
42 }
43 return $this->parser;
44 }
45
46 }