/**
  * Call to render the bugzilla report
  */
 function efBugzillaReportsRender(&$parser)
 {
     $bugzillaReport = new BugzillaReport($parser);
     $args = func_get_args();
     array_shift($args);
     return $bugzillaReport->render($args);
 }
Beispiel #2
0
#
#define('BUGZILLAREPORTS',1);
#$bzScriptPath="";
#$wgBugzillaReports = array(
#	'host'		=> "localhost",
#	'database'	=> "bugs",
#	'user'		=> "bugs",
#	'password'	=> "password",
#	'bzserver'  => "http://myserver",
#	'maxrows'	=> "300"
#);
if (!defined('BUGZILLAREPORTS')) {
    die('This Bugzilla Reports script has not been enabled');
}
$parser = new BParser();
$bugzillaReport = new BugzillaReport($parser);
$bugzillaReport->setRawHTML(true);
#
# See http://www.mediawiki.org/wiki/Extension:Bugzilla_Reports#Usage for
# documentation on parameters available
#
$out = $bugzillaReport->render(array("priority=P1,P2", "lastcomment=1"));
?>
<html>
  <head>
	<?php 
echo $parser->mOutput->head;
?>
  </head>
  <body>
	<?php