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 | 16 | */ |
6a488035 TO |
17 | class CRM_Contribute_Page_SubscriptionStatus extends CRM_Core_Page { |
18 | ||
19 | /** | |
dc195289 | 20 | * the main function that is called when the page loads, |
6a488035 TO |
21 | * it decides the which action has to be taken for the page. |
22 | * | |
76e7a76c | 23 | * @return null |
6a488035 | 24 | */ |
00be9182 | 25 | public function run() { |
a3d827a7 CW |
26 | $task = CRM_Utils_Request::retrieve('task', 'String'); |
27 | $result = CRM_Utils_Request::retrieve('result', 'Integer'); | |
6a488035 | 28 | |
874c9be7 | 29 | $this->assign('task', $task); |
6a488035 TO |
30 | $this->assign('result', $result); |
31 | ||
481a74f4 | 32 | if ($task == 'billing') { |
353ffa53 | 33 | $session = CRM_Core_Session::singleton(); |
6a488035 | 34 | $tplParams = $session->get('resultParams'); |
481a74f4 | 35 | foreach ($tplParams as $key => $val) { |
6a488035 TO |
36 | $this->assign($key, $val); |
37 | } | |
38 | } | |
39 | ||
40 | return parent::run(); | |
41 | } | |
96025800 | 42 | |
6a488035 | 43 | } |