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 | 16 | */ |
719a6fec | 17 | class CRM_Contact_Import_Controller extends CRM_Core_Controller { |
6a488035 TO |
18 | |
19 | /** | |
fe482240 | 20 | * Class constructor. |
ced9bfed EM |
21 | * |
22 | * @param null $title | |
23 | * @param bool|int $action | |
24 | * @param bool $modal | |
6a488035 | 25 | */ |
00be9182 | 26 | public function __construct($title = NULL, $action = CRM_Core_Action::NONE, $modal = TRUE) { |
6a488035 TO |
27 | parent::__construct($title, $modal); |
28 | ||
29 | // lets get around the time limit issue if possible, CRM-2113 | |
30 | if (!ini_get('safe_mode')) { | |
31 | set_time_limit(0); | |
32 | } | |
33 | ||
7849225a | 34 | $this->_stateMachine = new CRM_Import_StateMachine($this, $action); |
6a488035 TO |
35 | |
36 | // create and instantiate the pages | |
37 | $this->addPages($this->_stateMachine, $action); | |
38 | ||
39 | // add all the actions | |
40 | $config = CRM_Core_Config::singleton(); | |
be2fb01f | 41 | $this->addActions($config->uploadDir, ['uploadFile']); |
6a488035 | 42 | } |
96025800 | 43 | |
6a488035 | 44 | } |