getCommonName() public method

Retrieve the common name of the resource.
public getCommonName ( ) : string
return string The common name.
示例#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();
 }
示例#2
0
文件: Base.php 项目: jubinpatel/horde
 /**
  * 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);
     }
 }