Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1429156
MessagePoster.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
MessagePoster.js
View Options
(
function
()
{
/**
* @classdesc Abstract base class for posting messages to talk pages.
*
* @abstract
* @class
* @type {mw.messagePoster.MessagePoster}
*
* @constructor
* @description Create an instance of `mw.messagePoster.MessagePoster`.
* @param {mw.Title} title Title to post to
*/
mw
.
messagePoster
.
MessagePoster
=
function
MwMessagePoster
()
{};
OO
.
initClass
(
mw
.
messagePoster
.
MessagePoster
);
/**
* Post a message (with subject and body) to a talk page.
*
* @abstract
* @param {string} subject Subject/topic title. The amount of wikitext supported is
* implementation-specific. It is recommended to only use basic wikilink syntax for
* maximum compatibility.
* @param {string} body Body, as wikitext. Signature code will automatically be added
* by MessagePosters that require one, unless the message already contains the string
* '~~~'.
* @param {Object} [options] Message options. See MessagePoster implementations for details.
* @return {jQuery.Promise} Promise completing when the post succeeds or fails.
* For failure, will be rejected with three arguments:
*
* - primaryError - Primary error code. For a mw.Api failure,
* this should be 'api-fail'.
* - secondaryError - Secondary error code. For a mw.Api failure,
* this, should be mw.Api's code, e.g. 'http', 'ok-but-empty', or the error passed through
* from the server.
* - details - Further details about the error
*
* @localdoc
* The base class currently does nothing, but could be used for shared analytics or
* something.
*/
mw
.
messagePoster
.
MessagePoster
.
prototype
.
post
=
function
()
{};
}()
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 16, 17:11 (10 h, 21 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0a/55/e49f07809a2dd81c530be486fd16
Default Alt Text
MessagePoster.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment