MediaWiki REL1_39
MediaWiki\Content\ValidationParams Class Reference

Public Member Functions

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

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 )

Definition at line 20 of file ValidationParams.php.

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(), and JsonContentHandler\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().


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