Import from SVN (r45945, r596)
[civicrm-core.git] / CRM / Event / Cart / Controller / Checkout.php
1 <?php
2 class CRM_Event_Cart_Controller_Checkout extends CRM_Core_Controller {
3 function __construct($title = NULL, $action = CRM_Core_Action::NONE, $modal = TRUE) {
4 parent::__construct($title, $modal);
5
6
7 $this->_stateMachine = new CRM_Event_Cart_StateMachine_Checkout($this, $action);
8 $this->addPages($this->_stateMachine, $action);
9 $config = CRM_Core_Config::singleton();
10
11 //changes for custom data type File
12 $uploadNames = $this->get('uploadNames');
13 if (is_array($uploadNames) && !empty($uploadNames)) {
14 $this->addActions($config->customFileUploadDir, $uploadNames);
15 }
16 else {
17 // add all the actions
18 $this->addActions();
19 }
20 }
21 }
22