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 | /** | |
bf6a5362 | 19 | * State machine for managing different states of the upgrade process. |
6a488035 TO |
20 | */ |
21 | class CRM_Upgrade_StateMachine extends CRM_Core_StateMachine { | |
22 | ||
23 | /** | |
fe482240 | 24 | * Class constructor. |
6a488035 | 25 | * |
bf6a5362 CW |
26 | * @param CRM_Upgrade_Controller $controller |
27 | * @param array $pages | |
28 | * @param int $action | |
6a488035 | 29 | * |
bf6a5362 | 30 | * @return CRM_Upgrade_StateMachine |
6a488035 | 31 | */ |
00be9182 | 32 | public function __construct(&$controller, &$pages, $action = CRM_Core_Action::NONE) { |
6a488035 TO |
33 | parent::__construct($controller, $action); |
34 | ||
35 | $this->_pages = &$pages; | |
36 | ||
37 | $this->addSequentialPages($this->_pages, $action); | |
38 | } | |
96025800 | 39 | |
6a488035 | 40 | } |