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