Add common function to get titles of linked entries

This commit is contained in:
Nathan Gray 2011-10-25 22:30:51 +00:00
parent a97d5e65d4
commit c972484133

View File

@ -295,6 +295,22 @@ abstract class bo_merge
return $replacements;
}
/**
* Get links for the given record
*
* Uses egw_link system to get link titles
*/
protected function get_links($app, $id)
{
$links = egw_link::get_links($app, $id);
$link_titles = array();
foreach($links as $link_id => $link_info)
{
$link_titles[] = egw_link::title($link_info['app'], $link_info['id']);
}
return implode("\n",$link_titles);
}
/**
* Format a datetime
*