Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/view/fuel/FuelMapView.php
12249 views
1
<?php
2
3
final class FuelMapView
4
extends FuelComponentView {
5
6
private $items = array();
7
8
public function newItem() {
9
$item = new FuelMapItemView();
10
$this->items[] = $item;
11
return $item;
12
}
13
14
public function render() {
15
require_celerity_resource('fuel-map-css');
16
17
$items = $this->items;
18
19
if (!$items) {
20
return null;
21
}
22
23
$body = phutil_tag(
24
'div',
25
array(
26
'class' => 'fuel-map-items',
27
),
28
$items);
29
30
$map = phutil_tag(
31
'div',
32
array(
33
'class' => 'fuel-map',
34
),
35
$body);
36
37
return $this->newComponentTag(
38
'div',
39
array(
40
'class' => 'fuel-map-component',
41
),
42
$map);
43
}
44
45
}
46
47