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


PHP TrackerFactory::getTrackersByGroupIdUserCanView方法代碼示例

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


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

示例1: build

 /**
  * @return Tracker_CrossSearch_SearchView 
  */
 public function build(User $user, Project $project, Tracker_CrossSearch_Query $cross_search_query)
 {
     $report = $this->getReport($user);
     $service = $this->getService($project);
     $criteria = $this->getCriteria($user, $project, $report, $cross_search_query);
     $trackers = $this->tracker_factory->getTrackersByGroupIdUserCanView($project->getGroupId(), $user);
     $tracker_ids = $this->getTrackersIds($trackers);
     $artifacts = $this->getHierarchicallySortedArtifacts($user, $project, $tracker_ids, $cross_search_query);
     $content_view = new Tracker_CrossSearch_SearchContentView($report, $criteria, $artifacts, Tracker_ArtifactFactory::instance(), $this->form_element_factory, $user);
     return new Tracker_CrossSearch_SearchView($project, $service, $criteria, $trackers, $content_view);
 }
開發者ID:nterray,項目名稱:tuleap,代碼行數:14,代碼來源:SearchViewBuilder.class.php

示例2: getDeniedTrackersForATrackerHierarchy

 public function getDeniedTrackersForATrackerHierarchy(Tracker $tracker, PFUser $user)
 {
     $concerned_by_scrum = $this->isScrumHierarchy($tracker);
     $concerned_by_kanban = $this->isKanbanHierarchy($tracker);
     if (!$concerned_by_scrum && !$concerned_by_kanban) {
         return array();
     }
     $available_trackers = $this->tracker_factory->getTrackersByGroupIdUserCanView($tracker->getGroupId(), $user);
     if ($concerned_by_scrum) {
         $possible_trackers = $this->getTrackersConcernedByScrum($available_trackers, $tracker->getProject());
         return array_diff($available_trackers, $possible_trackers);
     }
     $possible_trackers = $this->getTrackersConcernedByKanban($available_trackers, $tracker->getProject());
     return array_diff($available_trackers, $possible_trackers);
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:15,代碼來源:HierarchyChecker.php

示例3: getTrackersWithKanbanUsageAndHierarchy

 public function getTrackersWithKanbanUsageAndHierarchy($project_id, PFUser $user)
 {
     $trackers = array();
     $all_trackers = $this->tracker_factory->getTrackersByGroupIdUserCanView($project_id, $user);
     foreach ($all_trackers as $tracker) {
         $tracker_representation = array();
         $tracker_representation['id'] = $tracker->getId();
         $tracker_representation['name'] = $tracker->getName();
         if ($this->doesKanbanExistForTracker($tracker) || $this->hierarchy_checker->isScrumHierarchy($tracker)) {
             $tracker_representation['used'] = true;
             $trackers[] = $tracker_representation;
             continue;
         }
         $tracker_representation['used'] = false;
         $trackers[] = $tracker_representation;
     }
     return $trackers;
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:18,代碼來源:KanbanManager.class.php


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