4 * Class CRM_Custom_Import_Controller
6 class CRM_Custom_Import_Controller
extends CRM_Core_Controller
{
11 * @param string $title
12 * @param bool|int $action
15 public function __construct($title = NULL, $action = CRM_Core_Action
::NONE
, $modal = TRUE) {
16 parent
::__construct($title, $modal);
18 // lets get around the time limit issue if possible, CRM-2113
19 if (!ini_get('safe_mode')) {
23 $this->_stateMachine
= new CRM_Import_StateMachine($this, $action);
25 // create and instantiate the pages
26 $this->addPages($this->_stateMachine
, $action);
28 // add all the actions
29 $config = CRM_Core_Config
::singleton();
30 $this->addActions($config->uploadDir
, ['uploadFile']);