本文整理汇总了PHP中project::getTimeline方法的典型用法代码示例。如果您正苦于以下问题:PHP project::getTimeline方法的具体用法?PHP project::getTimeline怎么用?PHP project::getTimeline使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类project
的用法示例。
在下文中一共展示了project::getTimeline方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
{
$stones = $milestone->getProjectMilestones($id);
if (!empty($stones))
{
$stones2 = $milestone->getTodayProjectMilestones($id);
}
if (!empty($stones2))
{
$stones = array_merge($stones, $stones2);
}
$template->assign("milestones", $stones);
$template->display("mileslist.tpl");
} elseif ($action == "milescal")
{
$pro = new project();
$timeline1 = $pro->getTimeline($id, 0, 7);
$timeline2 = $pro->getTimeline($id, 7, 14);
$timeline3 = $pro->getTimeline($id, 14, 21);
$timeline4 = $pro->getTimeline($id, 21, 28);
$timestr = $pro->getTimestr();
$today = date("d");
$timestring = array();
foreach($timestr as $times)
{
$times = $langfile[$times];
array_push($timestring, $times);
}
$tpro = $pro->getProject($id);
$projectname = $tpro["name"];
$title = $langfile['milestones'];
示例2: project
$template->assign("project", $project);
$pro = new project();
if (!$id)
{
$id = 0;
}
$template->assign("id", $id);
if ($action == "timeline1next")
{
$start = $start + 7;
$end = $end + 7;
$today = date("d");
$timestr = $pro->getTimestr();
$timeline1 = $pro->getTimeline($id, $start, $end);
$timestring = array();
foreach($timestr as $times)
{
$times = $langfile[$times];
array_push($timestring, $times);
}
$template->assign("timeline1", $timeline1);
$template->assign("start", $start);
$template->assign("end", $end);
$template->assign("timestr", $timestring);
$template->assign("today", $today);