本文整理汇总了PHP中Timer::write方法的典型用法代码示例。如果您正苦于以下问题:PHP Timer::write方法的具体用法?PHP Timer::write怎么用?PHP Timer::write使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Timer
的用法示例。
在下文中一共展示了Timer::write方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: write_body
function write_body()
{
function is_submitable($e)
{
return $e->submitable();
}
if ($this->entity->allow_view_results() || isset($_REQUEST['force'])) {
Timer::after("init");
$entities = array_filter($this->entity->descendants(), 'is_submitable');
Timer::after("find entities");
$this->write_get_submission_results($entities);
if ($this->debug) {
Timer::write();
}
} else {
// top level results are slow, and often not intended
//echo "<em>You are probably looking for the results of one of the courses</em>";
echo "<a href=\"admin_results.php" . $this->entity->path() . "?force\">view results for all courses</a>";
foreach ($this->entity->children() as $e) {
$this->write_block_begin($e->title(), 'collapsed linky block', 'admin_results.php' . $e->path());
$this->write_block_end();
}
}
}