Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2893822
FuelHandleListView.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
FuelHandleListView.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment