当前位置: 首页>>代码示例>>PHP>>正文


PHP Planning::getBacklogTrackerId方法代码示例

本文整理汇总了PHP中Planning::getBacklogTrackerId方法的典型用法代码示例。如果您正苦于以下问题:PHP Planning::getBacklogTrackerId方法的具体用法?PHP Planning::getBacklogTrackerId怎么用?PHP Planning::getBacklogTrackerId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Planning的用法示例。


在下文中一共展示了Planning::getBacklogTrackerId方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: appendBacklogTrackerIfRoot

 /**
  * Allow to create artifacts when the item comes from the planning tracker and if
  * the backlog tracker is at the root of the hierarchy.
  *
  * Example:
  * Given I have a planning Epic -> Release
  * And Epic has not parent (root of hierarchy)
  * Then I can create an Epic right in the release
  *
  * Counter example:
  * Given I have a planning Story -> Sprint
  * And I have a hierarchy Epic -> Story
  * Then I cannot create Story directly below Sprint
  *
  * @param array $allowed_trackers
  * @return type
  */
 private function appendBacklogTrackerIfRoot(array $allowed_trackers)
 {
     $backlog_tracker = array();
     if ($this->getTracker() == $this->planning->getPlanningTracker()) {
         $backlog_hierarchy = $this->planning->getBacklogTracker()->getHierarchy();
         if ($backlog_hierarchy->isRoot($this->planning->getBacklogTrackerId())) {
             $backlog_tracker = array($this->planning->getBacklogTracker());
         }
     }
     return array_merge($allowed_trackers, $backlog_tracker);
 }
开发者ID:nickl-,项目名称:tuleap,代码行数:28,代码来源:Item.class.php

示例2: selectedIfBacklogTracker

 public function selectedIfBacklogTracker()
 {
     if ($this->tracker->getId() == $this->planning->getBacklogTrackerId()) {
         return 'selected';
     }
 }
开发者ID:nterray,项目名称:tuleap,代码行数:6,代码来源:TrackerPresenter.class.php

示例3: buildContentView

 protected function buildContentView(Planning_ViewBuilder $view_builder, Planning $planning, Project $project = null)
 {
     $already_planned_artifact_ids = $this->getAlreadyPlannedArtifactsIds();
     $cross_search_query = $this->getCrossSearchQuery();
     $backlog_tracker_ids = $this->hierarchy_factory->getHierarchy(array($planning->getBacklogTrackerId()))->flatten();
     $backlog_actions_presenter = new Planning_BacklogActionsPresenter($planning->getBacklogTracker(), $this->milestone, $this->getPlanningRedirectToSelf());
     $view = $view_builder->build($this->getCurrentUser(), $project, $cross_search_query, $already_planned_artifact_ids, $backlog_tracker_ids, $planning, $backlog_actions_presenter, $this->getPlanningRedirectToSelf());
     return $view;
 }
开发者ID:nterray,项目名称:tuleap,代码行数:9,代码来源:MilestoneController.class.php

示例4: isPlannifiable

 /** 
  * Checks whether or not this item can be assigned to a milestone.
  * 
  * @return bool
  */
 public function isPlannifiable()
 {
     return $this->getTracker()->getId() == $this->planning->getBacklogTrackerId();
 }
开发者ID:nterray,项目名称:tuleap,代码行数:9,代码来源:Item.class.php


注:本文中的Planning::getBacklogTrackerId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。