First commit
This commit is contained in:
commit
c6e2478c40
13918 changed files with 2303184 additions and 0 deletions
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Class CRM_Event_Cart_Controller_Checkout
|
||||
*/
|
||||
class CRM_Event_Cart_Controller_Checkout extends CRM_Core_Controller {
|
||||
/**
|
||||
* @param null $title
|
||||
* @param bool|int $action
|
||||
* @param bool $modal
|
||||
*/
|
||||
public function __construct($title = NULL, $action = CRM_Core_Action::NONE, $modal = TRUE) {
|
||||
parent::__construct($title, $modal);
|
||||
|
||||
$this->_stateMachine = new CRM_Event_Cart_StateMachine_Checkout($this, $action);
|
||||
$this->addPages($this->_stateMachine, $action);
|
||||
$config = CRM_Core_Config::singleton();
|
||||
|
||||
//changes for custom data type File
|
||||
$uploadNames = $this->get('uploadNames');
|
||||
if (is_array($uploadNames) && !empty($uploadNames)) {
|
||||
$this->addActions($config->customFileUploadDir, $uploadNames);
|
||||
}
|
||||
else {
|
||||
// add all the actions
|
||||
$this->addActions();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue