3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
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 +--------------------------------------------------------------------+
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
21 * State machine for managing different states of the Import process.
24 class CRM_PCP_StateMachine_PCP
extends CRM_Core_StateMachine
{
29 * @param object $controller
30 * @param \const|int $action
32 * @internal param \CRM_Contact_Import_Controller $object
33 * @return \CRM_PCP_StateMachine_PCP CRM_Contact_Import_StateMachine
35 public function __construct($controller, $action = CRM_Core_Action
::NONE
) {
36 parent
::__construct($controller, $action);
38 $session = CRM_Core_Session
::singleton();
39 $session->set('singleForm', FALSE);
42 'CRM_PCP_Form_PCPAccount' => NULL,
43 'CRM_PCP_Form_Campaign' => NULL,
46 $this->addSequentialPages($this->_pages
, $action);