Documentation

Horde_Themes_Cache
in package
implements Serializable

This class is responsible for parsing/building theme elements and then caching these results.

Tags
author

Michael Slusarz slusarz@horde.org

category

Horde

copyright

2010-2017 Horde LLC

license

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

Table of Contents

Interfaces

Serializable

Constants

APP_DEFAULT  = 2
APP_THEME  = 8
HORDE_DEFAULT  = 1
HORDE_THEME  = 4
VIEW  = 16

Properties

$changed  : bool
Has the data changed?
$_app  : string
Application name.
$_cacheid  : string
The cache ID.
$_complete  : bool
Is this a complete representation of the theme?
$_data  : array<string|int, mixed>
Theme data.
$_theme  : string
Theme name.

Methods

__construct()  : mixed
Constructor.
__serialize()  : array<string|int, mixed>
__unserialize()  : void
build()  : array<string|int, mixed>
Build the entire theme data structure.
get()  : mixed
getAll()  : mixed
getCacheId()  : mixed
serialize()  : mixed
unserialize()  : mixed
_build()  : mixed
Add theme data from an app/theme combo.
_get()  : mixed
_getOutput()  : mixed

Constants

APP_DEFAULT

public mixed APP_DEFAULT = 2

APP_THEME

public mixed APP_THEME = 8

HORDE_DEFAULT

public mixed HORDE_DEFAULT = 1

HORDE_THEME

public mixed HORDE_THEME = 4

Properties

$changed

Has the data changed?

public bool $changed = \false

$_app

Application name.

protected string $_app

$_cacheid

The cache ID.

protected string $_cacheid

$_complete

Is this a complete representation of the theme?

protected bool $_complete = \false

$_data

Theme data.

protected array<string|int, mixed> $_data = array()

$_theme

Theme name.

protected string $_theme

Methods

__construct()

Constructor.

public __construct(string $app, string $theme) : mixed
Parameters
$app : string

The application name.

$theme : string

The theme name.

__serialize()

public __serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

__unserialize()

public __unserialize(array<string|int, mixed> $data) : void
Parameters
$data : array<string|int, mixed>

build()

Build the entire theme data structure.

public build() : array<string|int, mixed>
Return values
array<string|int, mixed>

The list of theme files.

get()

public get(mixed $item[, mixed $mask = 0 ]) : mixed
Parameters
$item : mixed
$mask : mixed = 0

getAll()

public getAll(mixed $item[, mixed $mask = 0 ]) : mixed
Parameters
$item : mixed
$mask : mixed = 0

getCacheId()

public getCacheId() : mixed

serialize()

public serialize() : mixed

unserialize()

public unserialize(mixed $data) : mixed
Parameters
$data : mixed

_build()

Add theme data from an app/theme combo.

protected _build(string $app, string $theme, int $mask) : mixed
Parameters
$app : string

The application name.

$theme : string

The theme name.

$mask : int

Mask for the app/theme combo.

_get()

protected _get(mixed $item) : mixed
Parameters
$item : mixed

_getOutput()

protected _getOutput(mixed $app, mixed $theme, mixed $item) : mixed
Parameters
$app : mixed
$theme : mixed
$item : mixed

        
On this page

Search results