/** * 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->getFirstName() . " " . $this->getSurname() : $display; }
/** * Return display name for this account. If there is no display name associated username will be used * * @access public * @param void * @return string */ function getDisplayName() { $display = parent::getDisplayName(); return trim($display) == '' ? $this->getUserAccount()->getUsername() : $display; }