Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F449354
render.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
780 B
Referenced Files
None
Subscribers
None
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
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, May 4, 7:19 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
67386
Default Alt Text
render.php (780 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment