_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(); } } }