mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-18 19:30:55 +01:00
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;
|
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
|
* Format a datetime
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user