| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* $Id$
*
*/
-
class CRM_Contribute_Page_SubscriptionStatus extends CRM_Core_Page {
/**
- * This function is the main function that is called when the page loads,
+ * the main function that is called when the page loads,
* it decides the which action has to be taken for the page.
*
- * return null
+ * @return null
*/
public function run() {
- $task = CRM_Utils_Request::retrieve('task', 'String', CRM_Core_DAO::$_nullObject);
- $result = CRM_Utils_Request::retrieve('result', 'Integer', CRM_Core_DAO::$_nullObject);
+ $task = CRM_Utils_Request::retrieve('task', 'String', CRM_Core_DAO::$_nullObject);
+ $result = CRM_Utils_Request::retrieve('result', 'Integer', CRM_Core_DAO::$_nullObject);
- $this->assign('task', $task);
+ $this->assign('task', $task);
$this->assign('result', $result);
- if ( $task == 'billing' ) {
- $session = CRM_Core_Session::singleton();
+ if ($task == 'billing') {
+ $session = CRM_Core_Session::singleton();
$tplParams = $session->get('resultParams');
- foreach ( $tplParams as $key => $val ) {
+ foreach ($tplParams as $key => $val) {
$this->assign($key, $val);
}
}
return parent::run();
}
+
}