MediaWiki REL1_40
IEditConstraint.php
Go to the documentation of this file.
1<?php
22
24use StatusValue;
25
33interface IEditConstraint extends IEditObject {
34
36 public const CONSTRAINT_PASSED = 'constraint-passed';
37
39 public const CONSTRAINT_FAILED = 'constraint-failed';
40
44 public function checkConstraint(): string;
45
55 public function getLegacyStatus(): StatusValue;
56
57}
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Interface for all constraints that can prevent edits.
getLegacyStatus()
Get the legacy status for failure (or success)
Serves as a common repository of constants for EditPage edit status results.