static function getAssignName($ID, $itemtype, $link = 0)
{
switch ($itemtype) {
case 'User':
if ($ID == 0) {
return "";
}
return getUserName($ID, $link);
case 'Supplier':
case 'Group':
$item = new $itemtype();
if ($item->getFromDB($ID)) {
$before = "";
$after = "";
if ($link) {
return $item->getLink(array('comments' => true));
}
return $item->getNameID();
}
return "";
}
}