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 upgrade process.
21 class CRM_Upgrade_StateMachine
extends CRM_Core_StateMachine
{
26 * @param CRM_Upgrade_Controller $controller
30 * @return CRM_Upgrade_StateMachine
32 public function __construct(&$controller, &$pages, $action = CRM_Core_Action
::NONE
) {
33 parent
::__construct($controller, $action);
35 $this->_pages
= &$pages;
37 $this->addSequentialPages($this->_pages
, $action);