Ensure that we always return a raw urlencoded url for extenal urls to fix Flexmailer...
[civicrm-core.git] / CRM / Campaign / Page / Petition.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 * Page for displaying Petition Signatures.
20 */
21 class CRM_Campaign_Page_Petition extends CRM_Core_Page {
22
23 public function browse() {
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
33 /**
34 * @return string
35 */
36 public function run() {
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 }
45
46 }