*/
class MergeHistory {
- /** @const int Maximum number of revisions that can be merged at once */
+ /** Maximum number of revisions that can be merged at once */
const REVISION_LIMIT = 5000;
/** @var Title Page from which history will be merged */
abstract class AbstractRestriction implements Restriction {
/**
- * @var string
+ * String constant identifying the type of restriction. Expected to be overriden in subclasses
+ * with a non-empty string value.
*/
const TYPE = '';
/**
- * @var int
+ * Numeric type identifier. Expected to be overriden in subclasses with a non-zero integer
+ * number. Must not exceed 127 to fit into a TINYINT database field.
*/
const TYPE_ID = 0;
* Gets the id of the type of restriction. This id is used in the database.
*
* @since 1.33
- * @return string
+ * @return int
*/
public static function getTypeId();
* @ingroup Media
*/
class DjVuImage {
+
/**
- * @const DJVUTXT_MEMORY_LIMIT Memory limit for the DjVu description software
+ * Memory limit for the DjVu description software
*/
const DJVUTXT_MEMORY_LIMIT = 300000;
/** @var array Feature values */
protected $features = [];
- /** @const string profile type for completionSearch */
+ /** Profile type for completionSearch */
const COMPLETION_PROFILE_TYPE = 'completionSearchProfile';
- /** @const string profile type for query independent ranking features */
+ /** Profile type for query independent ranking features */
const FT_QUERY_INDEP_PROFILE_TYPE = 'fulltextQueryIndepProfile';
- /** @const int flag for legalSearchChars: includes all chars allowed in a search query */
+ /** Integer flag for legalSearchChars: includes all chars allowed in a search query */
const CHARS_ALL = 1;
- /** @const int flag for legalSearchChars: includes all chars allowed in a search term */
+ /** Integer flag for legalSearchChars: includes all chars allowed in a search term */
const CHARS_NO_SYNTAX = 2;
/**
* @ingroup Search
*/
class SearchResultSet implements Countable, IteratorAggregate {
+
/**
- * Types of interwiki results
- */
- /**
- * Results that are displayed only together with existing main wiki results
- * @var int
+ * Identifier for interwiki results that are displayed only together with existing main wiki
+ * results.
*/
const SECONDARY_RESULTS = 0;
+
/**
- * Results that can displayed even if no existing main wiki results exist
- * @var int
+ * Identifier for interwiki results that can be displayed even if no existing main wiki results
+ * exist.
*/
const INLINE_RESULTS = 1;
* of the database.
*/
class User implements IDBAccessObject, UserIdentity {
+
/**
- * @const int Number of characters in user_token field.
+ * Number of characters required for the user_token field.
*/
const TOKEN_LENGTH = 32;
/**
- * @const string An invalid value for user_token
+ * An invalid string value for the user_token field.
*/
const INVALID_TOKEN = '*** INVALID ***';
/**
- * @const int Serialized record version.
+ * Version number to tag cached versions of serialized User objects. Should be increased when
+ * {@link $mCacheVars} or one of it's members changes.
*/
const VERSION = 13;
*/
private $actualStore;
- /**
- * @var string
- */
const DB_READONLY_ERROR = 'The watchlist is currently readonly.';
/**