Add a basic "harbormaster.step.edit" API method
[phabricator/blender.git] / src / view / fuel / FuelMapView.php
blobd3a677a99f2ce3ca30483ae892f96ed54aba361d
1 <?php
3 final class FuelMapView
4 extends FuelComponentView {
6 private $items = array();
8 public function newItem() {
9 $item = new FuelMapItemView();
10 $this->items[] = $item;
11 return $item;
14 public function render() {
15 require_celerity_resource('fuel-map-css');
17 $items = $this->items;
19 if (!$items) {
20 return null;
23 $body = phutil_tag(
24 'div',
25 array(
26 'class' => 'fuel-map-items',
28 $items);
30 $map = phutil_tag(
31 'div',
32 array(
33 'class' => 'fuel-map',
35 $body);
37 return $this->newComponentTag(
38 'div',
39 array(
40 'class' => 'fuel-map-component',
42 $map);