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
19 class CRM_Group_StateMachine
extends CRM_Core_StateMachine
{
24 * @param object $controller
25 * @param \const|int $action
27 public function __construct($controller, $action = CRM_Core_Action
::NONE
) {
28 parent
::__construct($controller, $action);
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,
37 $this->addSequentialPages($this->_pages
, $action);
41 * Return the form name of the task. This is
45 public function getTaskFormName() {
46 return CRM_Utils_String
::getClassName('CRM_Contact_Form_Task_AddToGroup');