37 public const VALID_UNICODE =
'β³π²β₯πππΎπΈβ΄πΉβ―';
49 $this->input = $inputUnicode;
53 if ( $this->input === self::VALID_UNICODE ) {
54 return self::CONSTRAINT_PASSED;
56 return self::CONSTRAINT_FAILED;
61 if ( $this->input !== self::VALID_UNICODE ) {
62 $statusValue->
fatal(
'unicode-support-fail' );
63 $statusValue->value = self::AS_UNICODE_NOT_SUPPORTED;
if(!defined('MW_SETUP_CALLBACK'))
The persistent session ID (if any) loaded at startup.
Verify unicode constraint.
getLegacyStatus()
Get the legacy status for failure (or success)
__construct(string $inputUnicode)
Generic operation result class Has warning/error list, boolean status and arbitrary value.
fatal( $message,... $parameters)
Add an error and set OK to false, indicating that the operation as a whole was fatal.
Interface for all constraints that can prevent edits.