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
17 class CRM_Upgrade_Controller
extends CRM_Core_Controller
{
23 * @param bool|int $action
26 public function __construct(
28 $action = CRM_Core_Action
::NONE
,
31 parent
::__construct($title, $modal);
33 $this->_stateMachine
= new CRM_Upgrade_StateMachine($this,
38 // create and instantiate the pages
39 $this->addPages($this->_stateMachine
, $action);
41 // add all the actions
42 $config = CRM_Core_Config
::singleton();