*
* @param {array<mixed>} stack linear list of BBCode tags and regular strings
* @param {object} item current BBCode tag object
- * @param {integer} index current stack index representing `item`
+ * @param {int} index current stack index representing `item`
* @return {(string|array)} string if only the current item should be replaced or an array with
* the first item used for the opening tag and the second item for the closing tag
*/
*
* @param {array<mixed>} stack linear list of BBCode tags and regular strings
* @param {object} item current BBCode tag object
- * @param {integer} index current stack index representing `item`
+ * @param {int} index current stack index representing `item`
* @returns {array} first item represents the opening tag, the second the closing one
*/
_convertAlignment: function(stack, item, index) {
*
* @param {array<mixed>} stack linear list of BBCode tags and regular strings
* @param {object} item current BBCode tag object
- * @param {integer} index current stack index representing `item`
+ * @param {int} index current stack index representing `item`
* @returns {array} first item represents the opening tag, the second the closing one
*/
_convertAttachment: function(stack, item, index) {
*
* @param {array<mixed>} stack linear list of BBCode tags and regular strings
* @param {object} item current BBCode tag object
- * @param {integer} index current stack index representing `item`
+ * @param {int} index current stack index representing `item`
* @returns {array} first item represents the opening tag, the second the closing one
*/
_convertCode: function(stack, item, index) {
*
* @param {array<mixed>} stack linear list of BBCode tags and regular strings
* @param {object} item current BBCode tag object
- * @param {integer} index current stack index representing `item`
+ * @param {int} index current stack index representing `item`
* @returns {array} first item represents the opening tag, the second the closing one
*/
_convertColor: function(stack, item, index) {
*
* @param {array<mixed>} stack linear list of BBCode tags and regular strings
* @param {object} item current BBCode tag object
- * @param {integer} index current stack index representing `item`
+ * @param {int} index current stack index representing `item`
* @returns {array} first item represents the opening tag, the second the closing one
*/
_convertEmail: function(stack, item, index) {
*
* @param {array<mixed>} stack linear list of BBCode tags and regular strings
* @param {object} item current BBCode tag object
- * @param {integer} index current stack index representing `item`
+ * @param {int} index current stack index representing `item`
* @returns {array} first item represents the opening tag, the second the closing one
*/
_convertImage: function(stack, item, index) {
*
* @param {array<mixed>} stack linear list of BBCode tags and regular strings
* @param {object} item current BBCode tag object
- * @param {integer} index current stack index representing `item`
+ * @param {int} index current stack index representing `item`
* @returns {array} first item represents the opening tag, the second the closing one
*/
_convertList: function(stack, item, index) {
*
* @param {array<mixed>} stack linear list of BBCode tags and regular strings
* @param {object} item current BBCode tag object
- * @param {integer} index current stack index representing `item`
+ * @param {int} index current stack index representing `item`
* @returns {array} first item represents the opening tag, the second the closing one
*/
_convertQuote: function(stack, item, index) {
*
* @param {array<mixed>} stack linear list of BBCode tags and regular strings
* @param {object} item current BBCode tag object
- * @param {integer} index current stack index representing `item`
+ * @param {int} index current stack index representing `item`
* @returns {array} first item represents the opening tag, the second the closing one
*/
_convertSize: function(stack, item, index) {
*
* @param {array<mixed>} stack linear list of BBCode tags and regular strings
* @param {object} item current BBCode tag object
- * @param {integer} index current stack index representing `item`
+ * @param {int} index current stack index representing `item`
* @returns {array} first item represents the opening tag, the second the closing one
*/
_convertUrl: function(stack, item, index) {
/**
* Creates the email type dropdown.
*
- * @param {integer} objectId notification event id
+ * @param {int} objectId notification event id
* @param {string} initialValue initial email type
* @returns {Element} dropdown menu object
*/
/**
* Returns UTC timestamp, if date is not given, current time will be used.
*
- * @param Date date target date
- * @return integer UTC timestamp in seconds
+ * @param {Date} date target date
+ * @return {int} UTC timestamp in seconds
*/
gmdate: function(data) {
if (!(date instanceof Date)) {
/**
* Returns a Date object with precise offset (including timezone and local timezone).
*
- * @param integer timestamp timestamp in miliseconds
- * @param integer offset timezone offset in miliseconds
- * @return Date localized date
+ * @param {int} timestamp timestamp in miliseconds
+ * @param {int} offset timezone offset in miliseconds
+ * @return {Date} localized date
*/
getTimezoneDate: function(timestamp, offset) {
var date = new Date(timestamp);
*
* @param {Element} el element
* @param {CSSStyleDeclaration=} styles result of window.getComputedStyle()
- * @return {integer} outer width in px
+ * @return {int} outer width in px
*/
outerWidth: function(el, styles) {
styles = styles || window.getComputedStyle(el);
* Initializes an input field.
*
* @param {string} elementId input element id
- * @param {object<integer, string>} values preset values per language id
- * @param {object<integer, string>} availableLanguages language names per language id
+ * @param {object<int, string>} values preset values per language id
+ * @param {object<int, string>} availableLanguages language names per language id
* @param {boolean} forceSelection require i18n input
*/
init: function(elementId, values, availableLanguages, forceSelection) {
* @param {string} elementId input element id
* @param {Element} element input or textarea element
* @param {Dictionary} values preset values per language id
- * @param {object<integer, string>} availableLanguages language names per language id
+ * @param {object<int, string>} availableLanguages language names per language id
* @param {boolean} forceSelection require i18n input
*/
_initElement: function(elementId, element, values, availableLanguages, forceSelection) {
* Selects a language or non-i18n from the dropdown list.
*
* @param {string} elementId input element id
- * @param {integer} languageId language id or `0` to disable i18n
+ * @param {int} languageId language id or `0` to disable i18n
* @param {boolean} isInit triggers pre-selection on init
*/
_select: function(elementId, languageId, isInit) {
UiPagination.prototype = {
/**
* maximum number of displayed page links, should match the PHP implementation
- * @var {integer}
+ * @var {int}
*/
SHOW_LINKS: 11,
/**
* Creates a link to a specific page.
*
- * @param {integer} pageNo page number
+ * @param {int} pageNo page number
* @return {Element} link element
*/
_createLink: function(pageNo) {
/**
* Switches to given page number.
*
- * @param {integer} pageNo page number
+ * @param {int} pageNo page number
* @param {object} event event object
*/
switchPage: function(pageNo, event) {
/**
* Shows the current or given page.
*
- * @param {integer=} pageNo page number
+ * @param {int=} pageNo page number
*/
_showPage: function(pageNo) {
if (typeof pageNo === 'number') {
/**
* Handles a failed file upload.
*
- * @param {integer} uploadId identifier of a file upload
+ * @param {int} uploadId identifier of a file upload
* @param {object<string, *>} data response data
* @param {string} responseText response
* @param {XMLHttpRequest} xhr request object
/**
* Updates the progress of an upload.
*
- * @param {integer} uploadId internal upload identifier
+ * @param {int} uploadId internal upload identifier
* @param {XMLHttpRequestProgressEvent} event progress event object
*/
_progress: function(uploadId, event) {
/**
* Handles a successful file upload.
*
- * @param {integer} uploadId identifier of a file upload
+ * @param {int} uploadId identifier of a file upload
* @param {object<string, *>} data response data
* @param {string} responseText response
* @param {XMLHttpRequest} xhr request object
* @param {Event} event input change event object
* @param {File} file uploaded file
* @param {Blob} blob file blob
- * @return {(integer|Array.<integer>|null)} identifier(s) for the uploaded files
+ * @return {(int|Array.<int>|null)} identifier(s) for the uploaded files
*/
_upload: function(event, file, blob) {
// remove failed upload elements first
*
* @param {(FileList|Array.<File>)} files uploaded files
* @param {Blob} blob file blob
- * @return {(integer|null)} identifier for the uploaded files
+ * @return {(int|null)} identifier for the uploaded files
*/
_uploadFiles: function(files, blob) {
var uploadId = this._createFileElements(files);