示例#1
0
 /**
 * Return display name for this account. If there is no display name set username will be used
 *
 * @access public
 * @param void
 * @return string
 */
 function getDisplayName() {
   $display = parent::getDisplayName();
   return trim($display) == '' ? $this->getUsername() : $display;
 } // getDisplayName