\Horde_Kolab_Format_Factory

A factory for generating Kolab format handlers.

Summary

Methods
Properties
Constants
__construct()
create()
createXmlParser()
createXmlHelper()
createXmlType()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$_params
N/A

Properties

$_params

$_params : array

Parameters for the parser construction.

Type

array

Methods

__construct()

__construct(array  $params = array()) 

Constructor.

Parameters

array $params

Additional parameters for the creation of parsers.

create()

create(string  $format = 'Xml', string  $type = '', array  $params = array()) : \Horde_Kolab_Format

Generates a handler for a specific Kolab object type.

Parameters

string $format

The format that the handler should work with.

string $type

The object type that should be handled.

array $params

Additional parameters.

'version' - The format version.

Throws

\Horde_Kolab_Format_Exception

If the specified handler does not exist.

Returns

\Horde_Kolab_Format

The handler.

createXmlHelper()

createXmlHelper(\DOMDocument  $xmldoc) : \Horde_Kolab_Format_Xml_Helper

Generates a XML helper instance.

Parameters

\DOMDocument $xmldoc

The XML document the helper works with.

Returns

\Horde_Kolab_Format_Xml_Helper

The helper utility.

createXmlType()

createXmlType(string  $type, array  $params = array()) : \Horde_Kolab_Format_Xml_Type

Generates a XML type that deals with XML data modifications.

Parameters

string $type

The value type.

array $params

Additional parameters.

Throws

\Horde_Kolab_Format_Exception

If the specified type does not exist.

Returns

\Horde_Kolab_Format_Xml_Type —

The type.