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 | * State machine for managing different states of the Import process. | |
20 | * | |
21 | */ | |
22 | class CRM_PCP_StateMachine_PCP extends CRM_Core_StateMachine { | |
23 | ||
24 | /** | |
fe482240 | 25 | * Class constructor. |
6a488035 | 26 | * |
77b97be7 EM |
27 | * @param object $controller |
28 | * @param \const|int $action | |
6a488035 | 29 | * |
77b97be7 EM |
30 | * @internal param \CRM_Contact_Import_Controller $object |
31 | * @return \CRM_PCP_StateMachine_PCP CRM_Contact_Import_StateMachine | |
6a488035 | 32 | */ |
00be9182 | 33 | public function __construct($controller, $action = CRM_Core_Action::NONE) { |
6a488035 TO |
34 | parent::__construct($controller, $action); |
35 | ||
36 | $session = CRM_Core_Session::singleton(); | |
37 | $session->set('singleForm', FALSE); | |
38 | ||
be2fb01f | 39 | $this->_pages = [ |
6a488035 TO |
40 | 'CRM_PCP_Form_PCPAccount' => NULL, |
41 | 'CRM_PCP_Form_Campaign' => NULL, | |
be2fb01f | 42 | ]; |
6a488035 TO |
43 | |
44 | $this->addSequentialPages($this->_pages, $action); | |
45 | } | |
96025800 | 46 | |
6a488035 | 47 | } |