当前位置: 首页>>代码示例>>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;未经允许,请勿转载。