[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Session/ -> MetadataManager.php (summary)

Joomla! Content Management System

Copyright: (C) 2018 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 321 lines (10 kb)
Included or required:0 times
Referenced: 2 times
Includes or requires: 0 files

Defines 7 functions

  __construct()
  createRecordIfNonExisting()
  createOrUpdateRecord()
  deletePriorTo()
  checkSessionRecordExists()
  createSessionRecord()
  updateSessionRecord()

Functions
Functions that are not part of a class:

__construct(AbstractApplication $app, DatabaseInterface $db)   X-Ref
MetadataManager constructor.

param: AbstractApplication  $app  Application object.
param: DatabaseInterface    $db   Database driver.

createRecordIfNonExisting(SessionInterface $session, User $user)   X-Ref
Create the metadata record if it does not exist.

param: SessionInterface  $session  The session to create the metadata record for.
param: User              $user     The user to associate with the record.
return: void

createOrUpdateRecord(SessionInterface $session, User $user)   X-Ref
Create the metadata record if it does not exist.

param: SessionInterface  $session  The session to create or update the metadata record for.
param: User              $user     The user to associate with the record.
return: void

deletePriorTo($time)   X-Ref
Delete records with a timestamp prior to the given time.

param: integer  $time  The time records should be deleted if expired before.
return: void

checkSessionRecordExists(string $sessionId)   X-Ref
Check if the session record exists

param: string  $sessionId  The session ID to check
return: integer  Status value for record presence

createSessionRecord(SessionInterface $session, User $user)   X-Ref
Create the session record

param: SessionInterface  $session  The session to create the metadata record for.
param: User              $user     The user to associate with the record.
return: void

updateSessionRecord(SessionInterface $session, User $user)   X-Ref
Update the session record

param: SessionInterface  $session  The session to update the metadata record for.
param: User              $user     The user to associate with the record.
return: void



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer