Update release-notes/5.52.1.md
[civicrm-core.git] / CRM / Event / Import / Controller.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
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 +--------------------------------------------------------------------+
10 */
11
12 /**
13 *
14 * @package CRM
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
16 */
17 class CRM_Event_Import_Controller extends CRM_Core_Controller {
18
19 /**
20 * Class constructor.
21 *
22 * @param string $title
23 * @param bool|int $action
24 * @param bool $modal
25 */
26 public function __construct($title = NULL, $action = CRM_Core_Action::NONE, $modal = TRUE) {
27 parent::__construct($title, $modal);
28
29 set_time_limit(0);
30
31 $this->_stateMachine = new CRM_Import_StateMachine($this, $action);
32
33 // create and instantiate the pages
34 $this->addPages($this->_stateMachine, $action);
35
36 // add all the actions
37 $config = CRM_Core_Config::singleton();
38 $this->addActions($config->uploadDir, ['uploadFile']);
39 }
40
41 }