Merge pull request #15435 from MegaphoneJon/reporting-21
[civicrm-core.git] / CRM / PCP / StateMachine / PCP.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 * $Id$
17 *
18 */
19
20 /**
21 * State machine for managing different states of the Import process.
22 *
23 */
24 class CRM_PCP_StateMachine_PCP extends CRM_Core_StateMachine {
25
26 /**
27 * Class constructor.
28 *
29 * @param object $controller
30 * @param \const|int $action
31 *
32 * @internal param \CRM_Contact_Import_Controller $object
33 * @return \CRM_PCP_StateMachine_PCP CRM_Contact_Import_StateMachine
34 */
35 public function __construct($controller, $action = CRM_Core_Action::NONE) {
36 parent::__construct($controller, $action);
37
38 $session = CRM_Core_Session::singleton();
39 $session->set('singleForm', FALSE);
40
41 $this->_pages = [
42 'CRM_PCP_Form_PCPAccount' => NULL,
43 'CRM_PCP_Form_Campaign' => NULL,
44 ];
45
46 $this->addSequentialPages($this->_pages, $action);
47 }
48
49 }