Horde_Prefs_Identity::getName PHP Метод

getName() публичный Метод

Returns the user's full name.
public getName ( integer $ident = null ) : string
$ident integer The identity to retrieve the name from.
Результат string The user's full name, or the user name if it doesn't exist.
    public function getName($ident = null)
    {
        if (isset($this->_names[$ident])) {
            return $this->_names[$ident];
        }
        $this->_names[$ident] = $this->getValue($this->_prefnames['fullname'], $ident);
        if (!strlen($this->_names[$ident])) {
            $this->_names[$ident] = $this->_user;
        }
        return $this->_names[$ident];
    }

Usage Example

Пример #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());
 }
All Usage Examples Of Horde_Prefs_Identity::getName