MediaWiki master
|
Back end to process the edit constraints. More...
Public Member Functions | |
__construct () | |
Create a new runner. | |
addConstraint (IEditConstraint $constraint) | |
Add a constraint to check. | |
checkConstraints () | |
Run constraint checks. | |
getFailedConstraint () | |
Get the constraint that failed. | |
Back end to process the edit constraints.
Constraints reflect possible errors that need to be checked
Definition at line 36 of file EditConstraintRunner.php.
MediaWiki\EditPage\Constraint\EditConstraintRunner::__construct | ( | ) |
Create a new runner.
Definition at line 57 of file EditConstraintRunner.php.
MediaWiki\EditPage\Constraint\EditConstraintRunner::addConstraint | ( | IEditConstraint | $constraint | ) |
Add a constraint to check.
Not all constraints are applicable to the action api or other methods of submitting an edit
For constraints that have dependencies, use the EditConstraintFactory.
Definition at line 71 of file EditConstraintRunner.php.
MediaWiki\EditPage\Constraint\EditConstraintRunner::checkConstraints | ( | ) |
Run constraint checks.
Returns true if all constraints pass, false otherwise. Check getLegacyStatus for the reason
Definition at line 81 of file EditConstraintRunner.php.
MediaWiki\EditPage\Constraint\EditConstraintRunner::getFailedConstraint | ( | ) |
Get the constraint that failed.
Definition at line 127 of file EditConstraintRunner.php.