MetadataManager

Manager for optional session metadata.

final
since

3.8.6

internal

Methods

__construct

MetadataManager constructor.

__construct(\Joomla\Application\AbstractApplication $app, \JDatabaseDriver $db) 
since

3.8.6

Arguments

$app

\Joomla\Application\AbstractApplicationApplication object.

$db

\JDatabaseDriverDatabase driver.

createRecordIfNonExisting

Create the metadata record if it does not exist.

createRecordIfNonExisting(\Joomla\CMS\Session\Session $session, \Joomla\CMS\User\User $user) : void
since

3.8.6

throws

\RuntimeException

Arguments

$session

\Joomla\CMS\Session\SessionThe session to create the metadata record for.

$user

\Joomla\CMS\User\UserThe user to associate with the record.

deletePriorTo

Delete records with a timestamp prior to the given time.

deletePriorTo(integer $time) : void
since

3.8.6

Arguments

$time

integerThe time records should be deleted if expired before.

Properties

app

Application object.

db

Database driver.

since

3.8.6

Type(s)

\JDatabaseDriver