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 +--------------------------------------------------------------------+
13 * Class CRM_Event_Controller_Registration
15 class CRM_Event_Controller_Registration
extends CRM_Core_Controller
{
20 * @param string $title
21 * @param bool|int $action
24 public function __construct($title = NULL, $action = CRM_Core_Action
::NONE
, $modal = TRUE) {
25 parent
::__construct($title, $modal);
27 $this->_stateMachine
= new CRM_Event_StateMachine_Registration($this, $action);
29 // create and instantiate the pages
30 $this->addPages($this->_stateMachine
, $action);
32 $config = CRM_Core_Config
::singleton();
34 //changes for custom data type File
35 $uploadNames = $this->get('uploadNames');
36 if (is_array($uploadNames) && !empty($uploadNames)) {
37 $this->addActions($config->customFileUploadDir
, $uploadNames);
40 // add all the actions
45 public function invalidKey() {
46 $this->invalidKeyRedirect();