Class Horde_Kolab_Storage_Factory
A generic factory for the various Kolab_Storage classes.
Copyright 2004-2012 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.horde.org/licenses/lgpl21.
Methods summary
public
|
#
__construct( array $params = array() )
Constructor.
Parameters
- $params
- A set of parameters.
<pre>- driver : The type of backend driver. One of <span class="php-quote">"mock"</span>, <span class="php-quote">"php"</span>, <span class="php-quote">"pear"</span>,
<span class="php-quote">"horde"</span>, <span class="php-quote">"horde-socket"</span>, <span class="php-keyword1">and</span> <span class="php-quote">"roundcube"</span>.
- params : Backend specific connection parameters.
- logger : An optional <span class="php-keyword2">log</span> handler.
- timelog : An optional <span class="php-keyword2">time</span> keeping <span class="php-keyword2">log</span> handler.
- format : <span class="php-keyword1">Array</span>
- factory: Name of the format parser factory <span class="php-keyword1">class</span>.</pre>
|
public
Horde_Kolab_Storage
|
#
create( )
Create the storage handler.
Create the storage handler.
Returns
|
public
Horde_Kolab_Storage_Driver
|
#
createDriver( array $params = array() )
Create the storage backend driver.
Create the storage backend driver.
Parameters
- $params
- <p>Any parameters that should overwrite the default
parameters provided in the factory constructor.</p>
Returns
|
public
Horde_Kolab_Storage_Folder
|
#
createFolder( Horde_Kolab_Storage_List $list, string $folder )
Returns a representation for the requested folder.
Returns a representation for the requested folder.
Parameters
- $list
- The folder list handler.
- $folder
- The path of the folder to return.
Returns
|
public
Horde_Kolab_Storage_Folder_Namespace
|
#
createNamespace( string $type, string $user, array $params = array() )
Create a namespace handler.
Create a namespace handler.
Parameters
- $type
- The namespace type.
- $user
- The current user.
- $params
- The parameters for the namespace.
Returns
|
public
Horde_Kolab_Storage_Folder_Type
|
#
createFoldertype( string $annotation )
Create a folder type handler.
Create a folder type handler.
Parameters
- $annotation
- The folder type annotation value.
Returns
|
public
Horde_Kolab_Storage_Cache
|
#
createCache( )
Create the cache handler.
Create the cache handler.
Returns
|
public
Horde_History
|
#
createHistory( string $user )
Create the history handler.
Create the history handler.
Parameters
Returns
Horde_History The history handler.
|
public
Horde_Kolab_Format
|
#
createFormat( string $format, string $type, string $version )
Create a Kolab format handler.
Create a Kolab format handler.
Parameters
- $format
- The format that the handler should work with.
- $type
- The object type that should be handled.
- $version
- The format version.
Returns
Horde_Kolab_Format The format parser.
|