Documentation

Horde_Core_Factory_ThemesCache extends Horde_Core_Factory_Base
in package
implements Horde_Shutdown_Task

A Horde_Injector:: based Horde_Themes_Cache:: factory.

Copyright 2010-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.

Tags
category

Horde

author

Michael Slusarz slusarz@horde.org

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

Table of Contents

Interfaces

Horde_Shutdown_Task
Interface to enable a class to implement a shutdown task.

Properties

$_injector  : Horde_Injector
The injector.
$_instances  : array<string|int, mixed>
Instances.

Methods

__construct()  : mixed
Constructor.
create()  : Horde_Themes_Cache
Return the Horde_Themes_Cache:: instance.
expireCache()  : bool
Expire cache entry.
shutdown()  : mixed
Store object in cache.
_getDriverName()  : string
Return the classname of the driver to load.

Properties

$_injector

The injector.

protected Horde_Injector $_injector

$_instances

Instances.

private array<string|int, mixed> $_instances = array()

Methods

__construct()

Constructor.

public __construct(Horde_Injector $injector) : mixed
Parameters
$injector : Horde_Injector

The injector to use.

create()

Return the Horde_Themes_Cache:: instance.

public create(string $app, string $theme) : Horde_Themes_Cache
Parameters
$app : string

The application name.

$theme : string

The theme name.

Return values
Horde_Themes_Cache

The singleton instance.

expireCache()

Expire cache entry.

public expireCache(string $app, string $theme) : bool
Parameters
$app : string

The application name.

$theme : string

The theme name.

Tags
throws
Horde_Exception
Return values
bool

True if cache entry existed and was deleted.

shutdown()

Store object in cache.

public shutdown() : mixed

_getDriverName()

Return the classname of the driver to load.

protected _getDriverName(string $driver, string $base) : string
Parameters
$driver : string

Driver name.

$base : string

The base classname.

Tags
throws
Horde_Exception
Return values
string

Classname.


        
On this page

Search results