repository = $repository; return $this; } public function setPaths(array $paths) { $this->paths = $paths; return $this; } public function setRoot($root) { $this->root = $root; return $this; } public function setCommit($commit) { $this->commit = $commit; return $this; } public function render() { $rows = array(); foreach ($this->paths as $path) { $rows[] = array( phutil_escape_html($path->getPath()), // TODO: link // TODO: etc etc ); } $view = new AphrontTableView($rows); $view->setHeaders( array( 'Path', )); return $view->render(); } }