eZ Publish Community Project (Legacy Stack) 2013.4
Class

eZExpiryHandler

class eZExpiryHandler

Keeps track of expiry keys and their timestamps

Properties

array $Timestamps Holds the expiry timestamps array
bool $IsModified Wether data has been modified or not

Methods

eZExpiryHandler()

Constructor

void restore()

Load the expiry timestamps from cache

store()

Stores the current timestamps values to cache

setTimestamp(string $name, int $value)

Sets the expiry timestamp for a key

bool hasTimestamp(string $name)

Checks if an expiry timestamp exist

int|false timestamp(string $name)

Returns the expiry timestamp for a key

static  registerShutdownFunction()

Registers the shutdown function.

Details

at line 20
public eZExpiryHandler()

Constructor

at line 35
public void restore()

Load the expiry timestamps from cache

Return Value

void

at line 62
public store()

Stores the current timestamps values to cache

at line 77
public setTimestamp(string $name, int $value)

Sets the expiry timestamp for a key

Parameters

string $name Expiry key
int $value Expiry timestamp value

at line 90
public bool hasTimestamp(string $name)

Checks if an expiry timestamp exist

Parameters

string $name Expiry key name

Return Value

bool true if the timestamp exists, false otherwise

at line 102
public int|false timestamp(string $name)

Returns the expiry timestamp for a key

Parameters

string $name Expiry key

Return Value

int|false The timestamp if it exists, false otherwise

at line 171
static public registerShutdownFunction()

Registers the shutdown function.

See also

eZExpiryHandler::shutdown()