\Horde_Kolab_Storage_Object_Writer_Format

Converts between Kolab MIME parts and data arrays.

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
load()
save()
__construct()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
_getParser()
$_factory
$_params
$_formats
N/A

Properties

$_factory

$_factory : \Horde_Kolab_Format_Factory

The format parser factory.

Type

\Horde_Kolab_Format_Factory

$_params

$_params : array

Additional parameters for the format parsers.

Type

array

$_formats

$_formats : array

Holds a parser instance per object type.

Type

array

Methods

load()

load(resource  $content, \Horde_Kolab_Storage_Object  $object) 

Convert the object content into a data structure and update the object accordingly.

Parameters

resource $content

The raw content from the object.

\Horde_Kolab_Storage_Object $object

The object that should receive the parsed data.

save()

save(\Horde_Kolab_Storage_Object  $object) : string

Return the object data in a form that it can be stored in the backend.

Parameters

\Horde_Kolab_Storage_Object $object

The object that should receive the parsed data.

Returns

string —

The encoded object data, ready to be written into the backend.

__construct()

__construct(\Horde_Kolab_Format_Factory  $factory, array  $params = array()) 

Condtructor.

Parameters

\Horde_Kolab_Format_Factory $factory

The parser factory.

array $params

Additional parameters for the format parsers.

_getParser()

_getParser(  $type) 

Parameters

$type