Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/view/phui/PHUIStatusListView.php
12249 views
1
<?php
2
3
final class PHUIStatusListView extends AphrontTagView {
4
5
private $items;
6
7
public function addItem(PHUIStatusItemView $item) {
8
$this->items[] = $item;
9
return $this;
10
}
11
12
protected function canAppendChild() {
13
return false;
14
}
15
16
protected function getTagName() {
17
return 'table';
18
}
19
20
protected function getTagAttributes() {
21
require_celerity_resource('phui-status-list-view-css');
22
23
$classes = array();
24
$classes[] = 'phui-status-list-view';
25
26
return array(
27
'class' => implode(' ', $classes),
28
);
29
}
30
31
protected function getTagContent() {
32
return $this->items;
33
}
34
}
35
36