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


PHP Planning::getPlanningTracker方法代碼示例

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


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

示例1: getOnTopConfigByPlanning

 /**
  * Returns the cardwall configuration of the given planning
  *
  * @param Planning $planning
  *
  * @return Cardwall_OnTop_Config | null
  */
 public function getOnTopConfigByPlanning(Planning $planning)
 {
     $tracker = $planning->getPlanningTracker();
     if ($this->getOnTopDao()->isEnabled($tracker->getId())) {
         return $this->getOnTopConfig($tracker);
     }
     return null;
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:15,代碼來源:ConfigFactory.class.php

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

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

示例4: getAllMilestones

 /**
  * Loads all open milestones for the given project and planning
  *
  * @param User $user
  * @param Project $project
  * @param Planning $planning
  *
  * @return Array of \Planning_Milestone
  */
 public function getAllMilestones(User $user, Planning $planning)
 {
     $project = $planning->getPlanningTracker()->getProject();
     $milestones = array();
     $artifacts = $this->artifact_factory->getArtifactsByTrackerIdUserCanView($user, $planning->getPlanningTrackerId());
     foreach ($artifacts as $artifact) {
         $planned_artifacts = $this->getPlannedArtifacts($user, $artifact);
         $milestones[] = new Planning_ArtifactMilestone($project, $planning, $artifact, $planned_artifacts);
     }
     return $milestones;
 }
開發者ID:nterray,項目名稱:tuleap,代碼行數:20,代碼來源:MilestoneFactory.class.php

示例5: getAvailablePlanningTrackers

 /**
  * Retrieve the project trackers that can be used as planning trackers.
  * 
  * @param Planning $planning The planning for which we want to know the available trackers.
  * 
  * @return Array of Tracker
  */
 public function getAvailablePlanningTrackers(Planning $planning)
 {
     $planning_trackers = array($planning->getPlanningTracker());
     foreach ($this->dao->searchNonPlanningTrackersByGroupId($planning->getGroupId()) as $row) {
         $planning_trackers[] = $this->tracker_factory->getInstanceFromRow($row);
     }
     return $planning_trackers;
 }
開發者ID:nterray,項目名稱:tuleap,代碼行數:15,代碼來源:PlanningFactory.class.php

示例6: getAllMilestonesWithoutCaching

 private function getAllMilestonesWithoutCaching(PFUser $user, Planning $planning)
 {
     $project = $planning->getPlanningTracker()->getProject();
     $artifacts = $this->artifact_factory->getArtifactsByTrackerIdUserCanView($user, $planning->getPlanningTrackerId());
     $milestones = array();
     foreach ($artifacts as $artifact) {
         /** @todo: this test is only here if we have crappy data in the db
          * ie. an artifact creation failure that leads to an incomplete artifact.
          * this should be fixed in artifact creation (transaction & co) and after
          * DB clean, the following test can be removed.
          */
         if ($artifact->getLastChangeset()) {
             $planned_artifacts = $this->getPlannedArtifacts($user, $artifact);
             $milestones[] = new Planning_ArtifactMilestone($project, $planning, $artifact, $planned_artifacts);
         }
     }
     return $milestones;
 }
開發者ID:ansarbek,項目名稱:tuleap,代碼行數:18,代碼來源:MilestoneFactory.class.php

示例7: getCardwallConfiguration

 private function getCardwallConfiguration(Planning $planning)
 {
     $tracker = $planning->getPlanningTracker();
     $view = null;
     EventManager::instance()->processEvent(AGILEDASHBOARD_EVENT_PLANNING_CONFIG, array('tracker' => $tracker, 'view' => &$view));
     return $view;
 }
開發者ID:rinodung,項目名稱:tuleap,代碼行數:7,代碼來源:PlanningController.class.php

示例8: createNewItemToPlan

 public function createNewItemToPlan()
 {
     $tracker = $this->planning->getPlanningTracker();
     return $GLOBALS['Language']->getText('plugin_agiledashboard', 'create_new_item_to_plan', array($tracker->getItemName()));
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:5,代碼來源:ShortAccess.class.php


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