Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe JTableSession
+ Graphe d'héritage de JTableSession:

Fonctions membres publiques

 __construct (JDatabaseDriver $db)
 
 insert ($sessionId, $clientId)
 
 update ($updateNulls=false)
 
 destroy ($userId, $clientIds=array())
 
 purge ($maxLifetime=1440)
 
 exists ($userid)
 
 delete ($oid=null)
 

Description détaillée

Session table

Depuis
1.5
Obsolète:
3.2 Use SQL queries to interact with the session table.

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( JDatabaseDriver  $db)

Constructor

Paramètres
JDatabaseDriver$dbDatabase driver object.
Depuis
1.5
Obsolète:
3.2 Use SQL queries to interact with the session table.

Références $db.

Documentation des fonctions membres

◆ delete()

delete (   $oid = null)

Overloaded delete method

We must override it because of the non-integer primary key

Paramètres
integer$oidThe object id (optional).
Renvoie
mixed True if successful otherwise an error message
Depuis
1.5
Obsolète:
3.2 Use SQL queries to interact with the session table.

Références $oid, et $query.

◆ destroy()

destroy (   $userId,
  $clientIds = array() 
)

Destroys the pre-existing session

Paramètres
integer$userIdIdentifier of the user for this session.
array$clientIdsArray of client ids for which session(s) will be destroyed
Renvoie
boolean True on success.
Depuis
1.5
Obsolète:
3.2 Use SQL queries to interact with the session table.

Références $query, et $userId.

◆ exists()

exists (   $userid)

Find out if a user has one or more active sessions

Paramètres
integer$useridThe identifier of the user
Renvoie
boolean True if a session for this user exists
Depuis
1.5
Obsolète:
3.2 Use SQL queries to interact with the session table.

Références $query.

◆ insert()

insert (   $sessionId,
  $clientId 
)

Insert a session

Paramètres
string$sessionIdThe session id
integer$clientIdThe id of the client application
Renvoie
boolean True on success
Depuis
1.5
Obsolète:
3.2 Use SQL queries to interact with the session table.

Références $clientId.

◆ purge()

purge (   $maxLifetime = 1440)

Purge old sessions

Paramètres
integer$maxLifetimeSession age in seconds
Renvoie
mixed Resource on success, null on fail
Depuis
1.5
Obsolète:
3.2 Use SQL queries to interact with the session table.

Références $query.

◆ update()

update (   $updateNulls = false)

Updates the session

Paramètres
boolean$updateNullsTrue to update fields even if they are null.
Renvoie
boolean True on success.
Depuis
1.5
Obsolète:
3.2 Use SQL queries to interact with the session table.

La documentation de cette classe a été générée à partir du fichier suivant :