getObjectTypeFromMimePart() public static method

Determine the object type based on a specific MIME part that carries a Kolab object.
public static getObjectTypeFromMimePart ( Horde_Mime_Part $structure, string $id ) : string | boolean
$structure Horde_Mime_Part A structural representation of the mime message.
$id string The MIME part carrying the Kolab object.
return string | boolean The object type or false if no matching object type was found.
Esempio n. 1
0
 public function testGetUnknownObjectType()
 {
     $this->assertFalse(Horde_Kolab_Storage_Object_MimeType::getObjectTypeFromMimePart($this->getMultipartMimeMessage('dummy/dummy'), 2));
 }