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


PHP Planning::getBacklogTracker方法代碼示例

本文整理匯總了PHP中Planning::getBacklogTracker方法的典型用法代碼示例。如果您正苦於以下問題:PHP Planning::getBacklogTracker方法的具體用法?PHP Planning::getBacklogTracker怎麽用?PHP Planning::getBacklogTracker使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Planning的用法示例。


在下文中一共展示了Planning::getBacklogTracker方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getAllowedChildrenTypes

 /**
  * @see Tracker_Artifact::getAllowedChildrenTypes()
  */
 public function getAllowedChildrenTypes()
 {
     $trackers = $this->artifact->getAllowedChildrenTypes();
     if ($this->getTracker() == $this->planning->getPlanningTracker()) {
         $trackers[] = $this->planning->getBacklogTracker();
     }
     return $trackers;
 }
開發者ID:nterray,項目名稱:tuleap,代碼行數:11,代碼來源:Item.class.php

示例2: 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

示例3: build

 public function build(User $user, Project $project, Tracker_CrossSearch_Query $cross_search_query, array $already_planned_artifact_ids, $backlog_tracker_id, Planning $planning, $planning_redirect_parameter)
 {
     $backlog_hierarchy = $this->hierarchy_factory->getHierarchy(array($backlog_tracker_id));
     $report = $this->getReport($user);
     $criteria = $this->getCriteria($user, $project, $report, $cross_search_query);
     $tracker_ids = $backlog_hierarchy->flatten();
     $artifacts = $this->getHierarchicallySortedArtifacts($user, $project, $tracker_ids, $cross_search_query, $already_planned_artifact_ids);
     // The following lines allows to tailor/rebuild the result before display
     // As of today (aug-12), we decided to display everything and to wait for
     // user feedback to see if we need to enable one of them.
     //$visitor     = new Planning_BacklogItemFilterVisitor($backlog_tracker_id, $this->hierarchy_factory, $already_planned_artifact_ids);
     //$artifacts   = $artifacts->accept($visitor);
     //$visitor     = new Planning_GroupByParentsVisitor($user);
     //$artifacts->accept($visitor);
     $backlog_actions_presenter = new Planning_BacklogActionsPresenter($planning->getBacklogTracker(), $planning_redirect_parameter);
     return new Planning_SearchContentView($report, $criteria, $artifacts, Tracker_ArtifactFactory::instance(), $this->form_element_factory, $user, $backlog_actions_presenter, $planning, $planning_redirect_parameter);
 }
開發者ID:nickl-,項目名稱:tuleap,代碼行數:17,代碼來源:ViewBuilder.class.php

示例4: 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


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