MediaWiki master
MediaWiki\User\Options\UserOptionsCacheEntry Class Reference

Public Member Functions

 canUseCachedValues ( $recency)
 Determine if it's OK to use cached options values for a given user and query flags.
 

Public Attributes

array< string, string > $globalUpdateActions = []
 The value of the $global parameter to setOption()
 
array< string, mixed > $modifiedValues = []
 Values modified by setOption(), queued for update.
 
array< string, string > null $originalValues
 Cached original user options with all the adjustments like time correction and hook changes applied.
 
int null $recency
 Query flags used to retrieve options from database.
 
array< string, string > $sources = []
 The source name for each value in $originalValues.
 

Detailed Description

Access: internal

Definition at line 10 of file UserOptionsCacheEntry.php.

Member Function Documentation

◆ canUseCachedValues()

MediaWiki\User\Options\UserOptionsCacheEntry::canUseCachedValues ( $recency)

Determine if it's OK to use cached options values for a given user and query flags.

Parameters
int$recency
Returns
bool

Definition at line 42 of file UserOptionsCacheEntry.php.

References MediaWiki\User\Options\UserOptionsCacheEntry\$recency.

Member Data Documentation

◆ $globalUpdateActions

array<string,string> MediaWiki\User\Options\UserOptionsCacheEntry::$globalUpdateActions = []

The value of the $global parameter to setOption()

Definition at line 24 of file UserOptionsCacheEntry.php.

◆ $modifiedValues

array<string,mixed> MediaWiki\User\Options\UserOptionsCacheEntry::$modifiedValues = []

Values modified by setOption(), queued for update.

Definition at line 14 of file UserOptionsCacheEntry.php.

◆ $originalValues

array<string,string> null MediaWiki\User\Options\UserOptionsCacheEntry::$originalValues

Cached original user options with all the adjustments like time correction and hook changes applied.

Ready to be returned. Null if the original values have not been loaded

Definition at line 31 of file UserOptionsCacheEntry.php.

◆ $recency

int null MediaWiki\User\Options\UserOptionsCacheEntry::$recency

Query flags used to retrieve options from database.

Definition at line 34 of file UserOptionsCacheEntry.php.

Referenced by MediaWiki\User\Options\UserOptionsCacheEntry\canUseCachedValues().

◆ $sources

array<string,string> MediaWiki\User\Options\UserOptionsCacheEntry::$sources = []

The source name for each value in $originalValues.

Definition at line 19 of file UserOptionsCacheEntry.php.


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