MediaWiki REL1_40
IEditObject.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\EditPage;
22
30interface IEditObject {
32 public const AS_SUCCESS_UPDATE = 200;
33
35 public const AS_SUCCESS_NEW_ARTICLE = 201;
36
38 public const AS_HOOK_ERROR = 210;
39
41 public const AS_HOOK_ERROR_EXPECTED = 212;
42
44 public const AS_BLOCKED_PAGE_FOR_USER = 215;
45
47 public const AS_CONTENT_TOO_BIG = 216;
48
50 public const AS_READ_ONLY_PAGE_ANON = 218;
51
53 public const AS_READ_ONLY_PAGE_LOGGED = 219;
54
56 public const AS_READ_ONLY_PAGE = 220;
57
59 public const AS_RATE_LIMITED = 221;
60
62 public const AS_ARTICLE_WAS_DELETED = 222;
63
65 public const AS_NO_CREATE_PERMISSION = 223;
66
68 public const AS_BLANK_ARTICLE = 224;
69
71 public const AS_CONFLICT_DETECTED = 225;
72
77 public const AS_SUMMARY_NEEDED = 226;
78
80 public const AS_TEXTBOX_EMPTY = 228;
81
83 public const AS_MAX_ARTICLE_SIZE_EXCEEDED = 229;
84
86 public const AS_END = 231;
87
89 public const AS_SPAM_ERROR = 232;
90
92 public const AS_IMAGE_REDIRECT_ANON = 233;
93
95 public const AS_IMAGE_REDIRECT_LOGGED = 234;
96
101 public const AS_NO_CHANGE_CONTENT_MODEL = 235;
102
104 public const AS_SELF_REDIRECT = 236;
105
107 public const AS_CHANGE_TAG_ERROR = 237;
108
110 public const AS_PARSE_ERROR = 240;
111
113 public const AS_UNICODE_NOT_SUPPORTED = 242;
114}
Serves as a common repository of constants for EditPage edit status results.
const AS_RATE_LIMITED
Status: rate limiter for action 'edit' was tripped.
const AS_NO_CHANGE_CONTENT_MODEL
Status: user tried to modify the content model, but is not allowed to do that ( User::isAllowed('edit...
const AS_READ_ONLY_PAGE_LOGGED
Status: this logged in user is not allowed to edit this page.
const AS_READ_ONLY_PAGE_ANON
Status: this anonymous user is not allowed to edit this page.
const AS_CONFLICT_DETECTED
Status: (non-resolvable) edit conflict.
const AS_UNICODE_NOT_SUPPORTED
Status: edit rejected because browser doesn't support Unicode.
const AS_ARTICLE_WAS_DELETED
Status: article was deleted while editing and wpRecreate == false or form was not posted.
const AS_TEXTBOX_EMPTY
Status: user tried to create a new section without content.
const AS_HOOK_ERROR_EXPECTED
Status: A hook function returned an error.
const AS_PARSE_ERROR
Status: can't parse content.
const AS_CONTENT_TOO_BIG
Status: Content too big (> $wgMaxArticleSize)
const AS_SPAM_ERROR
Status: summary contained spam according to one of the regexes in $wgSummarySpamRegex.
const AS_SUCCESS_UPDATE
Status: Article successfully updated.
const AS_IMAGE_REDIRECT_ANON
Status: anonymous user is not allowed to upload (User::isAllowed('upload') == false)
const AS_SELF_REDIRECT
Status: user tried to create self-redirect and wpIgnoreSelfRedirect is false.
const AS_SUCCESS_NEW_ARTICLE
Status: Article successfully created.
const AS_NO_CREATE_PERMISSION
Status: user tried to create this page, but is not allowed to do that.
const AS_IMAGE_REDIRECT_LOGGED
Status: logged in user is not allowed to upload (User::isAllowed('upload') == false)
const AS_MAX_ARTICLE_SIZE_EXCEEDED
Status: article is too big (> $wgMaxArticleSize), after merging in the new section.
const AS_END
Status: WikiPage::doEdit() was unsuccessful.
const AS_BLOCKED_PAGE_FOR_USER
Status: User is blocked from editing this page.
const AS_SUMMARY_NEEDED
Status: no edit summary given and the user has forceeditsummary set and the user is not editing in hi...
const AS_HOOK_ERROR
Status: Article update aborted by a hook function.
const AS_BLANK_ARTICLE
Status: user tried to create a blank page and wpIgnoreBlankArticle == false.
const AS_CHANGE_TAG_ERROR
Status: an error relating to change tagging.
const AS_READ_ONLY_PAGE
Status: wiki is in readonly mode (ReadOnlyMode::isReadOnly() == true)