MediaWiki  1.27.2
MediaWiki\Session\SessionId Class Reference

Value object holding the session ID in a manner that can be globally updated. More...

Collaboration diagram for MediaWiki\Session\SessionId:

Public Member Functions

 __construct ($id)
 
 __toString ()
 
 getId ()
 Get the ID. More...
 
 setId ($id)
 Set the ID. More...
 

Private Attributes

string $id
 

Detailed Description

Value object holding the session ID in a manner that can be globally updated.

This class exists because we want WebRequest to refer to the session, but it can't hold the Session itself due to issues with circular references and it can't just hold the ID as a string because we need to be able to update the ID when SessionBackend::resetId() is called.

Since
1.27

Definition at line 38 of file SessionId.php.

Constructor & Destructor Documentation

MediaWiki\Session\SessionId::__construct (   $id)
Parameters
string$id

Definition at line 45 of file SessionId.php.

References MediaWiki\Session\SessionId\$id.

Member Function Documentation

MediaWiki\Session\SessionId::__toString ( )

Definition at line 66 of file SessionId.php.

References MediaWiki\Session\SessionId\$id.

MediaWiki\Session\SessionId::getId ( )
MediaWiki\Session\SessionId::setId (   $id)

Set the ID.

Access:
private For use by \MediaWiki\Session\SessionManager only
Parameters
string$id

Definition at line 62 of file SessionId.php.

References MediaWiki\Session\SessionId\$id.

Member Data Documentation


The documentation for this class was generated from the following file: