PHP Класс 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.
Автор: Gunnar Wrobel ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

factory() публичный статический Метод

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
Результат Horde_Kolab_Server_Object | PEAR_Error The newly created concrete Horde_Kolab_Server_Object instance.

loadClass() публичный статический Метод

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.
Результат true | PEAR_Error True if successfull.