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 | class CRM_Upgrade_Controller extends CRM_Core_Controller { | |
18 | ||
19 | /** | |
fe482240 | 20 | * Class constructor. |
ab432335 EM |
21 | * |
22 | * @param null $title | |
23 | * @param bool|int $action | |
24 | * @param bool $modal | |
6a488035 | 25 | */ |
79d7553f | 26 | public function __construct( |
4e66d748 | 27 | $title = NULL, |
6a488035 TO |
28 | $action = CRM_Core_Action::NONE, |
29 | $modal = TRUE | |
30 | ) { | |
31 | parent::__construct($title, $modal); | |
32 | ||
33 | $this->_stateMachine = new CRM_Upgrade_StateMachine($this, | |
34 | $this->getPages(), | |
35 | $action | |
36 | ); | |
37 | ||
38 | // create and instantiate the pages | |
39 | $this->addPages($this->_stateMachine, $action); | |
40 | ||
41 | // add all the actions | |
42 | $config = CRM_Core_Config::singleton(); | |
43 | $this->addActions(); | |
44 | } | |
96025800 | 45 | |
6a488035 | 46 | } |