示例#1
0
 /**
  * Implements the central method to create the display name of a user object. If you desire
  * to use another algorithm, extend the UmgtManager and re-implement this method! Be sure, to keep
  * all other methods untouched.
  *
  * @param UmgtUser $user The user object to save.
  *
  * @return string The desired display name.
  *
  * @author Christian Achatz
  * @version
  * Version 0.1, 23.06.2009<br />
  */
 protected function getDisplayName(UmgtUser $user)
 {
     $displayName = $user->getDisplayName();
     return empty($displayName) ? $user->getLastName() . ', ' . $user->getFirstName() : $user->getDisplayName();
 }