Go to the documentation of this file.
32 'revision' =>
'RevDel_RevisionList',
33 'archive' =>
'RevDel_ArchiveList',
34 'oldimage' =>
'RevDel_FileList',
35 'filearchive' =>
'RevDel_ArchivedFileList',
36 'logging' =>
'RevDel_LogList',
41 'oldid' =>
'revision',
42 'artimestamp' =>
'archive',
43 'oldimage' =>
'oldimage',
44 'fileid' =>
'filearchive',
55 return array_keys( self::$allowedTypes );
66 if ( isset( self::$deprecatedTypeMap[$typeName] ) ) {
67 $typeName = self::$deprecatedTypeMap[$typeName];
69 return isset( self::$allowedTypes[$typeName] ) ? $typeName :
null;
85 throw new MWException( __METHOD__ .
": Unknown RevDel type '$typeName'" );
87 return new self::$allowedTypes[$typeName]( $context,
$title, $ids );
101 protected static function checkItem( $desc, $field, $diff, $new, &$arr ) {
102 if ( $diff & $field ) {
103 $arr[( $new & $field ) ? 0 : 1][] = $desc;
138 $ret[2][] =
'revdelete-restricted';
140 $ret[2][] =
'revdelete-unrestricted';
157 return call_user_func(
array( self::$allowedTypes[$typeName],
'getRelationType' ) );
171 return call_user_func(
array( self::$allowedTypes[$typeName],
'getRestriction' ) );
185 return call_user_func(
array( self::$allowedTypes[$typeName],
'getRevdelConstant' ) );
201 return call_user_func(
array( self::$allowedTypes[$typeName],
'suggestTarget' ), $target, $ids );
215 $exists =
$dbr->selectField(
'revision',
'1',
216 array(
'rev_id' => $revid ), __METHOD__ );
224 'ar_title' =>
$title->getDBkey(),
225 'ar_rev_id' => $revid ), __METHOD__ );
240 foreach ( $bitPars
as $const => $val ) {
243 } elseif ( $val == -1 ) {
244 $newBits |= ( $oldfield & $const );
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
& wfGetDB( $db, $groups=array(), $wiki=false)
Get a Database object.
General controller for RevDel, used by both SpecialRevisiondelete and ApiRevisionDelete.
static $allowedTypes
List of known revdel types, with their corresponding list classes.
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses & $ret
static checkRevisionExistence( $title, $revid)
Checks if a revision still exists in the revision table.
static getTypes()
Lists the valid possible types for revision deletion.
static extractBitfield( $bitPars, $oldfield)
Put together a rev_deleted bitfield.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
static $deprecatedTypeMap
Type map to support old log entries.
static createList( $typeName, IContextSource $context, Title $title, array $ids)
Instantiate the appropriate list class for a given list of IDs.
static checkItem( $desc, $field, $diff, $new, &$arr)
Checks for a change in the bitfield for a certain option and updates the provided array accordingly.
static getRevdelConstant( $typeName)
Get the revision deletion constant for the RevDel type.
presenting them properly to the user as errors is done by the caller $title
static getChanges( $n, $o)
Gets an array of message keys describing the changes made to the visibility of the revision.
Interface for objects which can provide a context on request.
Represents a title within MediaWiki.
static getRelationType( $typeName)
Get DB field name for URL param...
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
static getCanonicalTypeName( $typeName)
Gets the canonical type name, if any.
static suggestTarget( $typeName, $target, array $ids)
Suggest a target for the revision deletion.
static getRestriction( $typeName)
Get the user right required for the RevDel type.