\Horde_Kolab_Storage_Object_MimeType

Mime type handling for Kolab objects.

Copyright 2011-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Summary

Methods
Properties
Constants
getMimeTypeFromObjectType()
matchMimePartToObjectType()
getMimeTypesFromFolderType()
matchMimePartToFolderType()
matchMimePartToHeaderType()
getObjectTypeFromMimePart()
getObjectTypeFromMimeType()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$_object_types
$_folder_types
N/A

Properties

$_object_types

$_object_types : 

Type

$_folder_types

$_folder_types : 

Type

Methods

getMimeTypeFromObjectType()

getMimeTypeFromObjectType(string  $type) : string

Determine the mime type given the object type.

Parameters

string $type

The object type.

Returns

string —

The mime type associated to the object type.

matchMimePartToObjectType()

matchMimePartToObjectType(\Horde_Mime_Part  $structure, string  $type) : string|boolean

Try to determine the MIME part that carries the object of the specified type.

Parameters

\Horde_Mime_Part $structure

A structural representation of the mime message.

string $type

The object type.

Returns

string|boolean —

The MIME ID of the message part carrying the object of the specified type or false if such a part was not identified within the message.

getMimeTypesFromFolderType()

getMimeTypesFromFolderType(string  $type) : array

Determine the mime type given the type of the folder that holds the object.

Parameters

string $type

The folder type.

Returns

array —

The mime types associated to the folder type.

matchMimePartToFolderType()

matchMimePartToFolderType(\Horde_Mime_Part  $structure, string  $type) : array|boolean

Tries to determine the MIME part that carries an object matching the specified folder type.

Parameters

\Horde_Mime_Part $structure

A structural representation of the mime message.

string $type

The folder type.

Returns

array|boolean —

The MIME ID and MIME type of the message part carrying an object matching the specified folder type or false if such a part was not identified within the message.

matchMimePartToHeaderType()

matchMimePartToHeaderType(\Horde_Mime_Part  $structure, \Horde_Mime_Headers  $headers) : string|boolean

Try to determine the MIME part that carries an object matching based on the message headers.

Parameters

\Horde_Mime_Part $structure

A structural representation of the mime message.

\Horde_Mime_Headers $headers

The message headers.

Returns

string|boolean —

The MIME ID of the message part carrying an object matching the message headers or false if such a part was not identified within the message.

getObjectTypeFromMimePart()

getObjectTypeFromMimePart(\Horde_Mime_Part  $structure, string  $id) : string|boolean

Determine the object type based on a specific MIME part that carries a Kolab object.

Parameters

\Horde_Mime_Part $structure

A structural representation of the mime message.

string $id

The MIME part carrying the Kolab object.

Returns

string|boolean —

The object type or false if no matching object type was found.

getObjectTypeFromMimeType()

getObjectTypeFromMimeType(string  $mime_type) : string|boolean

Determine the object type based on the mime type of a Kolab object.

Parameters

string $mime_type

The MIME type of the Kolab object.

Returns

string|boolean —

The object type or false if no matching object type was found.