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