<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
/**
* Constructor
*/
- function __construct() {
+ public function __construct() {
parent::__construct();
}
/**
- * @param $name
+ * @param string $name
* @param $type
* @param string $location
* @param bool $abort
*
* @return mixed
*/
- static function retrieve($name, $type, $location = 'POST', $abort = TRUE) {
+ public static function retrieve($name, $type, $location = 'POST', $abort = TRUE) {
static $store = NULL;
$value = CRM_Utils_Request::retrieve($name, $type, $store,
FALSE, NULL, $location
* @param $objects
* @param $first
*/
- function recur(&$input, &$ids, &$objects, $first) {
+ public function recur(&$input, &$ids, &$objects, $first) {
if (!isset($input['txnType'])) {
CRM_Core_Error::debug_log_message("Could not find txn_type in input request");
echo "Failure: Invalid parameters<p>";
* @param bool $recur
* @param bool $first
*/
- function single(&$input, &$ids, &$objects,
+ function single(
+ &$input, &$ids, &$objects,
$recur = FALSE,
$first = FALSE
) {
$this->completeTransaction($input, $ids, $objects, $transaction, $recur);
}
- function main() {
- //@todo - this could be refactored like PayPalProIPN & a test could be added
+ public function main() {
+ //@todo - this could be refactored like PayPalProIPN & a test could be added
$objects = $ids = $input = array();
$component = CRM_Utils_Array::value('module', $_GET);
* @param $input
* @param $ids
*/
- function getInput(&$input, &$ids) {
+ public function getInput(&$input, &$ids) {
if (!$this->getBillingID($ids)) {
return FALSE;
}