Page MenuHomePhorge

FuelHandleListView.php
No OneTemporary

FuelHandleListView.php

<?php
final class FuelHandleListView
extends FuelComponentView {
private $items = array();
public function addHandleList(PhabricatorHandleList $list) {
$this->items[] = array(
'type' => 'list',
'item' => $list,
);
return $this;
}
public function render() {
require_celerity_resource('fuel-handle-list-css');
$items = $this->items;
$item_views = array();
foreach ($items as $item) {
$item_type = $item['type'];
$item_item = $item['item'];
switch ($item_type) {
case 'list':
foreach ($item_item as $handle) {
$item_views[] = id(new FuelHandleListItemView())
->setHandle($handle);
}
break;
}
}
$body = phutil_tag(
'div',
array(
'class' => 'fuel-handle-list-body',
),
$item_views);
$list = phutil_tag(
'div',
array(
'class' => 'fuel-handle-list',
),
$body);
return $this->newComponentTag(
'div',
array(
'class' => 'fuel-handle-list-component',
),
$list);
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Jan 19, 19:07 (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127692
Default Alt Text
FuelHandleListView.php (1 KB)

Event Timeline