@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3/**
4 * Wraps an inline comment row scaffold in a table.
5 *
6 * This scaffold is used to ship inlines over the wire to the client, so they
7 * arrive in a form that's easy to manipulate (a valid table node).
8 */
9final class PHUIDiffInlineCommentTableScaffold extends AphrontView {
10
11 private $rows = array();
12
13 public function addRowScaffold(PHUIDiffInlineCommentRowScaffold $row) {
14 $this->rows[] = $row;
15 return $this;
16 }
17
18 public function render() {
19 return phutil_tag('table', array(), $this->rows);
20 }
21
22}