Ejemplo n.º 1
0
 private function fetchViewContent($tree_of_artifacts, $artifact_factory, $report = null)
 {
     $report = $report ? $report : mock('Tracker_Report');
     $criteria = $this->buildCriteria($report);
     $factory = $this->buildAFormElementFactory();
     $user = mock('PFUser');
     $view = new Tracker_CrossSearch_SearchContentView($report, $criteria, $tree_of_artifacts, $artifact_factory, $factory, $user);
     return $view->fetch();
 }
Ejemplo n.º 2
0
 public function render(User $user)
 {
     $title = $GLOBALS['Language']->getText('plugin_tracker_crosssearch', 'title');
     $breadcrumbs = array(array('url' => null, 'title' => $title));
     $this->service->displayHeader($title, $breadcrumbs, array());
     $html = '';
     $html .= $this->fetchTrackerHomeNav();
     $html .= '<div class="tracker_homenav_cross_search">';
     $html .= '<h1>' . $title . '</h1>';
     if ($this->criteria) {
         $html .= $this->content_view->fetch();
         $html .= $this->fetchTrackerList($user);
     } else {
         $html .= '<em>' . 'There is no shared field to query across your trackers' . '</em>';
     }
     $html .= '</div>';
     echo $html;
     $this->service->displayFooter();
 }
Ejemplo n.º 3
0
 /**
  * @return string html
  */
 public function backlogSearchView()
 {
     return $this->backlog_search_view->fetch();
 }