當前位置: 首頁>>代碼示例>>PHP>>正文


PHP project::getTimeline方法代碼示例

本文整理匯總了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'];
開發者ID:janvalentik,項目名稱:Collabtive,代碼行數:30,代碼來源:managemilestone.php

示例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);
開發者ID:janvalentik,項目名稱:Collabtive,代碼行數:30,代碼來源:manageajax.php


注:本文中的project::getTimeline方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。