hasiCalendar() public method

Return the MIME part of the iCalendar attachment, if available.
public hasiCalendar ( ) : mixed
return mixed The mime id of an iCalendar part, if present. Otherwise false.
Beispiel #1
0
 public function testHasiCalendar()
 {
     $fixture = file_get_contents(__DIR__ . '/fixtures/invitation_one.eml');
     $mime = new Horde_ActiveSync_Mime(Horde_Mime_Part::parseMessage($fixture));
     $this->assertEquals(true, $mime->hasAttachments());
     $this->assertEquals(false, $mime->isSigned());
     $this->assertEquals(true, (bool) $mime->hasiCalendar());
 }
Beispiel #2
0
 /**
  * Return the MIME part of the iCalendar attachment, if available.
  *
  * @return mixed  The mime part, if present, false otherwise.
  */
 public function hasiCalendar()
 {
     return $this->_message->hasiCalendar();
 }