53 $this->performer = $performer;
59 if ( !$this->performer->authorizeWrite(
'create', $this->title ) ) {
60 $this->result = self::CONSTRAINT_FAILED;
61 return self::CONSTRAINT_FAILED;
64 $this->result = self::CONSTRAINT_PASSED;
65 return self::CONSTRAINT_PASSED;
71 if ( $this->result === self::CONSTRAINT_FAILED ) {
72 $statusValue->
fatal(
'nocreatetext' );
73 $statusValue->value = self::AS_NO_CREATE_PERMISSION;
if(!defined('MW_SETUP_CALLBACK'))
The persistent session ID (if any) loaded at startup.
Verify be able to create the page in question if it is a new page.
__construct(Authority $performer, Title $title)
getLegacyStatus()
Get the legacy status for failure (or success)
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.