Debian Codegraph @

extensions/DiscussionTools/modules/CommentDetails.js

raw symbols SCIP
1 /**
2 * More information about a comment obtained from various APIs, rather than parsed from the page.
3 *
4 * @class CommentDetails
5 * @constructor
6 * @param {string} pageName Page name the reply is being saved to
7 * @param {number} oldId Revision ID of page at time of editing
8 * @param {Object.<string,string>} notices Edit notices for the page where the reply is being saved.
9 * Keys are message names; values are HTML to display.
10 * @param {boolean} wouldAutoCreate Whether saving the comment would automatically create a
11 * temporary account if the user is logged out
12 * @param {string} preloadContent Preload content, may be wikitext or HTML depending on `preloadContentMode`
13 * @param {string} preloadContentMode 'source' or 'visual'
14 */
15 function CommentDetails( pageName, oldId, notices, wouldAutoCreate, preloadContent, preloadContentMode ) {
16 this.pageName = pageName;
17 this.oldId = oldId;
18 this.notices = notices;
19 this.wouldAutoCreate = wouldAutoCreate;
20 this.preloadContent = preloadContent;
21 this.preloadContentMode = preloadContentMode;
22 }
23
24 OO.initClass( CommentDetails );
25
26 module.exports = CommentDetails;