Documentation

Horde_Core_History extends Horde_History
in package

Decorate the base Horde_History class to allow the username to be reset if the authenticated status changes after the history object has been initialized.

Tags
author

Michael J Rubinsky mrubinsk@horde.org

category

Horde

license

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

todo

For H6 we can replace type hints for Horde_History with Horde_Core_History so we can get rid of all the extra methods here and simply use __call().

Table of Contents

Properties

$_history  : Horde_History

Methods

__construct()  : mixed
Const'r
_getByTimestamp()  : mixed
_getHistory()  : mixed
getActionModSeq()  : mixed
getActionTimestamp()  : mixed
getByModSeq()  : mixed
getByTimestamp()  : mixed
getHighestModSeq()  : int
Return the maximum modification sequence. To be overridden in concrete class.
getHistory()  : mixed
getLatestEntry()  : mixed
log()  : mixed
removeByNames()  : mixed
removeByParent()  : mixed
setCache()  : mixed
Set Cache object.
setLogger()  : mixed
_log()  : mixed

Properties

$_history

protected Horde_History $_history

Methods

__construct()

Const'r

public __construct(Horde_History $history) : mixed
Parameters
$history : Horde_History

The actual history object.

_getByTimestamp()

public _getByTimestamp(mixed $cmp, mixed $ts[, array<string|int, mixed> $filters = array() ][, mixed $parent = null ]) : mixed
Parameters
$cmp : mixed
$ts : mixed
$filters : array<string|int, mixed> = array()
$parent : mixed = null

_getHistory()

public _getHistory(mixed $guid) : mixed
Parameters
$guid : mixed

getActionModSeq()

public getActionModSeq(mixed $guid, mixed $action) : mixed
Parameters
$guid : mixed
$action : mixed
Tags
see
Horde_History::getActionModSeq()

getActionTimestamp()

public getActionTimestamp(mixed $guid, mixed $action) : mixed
Parameters
$guid : mixed
$action : mixed
Tags
see
Horde_History::getActionTimestamp()

getByModSeq()

public getByModSeq(mixed $start, mixed $end[, mixed $filters = array() ][, mixed $parent = null ]) : mixed
Parameters
$start : mixed
$end : mixed
$filters : mixed = array()
$parent : mixed = null
Tags
see

Horde_History:getByModSeq()

getByTimestamp()

public getByTimestamp(mixed $cmp, mixed $ts[, array<string|int, mixed> $filters = array() ][, mixed $parent = null ]) : mixed
Parameters
$cmp : mixed
$ts : mixed
$filters : array<string|int, mixed> = array()
$parent : mixed = null
Tags
see
Horde_History::getByTimestamp()

getHighestModSeq()

Return the maximum modification sequence. To be overridden in concrete class.

public getHighestModSeq([string $parent = null ]) : int
Parameters
$parent : string = null

Restrict to entries a specific parent.

Return values
int

The modseq

getHistory()

public getHistory(mixed $guid) : mixed
Parameters
$guid : mixed
Tags
see
Horde_History::getHistory()

getLatestEntry()

public getLatestEntry(mixed $guid[, mixed $use_ts = false ]) : mixed
Parameters
$guid : mixed
$use_ts : mixed = false
Tags
see
Horde_History::getLatestEntry()

log()

public log(mixed $guid[, array<string|int, mixed> $attributes = array() ][, mixed $replaceAction = false ]) : mixed
Parameters
$guid : mixed
$attributes : array<string|int, mixed> = array()
$replaceAction : mixed = false
Tags
see
Horde_History::log()

Overridden to ensure we have the current auth username.

removeByNames()

public removeByNames(array<string|int, mixed> $names) : mixed
Parameters
$names : array<string|int, mixed>
Tags
see
Horde_History::removeByNames()

removeByParent()

public removeByParent(mixed $parent) : mixed
Parameters
$parent : mixed
Tags
see
Horde_History::removeByParent()

setCache()

Set Cache object.

public setCache(Horde_Cache $cache) : mixed
Parameters
$cache : Horde_Cache

The cache instance.

setLogger()

public setLogger(Horde_Log_Logger $logger) : mixed
Parameters
$logger : Horde_Log_Logger
Tags
see
Horde_History::setLogger()

_log()

protected _log(Horde_History_Log $history, array<string|int, mixed> $attributes[, mixed $replaceAction = false ]) : mixed
Parameters
$history : Horde_History_Log
$attributes : array<string|int, mixed>
$replaceAction : mixed = false

        
On this page

Search results