59 $this->result = self::CONSTRAINT_PASSED;
60 return self::CONSTRAINT_PASSED;
70 if ( $changeTagStatus->isOK() ) {
71 $this->result = self::CONSTRAINT_PASSED;
72 return self::CONSTRAINT_PASSED;
75 $this->result = $changeTagStatus;
76 return self::CONSTRAINT_FAILED;
80 if ( $this->result === self::CONSTRAINT_PASSED ) {
81 $statusValue = StatusValue::newGood();
83 $statusValue = $this->result;
84 $statusValue->value = self::AS_CHANGE_TAG_ERROR;
if(ini_get('mbstring.func_overload')) if(!defined('MW_ENTRY_POINT'))
Pre-config setup: Before loading LocalSettings.php.
Verify user can add change tags.
StatusValue string null $result
__construct(Authority $performer, array $tags)
getLegacyStatus()
Get the legacy status for failure (or success)
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Interface for all constraints that can prevent edits.