Merge pull request #16016 from seamuslee001/master
[civicrm-core.git] / CRM / Contribute / Page / SubscriptionStatus.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 class CRM_Contribute_Page_SubscriptionStatus extends CRM_Core_Page {
18
19 /**
20 * the main function that is called when the page loads,
21 * it decides the which action has to be taken for the page.
22 *
23 * @return null
24 */
25 public function run() {
26 $task = CRM_Utils_Request::retrieve('task', 'String');
27 $result = CRM_Utils_Request::retrieve('result', 'Integer');
28
29 $this->assign('task', $task);
30 $this->assign('result', $result);
31
32 if ($task == 'billing') {
33 $session = CRM_Core_Session::singleton();
34 $tplParams = $session->get('resultParams');
35 foreach ($tplParams as $key => $val) {
36 $this->assign($key, $val);
37 }
38 }
39
40 return parent::run();
41 }
42
43 }