Commit | Line | Data |
---|---|---|
9ff5f6c0 | 1 | <?php |
4c6ce474 EM |
2 | |
3 | /** | |
4 | * Class CRM_Custom_Import_Controller | |
5 | */ | |
9ff5f6c0 N |
6 | class CRM_Custom_Import_Controller extends CRM_Core_Controller { |
7 | /** | |
7a9ab499 EM |
8 | * Class constructor. |
9 | * | |
10 | * @param string $title | |
11 | * @param bool|int $action | |
12 | * @param bool $modal | |
9ff5f6c0 | 13 | */ |
00be9182 | 14 | public function __construct($title = NULL, $action = CRM_Core_Action::NONE, $modal = TRUE) { |
9ff5f6c0 N |
15 | parent::__construct($title, $modal); |
16 | ||
17 | // lets get around the time limit issue if possible, CRM-2113 | |
18 | if (!ini_get('safe_mode')) { | |
19 | set_time_limit(0); | |
20 | } | |
21 | ||
22 | $this->_stateMachine = new CRM_Import_StateMachine($this, $action); | |
23 | ||
24 | // create and instantiate the pages | |
25 | $this->addPages($this->_stateMachine, $action); | |
26 | ||
27 | // add all the actions | |
28 | $config = CRM_Core_Config::singleton(); | |
29 | $this->addActions($config->uploadDir, array('uploadFile')); | |
30 | } | |
96025800 | 31 | |
4c6ce474 | 32 | } |