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
19 * State machine for managing different states of the Import process.
21 class CRM_Import_StateMachine
extends CRM_Core_StateMachine
{
26 * @param object $controller
27 * @param \const|int $action
29 public function __construct($controller, $action = CRM_Core_Action
::NONE
) {
30 parent
::__construct($controller, $action);
32 $classType = str_replace('_Controller', '', get_class($controller));
34 $classType . '_Form_DataSource' => NULL,
35 $classType . '_Form_MapField' => NULL,
36 $classType . '_Form_Preview' => NULL,
37 $classType . '_Form_Summary' => NULL,
40 $this->addSequentialPages($this->_pages
, $action);