PHP 클래스 Horde_Kolab_Storage_Factory, horde

파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_driver Horde_Kolab_Storage_Driver Stores the driver once created.
$_params array A set of parameters for this factory.

공개 메소드들

메소드 설명
__construct ( array $params = [] ) Constructor.
create ( ) : Horde_Kolab_Storage Create the storage handler.
createCache ( ) : Horde_Kolab_Storage_Cache Create the cache handler.
createDriver ( array $params = [] ) : Horde_Kolab_Storage_Driver Create the storage backend driver.
createHistory ( string $user ) : Horde_History Create the history handler.
createNamespace ( string $type, string $user, array $params = [] ) : Horde_Kolab_Storage_Folder_Namespace Create a namespace handler.
getDriver ( )
getHistoryPrefixGenerator ( ) : Horde_Kolab_Storage_HistoryPrefix | Horde_Support_Stub Create a prefix factory.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( array $params = [] )
$params array A set of parameters.
 - storage:
 - cache:
 - queries:
 - queryset:
 - driver: (string) The type of backend driver. One of "mock", "php",
      "pear", "horde", "horde-socket", and "roundcube".
 - params: (array) Backend specific connection parameters.
 - logger: (Horde_Log_Logger) An optional log handler.
 - log: (array) An array of log decorators. Possible values include:
      'debug', 'driver_time', 'driver'.
 - format : (array)
    - factory: Name of the format parser factory class.
 - history: (Horde_History) A Horde_History driver.
 - history_prefix_generator: (Horde_Kolab_Storage_HistoryPrefix) An
       object that can provide prefix/collection mapping of the
       History system.
- sync_strategy: (Horde_Kolab_Storage_Synchronization) The strategy
        object to use for determining when we should synchronize
        with the Kolab backend. If omitted,
        Horde_Kolab_Storage_Synchronization_OncePerSession strategy is
        used.
 

create() 공개 메소드

Create the storage handler.
public create ( ) : Horde_Kolab_Storage
리턴 Horde_Kolab_Storage The storage handler.

createCache() 공개 메소드

Create the cache handler.
public createCache ( ) : Horde_Kolab_Storage_Cache
리턴 Horde_Kolab_Storage_Cache The cache handler.

createDriver() 공개 메소드

Create the storage backend driver.
public createDriver ( array $params = [] ) : Horde_Kolab_Storage_Driver
$params array Any parameters that should overwrite the default parameters provided in the factory constructor.
리턴 Horde_Kolab_Storage_Driver The storage handler.

createHistory() 공개 메소드

Create the history handler.
public createHistory ( string $user ) : Horde_History
$user string The current user.
리턴 Horde_History The history handler.

createNamespace() 공개 메소드

Create a namespace handler.
public createNamespace ( string $type, string $user, array $params = [] ) : Horde_Kolab_Storage_Folder_Namespace
$type string The namespace type.
$user string The current user.
$params array The parameters for the namespace.
리턴 Horde_Kolab_Storage_Folder_Namespace The namespace handler.

getDriver() 공개 메소드

public getDriver ( )

getHistoryPrefixGenerator() 공개 메소드

Create a prefix factory.
public getHistoryPrefixGenerator ( ) : Horde_Kolab_Storage_HistoryPrefix | Horde_Support_Stub
리턴 Horde_Kolab_Storage_HistoryPrefix | Horde_Support_Stub

프로퍼티 상세

$_driver 보호되어 있는 프로퍼티

Stores the driver once created.
protected Horde_Kolab_Storage_Driver $_driver
리턴 Horde_Kolab_Storage_Driver

$_params 보호되어 있는 프로퍼티

A set of parameters for this factory.
protected array $_params
리턴 array