/** * 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()); }
/** * 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); }