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
17 class CRM_Campaign_Page_Petition_ThankYou
extends CRM_Core_Page
{
24 public function run() {
25 $id = CRM_Utils_Request
::retrieve('id', 'Positive', $this);
26 $petition_id = CRM_Utils_Request
::retrieve('pid', 'Positive', $this);
27 $params['id'] = $petition_id;
29 CRM_Campaign_BAO_Survey
::retrieve($params, $this->petition
);
30 $this->assign('petitionTitle', $this->petition
['title']);
31 $this->assign('thankyou_title', CRM_Utils_Array
::value('thankyou_title', $this->petition
));
32 $this->assign('thankyou_text', CRM_Utils_Array
::value('thankyou_text', $this->petition
));
33 $this->assign('survey_id', $petition_id);
34 $this->assign('status_id', $id);
35 $this->assign('is_share', CRM_Utils_Array
::value('is_share', $this->petition
));
36 CRM_Utils_System
::setTitle(CRM_Utils_Array
::value('thankyou_title', $this->petition
));
38 // send thank you or email verification emails
41 * 1 = connected user via login/pwd - thank you
42 * or dedupe contact matched who doesn't have a tag CIVICRM_TAG_UNCONFIRMED - thank you
43 * login using fb connect - thank you + click to add msg to fb wall
44 * 2 = send a confirmation request email