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 | */ |
17 | ||
18 | /** | |
df371444 | 19 | * Page for displaying Petition Signatures. |
6a488035 TO |
20 | */ |
21 | class CRM_Campaign_Page_Petition extends CRM_Core_Page { | |
f157740d | 22 | |
00be9182 | 23 | public function browse() { |
6a488035 TO |
24 | |
25 | //get the survey id | |
26 | $surveyId = CRM_Utils_Request::retrieve('sid', 'Positive', $this); | |
27 | ||
28 | $signatures = CRM_Campaign_BAO_Petition::getPetitionSignature($surveyId); | |
29 | ||
30 | $this->assign('signatures', $signatures); | |
31 | } | |
32 | ||
30c4e065 EM |
33 | /** |
34 | * @return string | |
35 | */ | |
00be9182 | 36 | public function run() { |
6a488035 TO |
37 | $action = CRM_Utils_Request::retrieve('action', 'String', |
38 | $this, FALSE, 0 | |
39 | ); | |
40 | $this->assign('action', $action); | |
41 | $this->browse(); | |
42 | ||
43 | return parent::run(); | |
44 | } | |
96025800 | 45 | |
6a488035 | 46 | } |