Merge pull request #22805 from braders/permission_denied_wordpress_improvement-altern...
[civicrm-core.git] / CRM / SMS / StateMachine / Send.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
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 +--------------------------------------------------------------------+
10 */
11
12 /**
13 *
14 * @package CRM
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
16 */
17
18 /**
19 * State machine for managing different states of the Import process.
20 */
21 class CRM_SMS_StateMachine_Send extends CRM_Core_StateMachine {
22
23 /**
24 * Class constructor.
25 *
26 * @param object $controller
27 * @param \const|int $action
28 *
29 * @return \CRM_SMS_StateMachine_Send CRM_SMS_StateMachine
30 */
31 public function __construct($controller, $action = CRM_Core_Action::NONE) {
32 parent::__construct($controller, $action);
33
34 $this->_pages = [
35 'CRM_SMS_Form_Group' => NULL,
36 'CRM_SMS_Form_Upload' => NULL,
37 'CRM_SMS_Form_Schedule' => NULL,
38 ];
39
40 $this->addSequentialPages($this->_pages, $action);
41 }
42
43 }