public function render()
 {
     $views = array();
     foreach ($this->tasks as $task) {
         $view = new ManiphestTaskSummaryView();
         $view->setTask($task);
         $view->setUser($this->user);
         $view->setHandles($this->handles);
         $views[] = $view->render();
     }
     return '<div style="padding: 1em;">' . implode("\n", $views) . '</div>';
 }
Пример #2
0
 public function render()
 {
     $views = array();
     foreach ($this->tasks as $task) {
         $view = new ManiphestTaskSummaryView();
         $view->setTask($task);
         $view->setShowBatchControls($this->showBatchControls);
         $view->setShowSubpriorityControls($this->showSubpriorityControls);
         $view->setUser($this->user);
         $view->setHandles($this->handles);
         $views[] = $view->render();
     }
     return implode("\n", $views);
 }