getCommonName() public méthode

Retrieve the common name of the resource.
public getCommonName ( ) : string
Résultat string The common name.
Exemple #1
0
 /**
  * Return the response as an iCalendar vEvent object.
  *
  * @param Horde_Itip_Response_Type $type The response type.
  * @param Horde_Icalendar|boolean  $vCal The parent container or false if not
  *                                       provided.
  *
  * @return Horde_Icalendar_Vevent The response object.
  */
 public function getVevent(Horde_Itip_Response_Type $type, $vCal = false)
 {
     $itip_reply = new Horde_Itip_Event_Vevent(Horde_Icalendar::newComponent('VEVENT', $vCal));
     $this->_request->copyEventInto($itip_reply);
     $type->setRequest($this->_request);
     $itip_reply->setAttendee($this->_resource->getMailAddress(), $this->_resource->getCommonName(), $type->getStatus());
     return $itip_reply->getVevent();
 }
Exemple #2
0
 /**
  * Return an additional message for the response.
  *
  * @param boolean $is_update Indicates if the request was an update.
  *
  * @return string The message.
  */
 public function getMessage($is_update = false)
 {
     if ($this->_comment === null) {
         return sprintf("%s %s:\n\n%s", $this->_resource->getCommonName(), $this->getShortMessage($is_update), $this->getRequest()->getSummary());
     } else {
         return sprintf("%s %s:\n\n%s\n\n%s", $this->_resource->getCommonName(), $this->getShortMessage($is_update), $this->getRequest()->getSummary(), $this->_comment);
     }
 }