Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90778034
render.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Nov 4, 16:13
Size
784 B
Mime Type
text/x-php
Expires
Wed, Nov 6, 16:13 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22133226
Attached To
rPH Phabricator
render.php
View Options
<?php
/**
* Implodes a list of handles, rendering their links.
*
* @group handle
* @return PhutilSafeHTML
*/
function
implode_handle_links
(
$glue
,
array
$handles
)
{
$items
=
array
();
foreach
(
$handles
as
$handle
)
{
$items
[]
=
$handle
->
renderLink
();
}
return
phutil_implode_html
(
$glue
,
$items
);
}
/**
* Like @{function:implode_handle_links}. Implodes selected handles from a pool
* of handles. Useful if you load handles for various phids, but only render
* a few of them at a time.
*
* @group handle
* @return PhutilSafeHTML
*/
function
implode_selected_handle_links
(
$glue
,
array
$handles
,
array
$phids
)
{
$items
=
array
();
foreach
(
$phids
as
$phid
)
{
$items
[]
=
$handles
[
$phid
]->
renderLink
();
}
return
phutil_implode_html
(
$glue
,
$items
);
}
Event Timeline
Log In to Comment