MediaWiki
REL1_41
IEditConstraint.php
Go to the documentation of this file.
1
<?php
21
namespace
MediaWiki\EditPage\Constraint
;
22
23
use
MediaWiki\EditPage\IEditObject
;
24
use
StatusValue
;
25
33
interface
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
}
StatusValue
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition
StatusValue.php:46
MediaWiki\EditPage\Constraint\IEditConstraint
Interface for all constraints that can prevent edits.
Definition
IEditConstraint.php:33
MediaWiki\EditPage\Constraint\IEditConstraint\getLegacyStatus
getLegacyStatus()
Get the legacy status for failure (or success)
MediaWiki\EditPage\Constraint\IEditConstraint\checkConstraint
checkConstraint()
MediaWiki\EditPage\IEditObject
Serves as a common repository of constants for EditPage edit status results.
Definition
IEditObject.php:30
MediaWiki\EditPage\Constraint
Definition
AccidentalRecreationConstraint.php:21
includes
editpage
Constraint
IEditConstraint.php
Generated on Sat Nov 23 2024 08:23:11 for MediaWiki by
1.10.0