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_Event_Form_Task_ParticipantStatus extends CRM_Event_Form_Task_Batch { | |
90b461f1 | 20 | |
00be9182 | 21 | public function buildQuickForm() { |
6a488035 TO |
22 | // CRM_Event_Form_Task_Batch::buildQuickForm() gets ufGroupId |
23 | // from the form, so set it here to the id of the reserved profile | |
7c550ca0 | 24 | $dao = new CRM_Core_DAO_UFGroup(); |
6a488035 TO |
25 | $dao->name = 'participant_status'; |
26 | $dao->find(TRUE); | |
27 | $this->set('ufGroupId', $dao->id); | |
28 | ||
29 | $statuses = CRM_Event_PseudoConstant::participantStatus(NULL, NULL, 'label'); | |
30 | asort($statuses, SORT_STRING); | |
31 | $this->add('select', 'status_change', ts('Change All Statuses'), | |
be2fb01f | 32 | [ |
7c550ca0 | 33 | '' => ts('- select status -'), |
be2fb01f | 34 | ] + $statuses |
6a488035 TO |
35 | ); |
36 | ||
3ea7ca33 | 37 | $this->assign('context', 'statusChange'); |
041ecc95 | 38 | // CRM-4321: display info on users being notified if any of the below statuses is enabled |
3ea7ca33 | 39 | parent::assignToTemplate(); |
6a488035 TO |
40 | parent::buildQuickForm(); |
41 | } | |
96025800 | 42 | |
6a488035 | 43 | } |