Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/infrastructure/diff/view/PHUIDiffInlineCommentTableScaffold.php
12242 views
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
*/
9
final 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
}
23
24