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
19 class CRM_Event_Controller_Registration
extends CRM_Core_Controller
{
25 * @param bool|int $action
28 public function __construct($title = NULL, $action = CRM_Core_Action
::NONE
, $modal = TRUE) {
29 parent
::__construct($title, $modal);
31 $this->_stateMachine
= new CRM_Event_StateMachine_Registration($this, $action);
33 // create and instantiate the pages
34 $this->addPages($this->_stateMachine
, $action);
36 $config = CRM_Core_Config
::singleton();
38 //changes for custom data type File
39 $uploadNames = $this->get('uploadNames');
40 if (is_array($uploadNames) && !empty($uploadNames)) {
41 $this->addActions($config->customFileUploadDir
, $uploadNames);
44 // add all the actions
49 public function invalidKey() {
50 $this->invalidKeyRedirect();