2013-07-24 14:13:22 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PHUIStatusListView extends AphrontTagView {
|
|
|
|
|
|
|
|
private $items;
|
|
|
|
|
|
|
|
public function addItem(PHUIStatusItemView $item) {
|
|
|
|
$this->items[] = $item;
|
2013-12-05 11:59:41 -08:00
|
|
|
return $this;
|
2013-07-24 14:13:22 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
protected function canAppendChild() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2015-01-14 06:54:39 +11:00
|
|
|
protected function getTagName() {
|
2013-07-24 14:13:22 -07:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|