本文整理匯總了PHP中RequestContext::set方法的典型用法代碼示例。如果您正苦於以下問題:PHP RequestContext::set方法的具體用法?PHP RequestContext::set怎麽用?PHP RequestContext::set使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類RequestContext
的用法示例。
在下文中一共展示了RequestContext::set方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Contests
}
$this_contests = ContestsDAO::search(new Contests(array("alias" => $_GET["alias"])));
if (count($this_contests) == 0) {
$page->addComponent(new TitleComponent("Este concurso no existe", 2));
$page->render();
exit;
}
$this_contest = $this_contests[0];
if (is_null($this_contest)) {
$page->addComponent(new TitleComponent("Este concurso no existe", 2));
$page->render();
exit;
}
$page->nextTab("Detalles");
//$page->addComponent( "<a href='../arena/{$_GET['alias']}/'>Ir al concurso</a>" );
RequestContext::set('contest_alias', $_GET['alias']);
$omiReport = new OmiReport();
$djson = json_decode(json_encode($omiReport->ExecuteApi()));
$nreports = sizeof($djson->report);
$page->addComponent("<table style='width:100%' border=0>");
//reports
for ($r = 0; $r < $nreports; $r++) {
$page->addComponent("<tr><td><hr>");
$page->addComponent("<strong>" . $djson->report[$r]->username . "</strong> " . $djson->report[$r]->name . "");
/* $djson->report[$r]->total->points; $djson->report[$r]->total->penalty;*/
$nprobs = sizeof($djson->report[$r]->problems);
$pkeys = get_object_vars($djson->report[$r]->problems);
$page->addComponent("</td></tr>");
//team, i think
foreach ($pkeys as $pp) {
$page->addComponent("<tr><td>");