MediaWiki  master
MediaWiki\Content\ValidationParams Class Reference
Collaboration diagram for MediaWiki\Content\ValidationParams:

Public Member Functions

 __construct (PageIdentity $pageIdentity, int $flags, int $parentRevId=-1)
 
 getFlags ()
 
 getPageIdentity ()
 
 getParentRevisionId ()
 

Private Attributes

int $flags
 
PageIdentity $pageIdentity
 
int $parentRevId
 

Detailed Description

Since
1.38 An object to hold validation params.

Definition at line 10 of file ValidationParams.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Content\ValidationParams::__construct ( PageIdentity  $pageIdentity,
int  $flags,
int  $parentRevId = -1 
)

Member Function Documentation

◆ getFlags()

MediaWiki\Content\ValidationParams::getFlags ( )
Returns
int

Definition at line 38 of file ValidationParams.php.

Referenced by ContentHandler\validateSave().

◆ getPageIdentity()

MediaWiki\Content\ValidationParams::getPageIdentity ( )
Returns
PageIdentity

Definition at line 30 of file ValidationParams.php.

Referenced by ContentHandler\validateSave().

◆ getParentRevisionId()

MediaWiki\Content\ValidationParams::getParentRevisionId ( )
Deprecated:
since 1.38.

Born soft-deprecated as we will move usage of it to MultiContentSaveHook in ProofreadPage (only one place of usage).

Returns
int

Definition at line 48 of file ValidationParams.php.

Referenced by ContentHandler\validateSave().

Member Data Documentation

◆ $flags

int MediaWiki\Content\ValidationParams::$flags
private

Definition at line 15 of file ValidationParams.php.

Referenced by MediaWiki\Content\ValidationParams\__construct().

◆ $pageIdentity

PageIdentity MediaWiki\Content\ValidationParams::$pageIdentity
private

Definition at line 12 of file ValidationParams.php.

Referenced by MediaWiki\Content\ValidationParams\__construct().

◆ $parentRevId

int MediaWiki\Content\ValidationParams::$parentRevId
private

Definition at line 18 of file ValidationParams.php.

Referenced by MediaWiki\Content\ValidationParams\__construct().


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