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
17 class CRM_Export_StateMachine_Standalone
extends CRM_Core_StateMachine
{
22 * @param object $controller
23 * @param \const|int $action
24 * @param string $entity
26 public function __construct($controller, $action = CRM_Core_Action
::NONE
, $entity = 'Contact') {
27 parent
::__construct($controller, $action);
29 $entityMap = ['Contribution' => 'Contribute', 'Membership' => 'Member', 'Participant' => 'Event'];
30 $entity = $entityMap[$entity] ??
$entity;
32 'CRM_' . $entity . '_Export_Form_Select' => NULL,
33 'CRM_' . $entity . '_Export_Form_Map' => NULL,
36 $this->addSequentialPages($this->_pages
, $action);
40 * @todo So far does nothing.
44 public function getTaskFormName() {
49 * @todo not sure if this is needed
51 public function shouldReset() {