Автор: Jan Schneider (jan@horde.org)
Наследование: implements ArrayAccess, implements Countable, implements IteratorAggregate
Пример #1
0
 /**
  * Retrieve the "From" address for this resource.
  *
  * @return string The "From" address.
  */
 public function getFrom()
 {
     return (string) $this->_identity->getDefaultFromAddress(true);
 }
Пример #2
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());
 }
Пример #3
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);
 }