Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F3996477
ValidationParams.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
892 B
Referenced Files
None
Subscribers
None
ValidationParams.php
View Options
<?php
namespace
MediaWiki\Content
;
use
MediaWiki\Page\PageIdentity
;
/**
* @since 1.38
* An object to hold validation params.
*/
class
ValidationParams
{
/** @var PageIdentity */
private
$pageIdentity
;
/** @var int */
private
$flags
;
/** @var int */
private
$parentRevId
;
public
function
__construct
(
PageIdentity
$pageIdentity
,
int
$flags
,
int
$parentRevId
=
-
1
)
{
$this
->
pageIdentity
=
$pageIdentity
;
$this
->
flags
=
$flags
;
$this
->
parentRevId
=
$parentRevId
;
}
public
function
getPageIdentity
():
PageIdentity
{
return
$this
->
pageIdentity
;
}
public
function
getFlags
():
int
{
return
$this
->
flags
;
}
/**
* @deprecated since 1.38. Born soft-deprecated as we will move usage of it
* to MultiContentSaveHook in ProofreadPage (only one place of usage).
*
* @return int
*/
public
function
getParentRevisionId
():
int
{
return
$this
->
parentRevId
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 14 2026, 04:36 (15 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
41/ba/ea254c31c1ad43dcaf14cc5ce168
Default Alt Text
ValidationParams.php (892 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment