PHP Class Horde_Kolab_Server_Object_Factory, horde

Copyright 2008-2016 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.
Show file Open project: horde/horde Class Usage Examples

Public Methods

Method Description
factory ( mixed $type, string $uid, Horde_Kolab_Server_Composite $storage, array $data = null ) : Horde_Kolab_Server_Object | PEAR_Error Attempts to return a concrete Horde_Kolab_Server_Object instance based on $type.
loadClass ( mixed $type ) : true | PEAR_Error Attempts to load the concrete Horde_Kolab_Server_Object class based on $type.

Method Details

factory() public static method

Attempts to return a concrete Horde_Kolab_Server_Object instance based on $type.
public static factory ( mixed $type, string $uid, Horde_Kolab_Server_Composite $storage, array $data = null ) : Horde_Kolab_Server_Object | PEAR_Error
$type mixed The type of the Horde_Kolab_Server_Object subclass to return.
$uid string UID of the object
$storage Horde_Kolab_Server_Composite A link to the Kolab_Server class handling read/write.
$data array A possible array of data for the object
return Horde_Kolab_Server_Object | PEAR_Error The newly created concrete Horde_Kolab_Server_Object instance.

loadClass() public static method

Attempts to load the concrete Horde_Kolab_Server_Object class based on $type.
public static loadClass ( mixed $type ) : true | PEAR_Error
$type mixed The type of the Horde_Kolab_Server_Object subclass.
return true | PEAR_Error True if successfull.