1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-15 03:12:41 +01:00
phorge-phorge/src/view/phui/PHUIStatusListView.php
epriestley dd132b632a Add PHUIStatusListView
Summary: For Diffusion's auditors list, and Differential's reviewers list (eventually). An inline option might make more sense in Differential, but I want to use this in Diffusion first, and we need more information there.

Test Plan: {F51424}

Reviewers: chad, btrahan

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D6559
2013-07-24 14:13:22 -07:00

33 lines
602 B
PHP

<?php
final class PHUIStatusListView extends AphrontTagView {
private $items;
public function addItem(PHUIStatusItemView $item) {
$this->items[] = $item;
}
protected function canAppendChild() {
return false;
}
public function getTagName() {
return 'table';
}
protected function getTagAttributes() {
require_celerity_resource('phui-status-list-view-css');
$classes = array();
$classes[] = 'phui-status-list-view';
return array(
'class' => implode(' ', $classes),
);
}
protected function getTagContent() {
return $this->items;
}
}