3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
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 +--------------------------------------------------------------------+
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
17 class CRM_Activity_Import_Controller
extends CRM_Core_Controller
{
22 * @param string $title
23 * @param bool|int $action
26 public function __construct($title = NULL, $action = CRM_Core_Action
::NONE
, $modal = TRUE) {
27 parent
::__construct($title, $modal);
29 // lets get around the time limit issue if possible, CRM-2113
30 if (!ini_get('safe_mode')) {
34 $this->_stateMachine
= new CRM_Import_StateMachine($this, $action);
36 // create and instantiate the pages
37 $this->addPages($this->_stateMachine
, $action);
39 // add all the actions
40 $config = CRM_Core_Config
::singleton();
41 $this->addActions($config->uploadDir
, ['uploadFile']);