@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
at recaptime-dev/main 34 lines 623 B view raw
1<?php 2 3final 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}