private function displayTrackerSwitcher(PFUser $current_user)
 {
     $project = null;
     if ($this->source_artifact) {
         $project = $this->source_artifact->getTracker()->getProject();
         $GLOBALS['Response']->addFeedback('warning', $GLOBALS['Language']->getText('plugin_tracker', 'linked_to', array($this->source_artifact->fetchDirectLinkToArtifact(), $this->tracker_switcher->fetchTrackerSwitcher($current_user, ' ', $project, $this->tracker))), CODENDI_PURIFIER_DISABLED);
     } else {
         $GLOBALS['Response']->addFeedback('error', 'Error the artifact to link doesn\'t exist');
     }
     $GLOBALS['Response']->displayFeedback();
 }
 private function displayHeaderInArtifactLinkModal(Tracker_IFetchTrackerSwitcher $layout, Codendi_Request $request, PFUser $current_user, Tracker_Report $report, array $reports, $link_artifact_id)
 {
     $project = null;
     $artifact = Tracker_ArtifactFactory::instance()->getArtifactByid($link_artifact_id);
     if ($artifact) {
         $project = $artifact->getTracker()->getProject();
     }
     $this->renderer->renderToPage('header_in_artifact_link_modal', new Tracker_Report_HeaderInArtifactLinkModalPresenter($GLOBALS['Language']->getText('plugin_tracker_report', 'current_report'), $layout->fetchTrackerSwitcher($current_user, '<br />', $project, $report->getTracker()), $this->getSelectReportUrl($request, $report), $this->getReportSelector($report, $reports)));
 }