本文整理匯總了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);