Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96683150
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
Sun, Dec 29, 19:34
Size
780 B
Mime Type
text/x-php
Expires
Tue, Dec 31, 19:34 (2 d)
Engine
blob
Format
Raw Data
Handle
23225321
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