MediaWiki REL1_37
MediaWiki\EditPage\IEditObject Interface Reference

Serves as a common repository of constants for EditPage edit status results. More...

Inheritance diagram for MediaWiki\EditPage\IEditObject:

Public Attributes

const AS_ARTICLE_WAS_DELETED = 222
 Status: article was deleted while editing and wpRecreate == false or form was not posted.
 
const AS_BLANK_ARTICLE = 224
 Status: user tried to create a blank page and wpIgnoreBlankArticle == false.
 
const AS_BLOCKED_PAGE_FOR_USER = 215
 Status: User is blocked from editing this page.
 
const AS_CANNOT_USE_CUSTOM_MODEL = 241
 Status: when changing the content model is disallowed due to $wgContentHandlerUseDB being false.
 
const AS_CHANGE_TAG_ERROR = 237
 Status: an error relating to change tagging.
 
const AS_CONFLICT_DETECTED = 225
 Status: (non-resolvable) edit conflict.
 
const AS_CONTENT_TOO_BIG = 216
 Status: Content too big (> $wgMaxArticleSize)
 
const AS_END = 231
 Status: WikiPage::doEdit() was unsuccessful.
 
const AS_HOOK_ERROR = 210
 Status: Article update aborted by a hook function.
 
const AS_HOOK_ERROR_EXPECTED = 212
 Status: A hook function returned an error.
 
const AS_IMAGE_REDIRECT_ANON = 233
 Status: anonymous user is not allowed to upload (User::isAllowed('upload') == false)
 
const AS_IMAGE_REDIRECT_LOGGED = 234
 Status: logged in user is not allowed to upload (User::isAllowed('upload') == false)
 
const AS_MAX_ARTICLE_SIZE_EXCEEDED = 229
 Status: article is too big (> $wgMaxArticleSize), after merging in the new section.
 
const AS_NO_CHANGE_CONTENT_MODEL = 235
 Status: user tried to modify the content model, but is not allowed to do that ( User::isAllowed('editcontentmodel') == false )
 
const AS_NO_CREATE_PERMISSION = 223
 Status: user tried to create this page, but is not allowed to do that.
 
const AS_PARSE_ERROR = 240
 Status: can't parse content.
 
const AS_RATE_LIMITED = 221
 Status: rate limiter for action 'edit' was tripped.
 
const AS_READ_ONLY_PAGE = 220
 Status: wiki is in readonly mode (wfReadOnly() == true)
 
const AS_READ_ONLY_PAGE_ANON = 218
 Status: this anonymous user is not allowed to edit this page.
 
const AS_READ_ONLY_PAGE_LOGGED = 219
 Status: this logged in user is not allowed to edit this page.
 
const AS_SELF_REDIRECT = 236
 Status: user tried to create self-redirect and wpIgnoreSelfRedirect is false.
 
const AS_SPAM_ERROR = 232
 Status: summary contained spam according to one of the regexes in $wgSummarySpamRegex.
 
const AS_SUCCESS_NEW_ARTICLE = 201
 Status: Article successfully created.
 
const AS_SUCCESS_UPDATE = 200
 Status: Article successfully updated.
 
const AS_SUMMARY_NEEDED = 226
 Status: no edit summary given and the user has forceeditsummary set and the user is not editing in his own userspace or talkspace and wpIgnoreBlankSummary == false.
 
const AS_TEXTBOX_EMPTY = 228
 Status: user tried to create a new section without content.
 
const AS_UNICODE_NOT_SUPPORTED = 242
 Status: edit rejected because browser doesn't support Unicode.
 

Detailed Description

Serves as a common repository of constants for EditPage edit status results.

Each of these is a possible status value

Access: internal

Definition at line 30 of file IEditObject.php.

Member Data Documentation

◆ AS_ARTICLE_WAS_DELETED

const MediaWiki\EditPage\IEditObject::AS_ARTICLE_WAS_DELETED = 222

Status: article was deleted while editing and wpRecreate == false or form was not posted.

Definition at line 62 of file IEditObject.php.

Referenced by ApiEditPage\execute(), and EditPage\handleStatus().

◆ AS_BLANK_ARTICLE

const MediaWiki\EditPage\IEditObject::AS_BLANK_ARTICLE = 224

Status: user tried to create a blank page and wpIgnoreBlankArticle == false.

Definition at line 68 of file IEditObject.php.

Referenced by ApiEditPage\execute(), and EditPage\handleStatus().

◆ AS_BLOCKED_PAGE_FOR_USER

const MediaWiki\EditPage\IEditObject::AS_BLOCKED_PAGE_FOR_USER = 215

Status: User is blocked from editing this page.

Definition at line 44 of file IEditObject.php.

Referenced by ApiEditPage\execute(), and EditPage\handleStatus().

◆ AS_CANNOT_USE_CUSTOM_MODEL

const MediaWiki\EditPage\IEditObject::AS_CANNOT_USE_CUSTOM_MODEL = 241

Status: when changing the content model is disallowed due to $wgContentHandlerUseDB being false.

Deprecated:
since 1.35, meaningless since $wgContentHandlerUseDB has been removed.

Definition at line 118 of file IEditObject.php.

Referenced by EditPage\handleStatus().

◆ AS_CHANGE_TAG_ERROR

const MediaWiki\EditPage\IEditObject::AS_CHANGE_TAG_ERROR = 237

Status: an error relating to change tagging.

Look at the message key for more details

Definition at line 107 of file IEditObject.php.

◆ AS_CONFLICT_DETECTED

const MediaWiki\EditPage\IEditObject::AS_CONFLICT_DETECTED = 225

Status: (non-resolvable) edit conflict.

Definition at line 71 of file IEditObject.php.

Referenced by ApiEditPage\execute(), and EditPage\handleStatus().

◆ AS_CONTENT_TOO_BIG

const MediaWiki\EditPage\IEditObject::AS_CONTENT_TOO_BIG = 216

◆ AS_END

const MediaWiki\EditPage\IEditObject::AS_END = 231

Status: WikiPage::doEdit() was unsuccessful.

Definition at line 86 of file IEditObject.php.

Referenced by EditPage\handleStatus().

◆ AS_HOOK_ERROR

const MediaWiki\EditPage\IEditObject::AS_HOOK_ERROR = 210

Status: Article update aborted by a hook function.

Definition at line 38 of file IEditObject.php.

Referenced by ApiEditPage\execute(), and EditPage\handleStatus().

◆ AS_HOOK_ERROR_EXPECTED

const MediaWiki\EditPage\IEditObject::AS_HOOK_ERROR_EXPECTED = 212

◆ AS_IMAGE_REDIRECT_ANON

const MediaWiki\EditPage\IEditObject::AS_IMAGE_REDIRECT_ANON = 233

Status: anonymous user is not allowed to upload (User::isAllowed('upload') == false)

Definition at line 92 of file IEditObject.php.

Referenced by ApiEditPage\execute(), and EditPage\handleStatus().

◆ AS_IMAGE_REDIRECT_LOGGED

const MediaWiki\EditPage\IEditObject::AS_IMAGE_REDIRECT_LOGGED = 234

Status: logged in user is not allowed to upload (User::isAllowed('upload') == false)

Definition at line 95 of file IEditObject.php.

Referenced by ApiEditPage\execute(), and EditPage\handleStatus().

◆ AS_MAX_ARTICLE_SIZE_EXCEEDED

const MediaWiki\EditPage\IEditObject::AS_MAX_ARTICLE_SIZE_EXCEEDED = 229

Status: article is too big (> $wgMaxArticleSize), after merging in the new section.

Definition at line 83 of file IEditObject.php.

Referenced by MediaWiki\EditPage\Constraint\PageSizeConstraint\__construct(), ApiEditPage\execute(), and EditPage\handleStatus().

◆ AS_NO_CHANGE_CONTENT_MODEL

const MediaWiki\EditPage\IEditObject::AS_NO_CHANGE_CONTENT_MODEL = 235

Status: user tried to modify the content model, but is not allowed to do that ( User::isAllowed('editcontentmodel') == false )

Definition at line 101 of file IEditObject.php.

Referenced by ApiEditPage\execute(), and EditPage\handleStatus().

◆ AS_NO_CREATE_PERMISSION

const MediaWiki\EditPage\IEditObject::AS_NO_CREATE_PERMISSION = 223

Status: user tried to create this page, but is not allowed to do that.

Definition at line 65 of file IEditObject.php.

Referenced by ApiEditPage\execute(), and EditPage\handleStatus().

◆ AS_PARSE_ERROR

const MediaWiki\EditPage\IEditObject::AS_PARSE_ERROR = 240

Status: can't parse content.

Definition at line 110 of file IEditObject.php.

Referenced by EditPage\handleStatus().

◆ AS_RATE_LIMITED

const MediaWiki\EditPage\IEditObject::AS_RATE_LIMITED = 221

Status: rate limiter for action 'edit' was tripped.

Definition at line 59 of file IEditObject.php.

Referenced by ApiEditPage\execute(), and EditPage\handleStatus().

◆ AS_READ_ONLY_PAGE

const MediaWiki\EditPage\IEditObject::AS_READ_ONLY_PAGE = 220

Status: wiki is in readonly mode (wfReadOnly() == true)

Definition at line 56 of file IEditObject.php.

Referenced by ApiEditPage\execute(), and EditPage\handleStatus().

◆ AS_READ_ONLY_PAGE_ANON

const MediaWiki\EditPage\IEditObject::AS_READ_ONLY_PAGE_ANON = 218

Status: this anonymous user is not allowed to edit this page.

Definition at line 50 of file IEditObject.php.

Referenced by ApiEditPage\execute(), and EditPage\handleStatus().

◆ AS_READ_ONLY_PAGE_LOGGED

const MediaWiki\EditPage\IEditObject::AS_READ_ONLY_PAGE_LOGGED = 219

Status: this logged in user is not allowed to edit this page.

Definition at line 53 of file IEditObject.php.

Referenced by ApiEditPage\execute(), and EditPage\handleStatus().

◆ AS_SELF_REDIRECT

const MediaWiki\EditPage\IEditObject::AS_SELF_REDIRECT = 236

Status: user tried to create self-redirect and wpIgnoreSelfRedirect is false.

Definition at line 104 of file IEditObject.php.

Referenced by EditPage\handleStatus().

◆ AS_SPAM_ERROR

const MediaWiki\EditPage\IEditObject::AS_SPAM_ERROR = 232

Status: summary contained spam according to one of the regexes in $wgSummarySpamRegex.

Definition at line 89 of file IEditObject.php.

Referenced by ApiEditPage\execute(), and EditPage\handleStatus().

◆ AS_SUCCESS_NEW_ARTICLE

const MediaWiki\EditPage\IEditObject::AS_SUCCESS_NEW_ARTICLE = 201

Status: Article successfully created.

Definition at line 35 of file IEditObject.php.

Referenced by ApiEditPage\execute(), and EditPage\handleStatus().

◆ AS_SUCCESS_UPDATE

const MediaWiki\EditPage\IEditObject::AS_SUCCESS_UPDATE = 200

Status: Article successfully updated.

Definition at line 32 of file IEditObject.php.

Referenced by ApiEditPage\execute(), and EditPage\handleStatus().

◆ AS_SUMMARY_NEEDED

const MediaWiki\EditPage\IEditObject::AS_SUMMARY_NEEDED = 226

Status: no edit summary given and the user has forceeditsummary set and the user is not editing in his own userspace or talkspace and wpIgnoreBlankSummary == false.

Definition at line 77 of file IEditObject.php.

Referenced by ApiEditPage\execute(), and EditPage\handleStatus().

◆ AS_TEXTBOX_EMPTY

const MediaWiki\EditPage\IEditObject::AS_TEXTBOX_EMPTY = 228

Status: user tried to create a new section without content.

Definition at line 80 of file IEditObject.php.

Referenced by ApiEditPage\execute(), and EditPage\handleStatus().

◆ AS_UNICODE_NOT_SUPPORTED

const MediaWiki\EditPage\IEditObject::AS_UNICODE_NOT_SUPPORTED = 242

Status: edit rejected because browser doesn't support Unicode.

Definition at line 121 of file IEditObject.php.

Referenced by EditPage\handleStatus().


The documentation for this interface was generated from the following file: