4 * Class CRM_Custom_Import_Controller
6 class CRM_Custom_Import_Controller
extends CRM_Core_Controller
{
10 function __construct($title = NULL, $action = CRM_Core_Action
::NONE
, $modal = TRUE) {
11 parent
::__construct($title, $modal);
13 // lets get around the time limit issue if possible, CRM-2113
14 if (!ini_get('safe_mode')) {
18 $this->_stateMachine
= new CRM_Import_StateMachine($this, $action);
20 // create and instantiate the pages
21 $this->addPages($this->_stateMachine
, $action);
23 // add all the actions
24 $config = CRM_Core_Config
::singleton();
25 $this->addActions($config->uploadDir
, array('uploadFile'));