Page MenuHomePhorge

render.php
No OneTemporary

Size
780 B
Referenced Files
None
Subscribers
None

render.php

<?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

Mime Type
text/x-php
Expires
Sun, May 4, 7:19 PM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
67386
Default Alt Text
render.php (780 B)

Event Timeline