Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?php |
2 | /* | |
3 | +--------------------------------------------------------------------+ | |
bc77d7c0 | 4 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 5 | | | |
bc77d7c0 TO |
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 | | |
6a488035 | 9 | +--------------------------------------------------------------------+ |
d25dd0ee | 10 | */ |
6a488035 TO |
11 | |
12 | /** | |
13 | * | |
14 | * @package CRM | |
ca5cec67 | 15 | * @copyright CiviCRM LLC https://civicrm.org/licensing |
6a488035 TO |
16 | * $Id$ |
17 | * | |
18 | */ | |
19 | class CRM_Group_StateMachine extends CRM_Core_StateMachine { | |
20 | ||
21 | /** | |
2e2605fe EM |
22 | * Class constructor. |
23 | * | |
24 | * @param object $controller | |
25 | * @param \const|int $action | |
6a488035 | 26 | */ |
00be9182 | 27 | public function __construct($controller, $action = CRM_Core_Action::NONE) { |
6a488035 TO |
28 | parent::__construct($controller, $action); |
29 | ||
be2fb01f | 30 | $this->_pages = [ |
6a488035 TO |
31 | 'CRM_Group_Form_Edit' => NULL, |
32 | 'CRM_Contact_Form_Search_Basic' => NULL, | |
33 | 'CRM_Contact_Form_Task_AddToGroup' => NULL, | |
34 | 'CRM_Contact_Form_Task_Result' => NULL, | |
be2fb01f | 35 | ]; |
6a488035 TO |
36 | |
37 | $this->addSequentialPages($this->_pages, $action); | |
38 | } | |
39 | ||
40 | /** | |
100fef9d | 41 | * Return the form name of the task. This is |
6a488035 TO |
42 | * |
43 | * @return string | |
6a488035 | 44 | */ |
00be9182 | 45 | public function getTaskFormName() { |
6a488035 TO |
46 | return CRM_Utils_String::getClassName('CRM_Contact_Form_Task_AddToGroup'); |
47 | } | |
96025800 | 48 | |
6a488035 | 49 | } |