vB_Undo_Log
in package
Uses
vB_Trait_NoSerialize
Table of Contents
Methods
- __construct() : mixed
- __serialize() : array<string|int, mixed>
- __sleep() : array<string|int, mixed>
- __unserialize() : void
- __wakeup() : void
- deleteExpired() : void
- Delete expired entries
- getUndoItem() : vB_Undo_Item|null
- register() : int|false
- runUndoItem() : mixed
Methods
__construct()
public
__construct(vB_Db_Assertor $db, vB_Interface_Timenow $timenowProvider) : mixed
Parameters
- $db : vB_Db_Assertor
- $timenowProvider : vB_Interface_Timenow
__serialize()
public
__serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>__unserialize()
public
__unserialize(array<string|int, mixed> $serialized) : void
Parameters
- $serialized : array<string|int, mixed>
__wakeup()
public
__wakeup() : void
deleteExpired()
Delete expired entries
public
deleteExpired() : void
getUndoItem()
public
getUndoItem(int $undoid) : vB_Undo_Item|null
Parameters
- $undoid : int
Return values
vB_Undo_Item|nullregister()
public
register(vB_Undo_Item $undo[, int $deleteafter = 86400 ]) : int|false
Parameters
- $undo : vB_Undo_Item
- $deleteafter : int = 86400
Return values
int|falserunUndoItem()
public
runUndoItem(vB_Undo_Item $item) : mixed
Parameters
- $item : vB_Undo_Item