function execute($par)
 {
     global $wgRequest, $wgOut, $egFundraiserStatisticsFundraisers;
     $this->setHeaders();
     // Get request data
     $fundraiserId = $wgRequest->getText('fundraiser');
     $action = $wgRequest->getText('action');
     $fudgeFactor = $wgRequest->getInt('adjustment');
     // If no fundraiser was specified, use the most recent
     if (!$fundraiserId) {
         $mostRecentFundraiser = end($egFundraiserStatisticsFundraisers);
         $fundraiserId = $mostRecentFundraiser['id'];
     }
     $output = efContributionReportingTotal($fundraiserId, $fudgeFactor);
     header("Cache-Control: max-age={$this->maxAge},s-maxage={$this->sharedMaxAge}");
     if ($action == 'raw') {
         $wgOut->disable();
         echo $output;
     } else {
         $wgOut->setRobotpolicy('noindex,nofollow');
         $wgOut->addHTML($output);
     }
 }
/**
 * @return integer
 */
function efContributionReportingTotal_Render()
{
    $args = func_get_args();
    array_shift($args);
    $fudgeFactor = false;
    $start = false;
    foreach ($args as $arg) {
        if (strpos($arg, '=') === false) {
            continue;
        }
        list($key, $value) = explode('=', trim($arg), 2);
        if ($key == 'fudgefactor') {
            $fudgeFactor = $value;
        } elseif ($key == 'fundraiser') {
            $fundraiser = $value;
        }
    }
    return efContributionReportingTotal($fundraiser, $fudgeFactor);
}