41 $this->userComment = $userComment;
45 if ( $this->userComment ==
'' ) {
47 return self::CONSTRAINT_FAILED;
49 return self::CONSTRAINT_PASSED;
54 if ( $this->userComment ==
'' ) {
55 $statusValue->
fatal(
'missingcommenttext' );
56 $statusValue->value = self::AS_TEXTBOX_EMPTY;
if(!defined('MW_SETUP_CALLBACK'))
The persistent session ID (if any) loaded at startup.
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.