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.