mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 03:12:41 +01:00
34 lines
602 B
PHP
34 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;
|
||
|
}
|
||
|
}
|