Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6099414
UserOptionsCacheEntry.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
UserOptionsCacheEntry.php
View Options
<?php
namespace
MediaWiki\User\Options
;
use
Wikimedia\Rdbms\IDBAccessObject
;
/**
* @internal
*/
class
UserOptionsCacheEntry
{
/**
* @var array<string,mixed> Values modified by setOption(), queued for update
*/
public
$modifiedValues
=
[];
/**
* @var array<string,string> The source name for each value in $originalValues
*/
public
$sources
=
[];
/**
* @var array<string,string> The value of the $global parameter to setOption()
*/
public
$globalUpdateActions
=
[];
/**
* @var array<string,string>|null 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
*/
public
$originalValues
;
/** @var int|null Query flags used to retrieve options from database */
public
$recency
;
/**
* Determine if it's OK to use cached options values for a given user and query flags
*
* @param int $recency
* @return bool
*/
public
function
canUseCachedValues
(
$recency
)
{
$recencyUsed
=
$this
->
recency
??
IDBAccessObject
::
READ_NONE
;
return
$recencyUsed
>=
$recency
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 6 2026, 06:56 (6 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b2/f5/a51515c905ffebde113e7ef6c03e
Default Alt Text
UserOptionsCacheEntry.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment