\Horde_Kolab_Server_Object_Factory

Factory methods for Horde_Kolab_Server_Object instances.

Copyright 2008-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
factory()
loadClass()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

factory()

factory(mixed  $type, string  $uid, array  $storage, array  $data = null) : \Horde_Kolab_Server_Object|\PEAR_Error

Attempts to return a concrete Horde_Kolab_Server_Object instance based on $type.

Parameters

mixed $type

The type of the Horde_Kolab_Server_Object subclass to return.

string $uid

UID of the object

array $storage

A link to the Kolab_Server class handling read/write.

array $data

A possible array of data for the object

Returns

\Horde_Kolab_Server_Object|\PEAR_Error —

The newly created concrete Horde_Kolab_Server_Object instance.

loadClass()

loadClass(mixed  $type) : true|\PEAR_Error

Attempts to load the concrete Horde_Kolab_Server_Object class based on $type.

Parameters

mixed $type

The type of the Horde_Kolab_Server_Object subclass.

Returns

true|\PEAR_Error —

True if successfull.