本文整理匯總了PHP中Parameter::setReport方法的典型用法代碼示例。如果您正苦於以下問題:PHP Parameter::setReport方法的具體用法?PHP Parameter::setReport怎麽用?PHP Parameter::setReport使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Parameter
的用法示例。
在下文中一共展示了Parameter::setReport方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: session_start
* * You should have received a copy of the GNU General Public License along with CORAL. If not, see <http://www.gnu.org/licenses/>.
* *
* *************************************************************************************************************************
*/
session_start();
//require 'minify.php';
//ob_start('minify_output');
ob_start();
include_once 'directory.php';
if (isset($_REQUEST['outputType'])) {
$outputType = $_REQUEST['outputType'];
} else {
$outputType = 'web';
}
$report = ReportFactory::makeReport($_REQUEST['reportID']);
Parameter::setReport($report);
//FormInputs::init() and ReportNotes::init(..) are called by Report constructor
FormInputs::addHidden('outputType', $outputType);
if (!isset($_REQUEST['reportID'])) {
error_log("missing reportID; redirecting to index.php");
header("location: index.php");
exit;
}
if ($outputType === 'web' && isset($_REQUEST['startPage'])) {
$startRow = $_REQUEST['startPage'];
} else {
$startRow = 1;
}
if ($report->titleID) {
Parameter::$display = '<b>Title:</b> ' . $report->getUsageTitle($report->titleID) . '<br/>';
}
示例2: testReportId
/**
* @dataProvider reportIdProvider
* @depends testParams
*/
public function testReportId($reportID)
{
$report = ReportFactory::makeReport($reportID);
Parameter::setReport($report);
foreach ($report->getParameters() as $parm) {
$parm->process();
}
$report->run(false, true);
$report->run(true, true);
}