mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 03:12:41 +01:00
24 lines
469 B
PHP
24 lines
469 B
PHP
|
<?php
|
||
|
|
||
|
final class PhabricatorPinboardView extends AphrontView {
|
||
|
|
||
|
private $items = array();
|
||
|
|
||
|
public function addItem(PhabricatorPinBoardItemView $item) {
|
||
|
$this->items[] = $item;
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function render() {
|
||
|
require_celerity_resource('phabricator-pinboard-view-css');
|
||
|
|
||
|
return phutil_render_tag(
|
||
|
'div',
|
||
|
array(
|
||
|
'class' => 'phabricator-pinboard-view',
|
||
|
),
|
||
|
$this->renderSingleView($this->items));
|
||
|
}
|
||
|
|
||
|
}
|