forked from extern/egroupware
Add common function to get titles of linked entries
This commit is contained in:
parent
a97d5e65d4
commit
c972484133
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user