class MetadataManager

Manager for optional session metadata.

Methods

__construct( AbstractApplication $app, JDatabaseDriver $db)

MetadataManager constructor.

void
createRecordIfNonExisting( Session $session, User $user)

Create the metadata record if it does not exist.

void
deletePriorTo( integer $time)

Delete records with a timestamp prior to the given time.

Details

__construct( AbstractApplication $app, JDatabaseDriver $db)

MetadataManager constructor.

Parameters

AbstractApplication $app Application object.
JDatabaseDriver $db Database driver.

void createRecordIfNonExisting( Session $session, User $user)

Create the metadata record if it does not exist.

Parameters

Session $session The session to create the metadata record for.
User $user The user to associate with the record.

Return Value

void

Exceptions

RuntimeException

void deletePriorTo( integer $time)

Delete records with a timestamp prior to the given time.

Parameters

integer $time The time records should be deleted if expired before.

Return Value

void