getName() public method

Returns the user's full name.
public getName ( integer $ident = null ) : string
$ident integer The identity to retrieve the name from.
return string The user's full name, or the user name if it doesn't exist.
Esempio n. 1
0
 /**
  * Return the name of the default share.
  *
  * @return string The name of a default share.
  */
 protected function _getDefaultShareName()
 {
     return sprintf(_("Calendar of %s"), $this->_identity->getName());
 }
Esempio n. 2
0
 /**
  * Returns the user's full name.
  *
  * @param integer $ident  The identity to retrieve the name from.
  *
  * @return string  The user's full name, or the user name if it doesn't
  *                 exist.
  */
 public function getName($ident = null)
 {
     global $registry;
     if (!isset($this->_names[$ident]) && !strlen($this->getValue($this->_prefnames['fullname'], $ident))) {
         $this->_names[$ident] = $registry->convertUsername($this->_user, false);
     }
     return parent::getName($ident);
 }