Пример #1
0
 protected function fetchView(Codendi_Request $request, PFUser $user)
 {
     $view_collection = new Tracker_Artifact_View_ViewCollection();
     $view_collection->add(new Tracker_Artifact_View_Copy($this->artifact, $request, $user, $this));
     return $view_collection->fetchRequestedView($request);
 }
Пример #2
0
 protected function fetchView(Codendi_Request $request, PFUser $user)
 {
     $view_collection = new Tracker_Artifact_View_ViewCollection();
     $view_collection->add(new Tracker_Artifact_View_Edit($this->artifact, $request, $user, $this));
     if ($this->artifact->getTracker()->getChildren()) {
         $view_collection->add(new Tracker_Artifact_View_Hierarchy($this->artifact, $request, $user));
     }
     return $view_collection->fetchRequestedView($request);
 }