Go to the documentation of this file.
45 return 'deleterevision';
54 return $rev ?
$rev->getTitle() : $target;
62 $ids = array_map(
'intval', $this->ids );
64 array(
'revision',
'page',
'user' ),
67 'rev_page' => $this->
title->getArticleID(),
71 array(
'ORDER BY' =>
'rev_id DESC' ),
77 if ( $live->numRows() >= count(
$ids ) ) {
83 $archived = $db->select(
array(
'archive' ),
'*',
88 array(
'ORDER BY' =>
'ar_rev_id DESC' )
91 if ( $archived->numRows() == 0 ) {
93 } elseif ( $live->numRows() == 0 ) {
98 foreach ( $live
as $row ) {
99 $rows[$row->rev_id] = $row;
101 foreach ( $archived
as $row ) {
102 $rows[$row->ar_rev_id] = $row;
110 if ( isset( $row->rev_id ) ) {
112 } elseif ( isset( $row->ar_rev_id ) ) {
116 throw new MWException(
'Invalid row type in RevDel_RevisionList' );
121 if ( is_null( $this->currentRevId ) ) {
123 $this->currentRevId = $dbw->selectField(
124 'page',
'page_latest', $this->
title->pageCond(), __METHOD__ );
134 $this->
title->invalidateCache();
139 $this->
title->purgeSquid();
162 return 'rev_timestamp';
182 return $this->revision->getVisibility();
188 $dbw->update(
'revision',
189 array(
'rev_deleted' => $bits ),
191 'rev_id' => $this->revision->getId(),
192 'rev_page' => $this->revision->getPage(),
193 'rev_deleted' => $this->
getBits()
197 if ( !$dbw->affectedRows() ) {
202 $dbw->update(
'recentchanges',
204 'rc_deleted' => $bits,
208 'rc_this_oldid' => $this->revision->getId(),
210 'rc_timestamp' => $dbw->timestamp( $this->revision->getTimestamp() ),
223 && $this->
list->getCurrent() == $this->
getId();
232 $date = htmlspecialchars( $this->
list->getLanguage()->userTimeAndDate(
233 $this->revision->getTimestamp(), $this->
list->getUser() ) );
243 'oldid' => $this->revision->getId(),
256 return $this->
list->msg(
'diff' )->escaped();
260 $this->list->msg(
'diff' )->escaped(),
263 'diff' => $this->revision->getId(),
272 $difflink = $this->
list->msg(
'parentheses' )
278 $revlink =
"<span class=\"history-deleted\">$revlink</span>";
280 return "<li>$difflink $revlink $userlink $comment</li>";
287 'id' =>
$rev->getId(),
317 return 'ar_timestamp';
325 $timestamps =
array();
326 foreach ( $this->ids
as $id ) {
327 $timestamps[] = $db->timestamp( $id );
329 return $db->select(
'archive',
'*',
331 'ar_namespace' => $this->
title->getNamespace(),
332 'ar_title' => $this->
title->getDBkey(),
333 'ar_timestamp' => $timestamps
336 array(
'ORDER BY' =>
'ar_timestamp DESC' )
360 array(
'page' => $this->
list->title->getArticleID() ) );
364 return 'ar_timestamp';
368 return 'ar_timestamp';
376 return 'ar_user_text';
380 # Convert DB timestamp to MW timestamp
381 return $this->revision->getTimestamp();
386 $dbw->update(
'archive',
387 array(
'ar_deleted' => $bits ),
389 'ar_namespace' => $this->
list->title->getNamespace(),
390 'ar_title' => $this->
list->title->getDBkey(),
392 'ar_timestamp' => $this->row->ar_timestamp,
393 'ar_rev_id' => $this->row->ar_rev_id,
394 'ar_deleted' => $this->
getBits()
397 return (
bool)$dbw->affectedRows();
401 $date = htmlspecialchars( $this->
list->getLanguage()->userTimeAndDate(
402 $this->revision->getTimestamp(), $this->
list->getUser() ) );
413 'target' => $this->
list->title->getPrefixedText(),
414 'timestamp' => $this->revision->getTimestamp()
421 return $this->
list->msg(
'diff' )->escaped();
426 $this->
list->msg(
'diff' )->escaped(),
429 'target' => $this->
list->title->getPrefixedText(),
431 'timestamp' => $this->revision->getTimestamp()
446 array(
'page' => $this->
list->title->getArticleID() ) );
454 return $this->revision->getId();
459 $dbw->update(
'archive',
460 array(
'ar_deleted' => $bits ),
461 array(
'ar_rev_id' => $this->row->ar_rev_id,
462 'ar_deleted' => $this->getBits()
465 return (
bool)$dbw->affectedRows();
478 return 'oi_archive_name';
482 return 'deleterevision';
496 $archiveNames =
array();
504 'oi_name' => $this->
title->getDBkey(),
505 'oi_archive_name' => $archiveNames
508 array(
'ORDER BY' =>
'oi_timestamp DESC' )
517 $this->deleteBatch =
array();
518 $this->storeBatch =
array();
519 $this->cleanupBatch =
array();
525 if ( $this->storeBatch ) {
528 if ( !$status->isOK() ) {
531 if ( $this->deleteBatch ) {
532 $status->merge( $repo->deleteBatch( $this->deleteBatch ) );
534 if ( !$status->isOK() ) {
539 if ( $this->cleanupBatch ) {
540 $status->merge( $repo->cleanupDeletedBatch( $this->cleanupBatch ) );
549 $file->purgeDescription();
550 $purgeUrls =
array();
553 $file->purgeOldThumbnails( $archiveName );
554 $purgeUrls[] =
$file->getArchiveUrl( $archiveName );
584 return 'oi_archive_name';
588 return 'oi_timestamp';
596 return 'oi_user_text';
599 public function getId() {
600 $parts = explode(
'!', $this->row->oi_archive_name );
613 return $this->
file->getVisibility();
616 public function setBits( $bits ) {
618 # @todo FIXME: Move to LocalFile.php
624 $key = $this->
file->getStorageKey();
625 $srcRel = $this->
file->repo->getDeletedHashPath( $key ) . $key;
627 $this->
file->repo->getVirtualUrl(
'deleted' ) .
'/' . $srcRel,
629 $this->
file->getRel()
631 $this->
list->cleanupBatch[] = $key;
635 $key = $this->
file->getStorageKey();
636 $dstRel = $this->
file->repo->getDeletedHashPath( $key ) . $key;
637 $this->
list->deleteBatch[] =
array( $this->
file->getRel(), $dstRel );
640 # Do the database operations
642 $dbw->update(
'oldimage',
643 array(
'oi_deleted' => $bits ),
645 'oi_name' => $this->row->oi_name,
646 'oi_timestamp' => $this->row->oi_timestamp,
647 'oi_deleted' => $this->getBits()
651 return (
bool)$dbw->affectedRows();
664 $date = htmlspecialchars( $this->
list->getLanguage()->userTimeAndDate(
665 $this->
file->getTimestamp(), $this->
list->getUser() ) );
681 'target' => $this->
list->title->getPrefixedText(),
682 'file' => $this->
file->getArchiveName(),
683 'token' => $this->
list->getUser()->getEditToken(
684 $this->
file->getArchiveName() )
688 return '<span class="history-deleted">' .
$link .
'</span>';
697 $uid = $this->
file->getUser(
'id' );
701 $link = $this->
list->msg(
'rev-deleted-user' )->escaped();
704 return '<span class="history-deleted">' .
$link .
'</span>';
719 $block =
' ' . $this->
list->msg(
'rev-deleted-comment' )->escaped();
722 return "<span class=\"history-deleted\">$block</span>";
729 $this->
list->msg(
'widthheight' )->numParams(
730 $this->
file->getWidth(), $this->
file->getHeight() )->
text() .
731 ' (' . $this->
list->msg(
'nbytes' )->numParams( $this->
file->getSize() )->
text() .
')';
741 'title' => $this->
list->title->getPrefixedText(),
742 'archivename' => $file->getArchiveName(),
759 'target' => $this->
list->title->getPrefixedText(),
760 'file' => $file->getArchiveName(),
761 'token' =>
$user->getEditToken(
$file->getArchiveName() )
769 'userid' =>
$file->user,
770 'user' =>
$file->user_text,
775 'comment' =>
$file->description,
787 return 'filearchive';
798 public function doQuery( $db ) {
799 $ids = array_map(
'intval', $this->ids );
804 'fa_name' => $this->
title->getDBkey(),
808 array(
'ORDER BY' =>
'fa_id DESC' )
812 public function newItem( $row ) {
831 return 'fa_timestamp';
839 return 'fa_user_text';
842 public function getId() {
843 return $this->row->fa_id;
846 public function setBits( $bits ) {
848 $dbw->update(
'filearchive',
849 array(
'fa_deleted' => $bits ),
851 'fa_id' => $this->row->fa_id,
852 'fa_deleted' => $this->getBits(),
856 return (
bool)$dbw->affectedRows();
860 $date = htmlspecialchars( $this->
list->getLanguage()->userTimeAndDate(
861 $this->
file->getTimestamp(), $this->
list->getUser() ) );
868 $key = $this->
file->getKey();
871 'target' => $this->
list->title->getPrefixedText(),
873 'token' => $this->
list->getUser()->getEditToken( $key )
878 $link =
'<span class="history-deleted">' .
$link .
'</span>';
897 return 'deletelogentry';
911 if (
$result->numRows() == 1 ) {
922 public function doQuery( $db ) {
923 $ids = array_map(
'intval', $this->ids );
924 return $db->select(
'logging',
'*',
927 array(
'ORDER BY' =>
'log_id DESC' )
931 public function newItem( $row ) {
945 implode(
',',
$params[
'ids'] ),
946 "ofield={$params['oldBits']}",
947 "nfield={$params['newBits']}"
961 return 'log_timestamp';
969 return 'log_user_text';
981 return $this->row->log_deleted;
984 public function setBits( $bits ) {
986 $dbw->update(
'recentchanges',
988 'rc_deleted' => $bits,
992 'rc_logid' => $this->row->log_id,
993 'rc_timestamp' => $this->row->log_timestamp
997 $dbw->update(
'logging',
998 array(
'log_deleted' => $bits ),
1000 'log_id' => $this->row->log_id,
1001 'log_deleted' => $this->getBits()
1005 return (
bool)$dbw->affectedRows();
1009 $date = htmlspecialchars( $this->
list->getLanguage()->userTimeAndDate(
1010 $this->row->log_timestamp, $this->list->getUser() ) );
1013 $formatter->setContext( $this->
list->getContext() );
1019 $this->
list->msg(
'log' )->escaped(),
1023 $loglink = $this->
list->msg(
'parentheses' )->rawParams( $loglink )->escaped();
1025 $action = $formatter->getActionText();
1032 return "<li>$loglink $date $action $comment</li>";
1039 'id' => $logEntry->getId(),
1040 'type' => $logEntry->getType(),
1041 'action' => $logEntry->getSubtype(),
1051 $logEntry->getParameters(),
1052 $logEntry->getType(),
1053 $logEntry->getSubtype(),
1054 $logEntry->getTimestamp(),
1055 $logEntry->isLegacy()
1060 'userid' => $this->row->log_user,
1061 'user' => $this->row->log_user_text,
1066 'comment' => $this->row->log_comment,
getAuthorNameField()
Get the DB field name storing user names.
Abstract base class for deletable items.
static getRestriction()
Get the user right required for this list type Override this function.
Overloads the relevant methods of the real ResultsWrapper so it doesn't go anywhere near an actual da...
getType()
Get the internal type name of this list.
static & makeTitle( $ns, $title, $fragment='', $interwiki='')
Create a new Title from a namespace index and a DB key.
setBits( $bits)
Set the visibility of the item.
The index of the header message $result[1]=The index of the body text message $result[2 through n]=Parameters passed to body text message. Please note the header message cannot receive/use parameters. 'ImportHandleLogItemXMLTag':When parsing a XML tag in a log item. $reader:XMLReader object $logInfo:Array of information Return false to stop further processing of the tag 'ImportHandlePageXMLTag':When parsing a XML tag in a page. $reader:XMLReader object $pageInfo:Array of information Return false to stop further processing of the tag 'ImportHandleRevisionXMLTag':When parsing a XML tag in a page revision. $reader:XMLReader object $pageInfo:Array of page information $revisionInfo:Array of revision information Return false to stop further processing of the tag 'ImportHandleToplevelXMLTag':When parsing a top level XML tag. $reader:XMLReader object Return false to stop further processing of the tag 'ImportHandleUploadXMLTag':When parsing a XML tag in a file upload. $reader:XMLReader object $revisionInfo:Array of information Return false to stop further processing of the tag 'InfoAction':When building information to display on the action=info page. $context:IContextSource object & $pageInfo:Array of information 'InitializeArticleMaybeRedirect':MediaWiki check to see if title is a redirect. $title:Title object for the current page $request:WebRequest $ignoreRedirect:boolean to skip redirect check $target:Title/string of redirect target $article:Article object 'InterwikiLoadPrefix':When resolving if a given prefix is an interwiki or not. Return true without providing an interwiki to continue interwiki search. $prefix:interwiki prefix we are looking for. & $iwData:output array describing the interwiki with keys iw_url, iw_local, iw_trans and optionally iw_api and iw_wikiid. 'InternalParseBeforeSanitize':during Parser 's internalParse method just before the parser removes unwanted/dangerous HTML tags and after nowiki/noinclude/includeonly/onlyinclude and other processings. Ideal for syntax-extensions after template/parser function execution which respect nowiki and HTML-comments. & $parser:Parser object & $text:string containing partially parsed text & $stripState:Parser 's internal StripState object 'InternalParseBeforeLinks':during Parser 's internalParse method before links but after nowiki/noinclude/includeonly/onlyinclude and other processings. & $parser:Parser object & $text:string containing partially parsed text & $stripState:Parser 's internal StripState object 'InvalidateEmailComplete':Called after a user 's email has been invalidated successfully. $user:user(object) whose email is being invalidated 'IRCLineURL':When constructing the URL to use in an IRC notification. Callee may modify $url and $query, URL will be constructed as $url . $query & $url:URL to index.php & $query:Query string $rc:RecentChange object that triggered url generation 'IsFileCacheable':Override the result of Article::isFileCacheable()(if true) $article:article(object) being checked 'IsTrustedProxy':Override the result of wfIsTrustedProxy() $ip:IP being check $result:Change this value to override the result of wfIsTrustedProxy() 'IsUploadAllowedFromUrl':Override the result of UploadFromUrl::isAllowedUrl() $url:URL used to upload from & $allowed:Boolean indicating if uploading is allowed for given URL 'isValidEmailAddr':Override the result of User::isValidEmailAddr(), for instance to return false if the domain name doesn 't match your organization. $addr:The e-mail address entered by the user & $result:Set this and return false to override the internal checks 'isValidPassword':Override the result of User::isValidPassword() $password:The password entered by the user & $result:Set this and return false to override the internal checks $user:User the password is being validated for 'Language::getMessagesFileName':$code:The language code or the language we 're looking for a messages file for & $file:The messages file path, you can override this to change the location. 'LanguageGetNamespaces':Provide custom ordering for namespaces or remove namespaces. Do not use this hook to add namespaces. Use CanonicalNamespaces for that. & $namespaces:Array of namespaces indexed by their numbers 'LanguageGetMagic':DEPRECATED, use $magicWords in a file listed in $wgExtensionMessagesFiles instead. Use this to define synonyms of magic words depending of the language $magicExtensions:associative array of magic words synonyms $lang:language code(string) 'LanguageGetSpecialPageAliases':DEPRECATED, use $specialPageAliases in a file listed in $wgExtensionMessagesFiles instead. Use to define aliases of special pages names depending of the language $specialPageAliases:associative array of magic words synonyms $lang:language code(string) 'LanguageGetTranslatedLanguageNames':Provide translated language names. & $names:array of language code=> language name $code language of the preferred translations 'LanguageLinks':Manipulate a page 's language links. This is called in various places to allow extensions to define the effective language links for a page. $title:The page 's Title. & $links:Associative array mapping language codes to prefixed links of the form "language:title". & $linkFlags:Associative array mapping prefixed links to arrays of flags. Currently unused, but planned to provide support for marking individual language links in the UI, e.g. for featured articles. 'LinkBegin':Used when generating internal and interwiki links in Linker::link(), before processing starts. Return false to skip default processing and return $ret. See documentation for Linker::link() for details on the expected meanings of parameters. $skin:the Skin object $target:the Title that the link is pointing to & $html:the contents that the< a > tag should have(raw HTML) $result
getAuthorIdField()
Get the DB field name storing user ids.
getHTML()
Get the HTML of the list item.
static commentBlock( $comment, $title=null, $local=false)
Wrap a comment in standard punctuation and formatting if it's non-empty, otherwise return empty strin...
getRevisionLink()
Get the HTML link to the revision text.
getDiffLink()
Get the HTML link to the diff.
static singleton()
Get a RepoGroup instance.
getHeight( $page=1)
Return the height of the image.
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
static newFromId( $id, $flags=0)
Load a page revision from a given revision ID number.
static pageJoinCond()
Return the value of a select() page conds array for the page table.
canView()
Returns true if the current user can view the item.
static addLogParams( $result, &$vals, $params, $type, $action, $ts, $legacy=false)
static revUserLink( $rev, $isPublic=false)
Generate a user link if the current user is allowed to view it.
newItem( $row)
Create an item object from a DB result row.
static userLink( $userId, $userName, $altUserName=false)
Make user link (or user contributions for unregistered users)
static getRevdelConstant()
Get the revision deletion constant for this list type Override this function.
getIdField()
Get the DB field name associated with the ID list.
doPreCommitUpdates()
A hook for setVisibility(): do batch updates pre-commit.
getId()
Get the ID, as it would appear in the ids URL parameter.
& wfGetDB( $db, $groups=array(), $wiki=false)
Get a Database object.
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at etc Handles the details of getting and saving to the user table of the and dealing with sessions and cookies OutputPage Encapsulates the entire HTML page that will be sent in response to any server request It is used by calling its functions to add text
doPostCommitUpdates()
A hook for setVisibility(): do any necessary updates post-commit.
static suggestTarget( $target, array $ids)
Suggest a target for the revision deletion Optionally override this function.
clearFileOps()
Clear any data structures needed for doPreCommitUpdates() and doPostCommitUpdates() STUB.
static getRelationType()
Get the DB field name associated with the ID list.
$list
The parent RevisionListBase.
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.
getTimestampField()
Get the DB field name storing timestamps.
Item class for a archive table row.
getTimestamp()
Get the 14-character timestamp of the file upload.
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
__construct( $list, $row)
List for archive table items, i.e.
getIdField()
Get the DB field name associated with the ID list.
getApiData(ApiResult $result)
Get the return information about the revision for the API.
static newGood( $value=null)
Factory function for good results.
getLogAction()
Get the log action for this list type.
getUrl()
Return the URL of the file.
getAuthorNameField()
Get the DB field name storing user names.
setBits( $bits)
Set the visibility of the item.
setBits( $bits)
Set the visibility of the item.
getWidth( $page=1)
Return the width of the image.
newItem( $row)
Create an item object from a DB result row.
static selectFields()
Fields in the oldimage table.
getAuthorNameField()
Get the DB field name storing user names.
static getTitleFor( $name, $subpage=false, $fragment='')
Get a localised Title object for a specified special page name.
getIdField()
Get the DB field name associated with the ID list.
getSuppressBit()
Get the integer value of the flag used for suppression.
canViewContent()
Returns true if the current user can view the item text/file.
getBits()
Get the current deletion bitfield value.
getLink()
Get the link to the file.
getDiffLink()
Get the HTML link to the diff.
doPostCommitUpdates()
A hook for setVisibility(): do any necessary updates post-commit.
set to $title object and return false for a match for latest after cache objects are set use the ContentHandler facility to handle CSS and JavaScript for highlighting & $link
getTimestampField()
Get the DB field name storing timestamps.
__construct( $list, $row)
static getRestriction()
Get the user right required for this list type Override this function.
getHTML()
Get the HTML of the list item.
isDeleted( $field)
Is this file a "deleted" file in a private archive? STUB.
static linkKnown( $target, $html=null, $customAttribs=array(), $query=array(), $options=array( 'known', 'noclasses'))
Identical to link(), except $options defaults to 'known'.
getType()
Get the internal type name of this list.
canViewContent()
Returns true if the current user can view the item text/file.
canView()
Returns true if the current user can view the item.
static getRelationType()
Get the DB field name associated with the ID list.
static link( $target, $html=null, $customAttribs=array(), $query=array(), $options=array())
This function returns an HTML link to the given target.
List for oldimage table items.
to move a page</td >< td > &*You are moving the page across *A non empty talk page already exists under the new or *You uncheck the box below In those you will have to move or merge the page manually if desired</td >< td > be sure to &You are responsible for making sure that links continue to point where they are supposed to go Note that the page will &a page at the new title
Item class for a logging table row.
We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing we can concentrate it all in an extension file
setBits( $bits)
Set the visibility of the item.
setBits( $bits)
Set the visibility of the item.
Implements some public methods and some protected utility functions which are required by multiple ch...
static suggestTarget( $target, array $ids)
Suggest a target for the revision deletion Optionally override this function.
getIdField()
Get the DB field name associated with the ID list.
getAuthorNameField()
Get the DB field name storing user names.
static newFromRow( $row)
Constructs new LogEntry from database result row.
__construct( $list, $row)
static getRevdelConstant()
Get the revision deletion constant for this list type Override this function.
doPostCommitUpdates()
A hook for setVisibility(): do any necessary updates post-commit.
This class represents the result of the API operations.
List for filearchive table items.
getId()
Get the ID, as it would appear in the ids URL parameter.
getAuthorNameField()
Get the DB field name storing user names.
const TS_ISO_8601
ISO 8601 format with no timezone: 1986-02-09T20:00:00Z.
Abstract base class for a list of deletable items.
static purge( $urlArr)
Purges a list of Squids defined in $wgSquidServers.
newItem( $row)
Create an item object from a DB result row.
wfRunHooks( $event, array $args=array(), $deprecatedVersion=null)
Call hook functions defined in $wgHooks.
newItem( $row)
Create an item object from a DB result row.
getTimestampField()
Get the DB field name storing timestamps.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
when a variable name is used in a it is silently declared as a new masking the global
static getRelationType()
Get the DB field name associated with the ID list.
getType()
Get the internal type name of this list.
getIdField()
Get the DB field name associated with the ID list.
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global list
__construct( $list, $row)
static getRevdelConstant()
Get the revision deletion constant for this list type Override this function.
static revComment(Revision $rev, $local=false, $isPublic=false)
Wrap and format the given revision's comment block, if the current user is allowed to view it.
presenting them properly to the user as errors is done by the caller $title
Allows to change the fields on the form that will be generated $name
static userToolLinks( $userId, $userText, $redContribsWhenNoEdits=false, $flags=0, $edits=null)
Generate standard user tool links (talk, contributions, block link, etc.)
getId()
Get the ID, as it would appear in the ids URL parameter.
getApiData(ApiResult $result)
Get the return information about the revision for the API.
getIdField()
Get the DB field name associated with the ID list.
Item class for an oldimage table row.
Item class for a filearchive table row.
getBits()
Get the current deletion bitfield value.
static newFromArchiveRow( $row, $overrides=array())
Make a fake revision object from an archive table row.
getSuppressBit()
Get the integer value of the flag used for suppression.
getType()
Get the internal type name of this list.
getAuthorIdField()
Get the DB field name storing user ids.
newItem( $row)
Create an item object from a DB result row.
getRevisionLink()
Get the HTML link to the revision text.
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a account $user
getTimestampField()
Get the DB field name storing timestamps.
getLink()
Get the link to the file.
getAuthorIdField()
Get the DB field name storing user ids.
__construct( $list, $row)
if(PHP_SAPI !='cli') $file
static getRelationType()
Get the DB field name associated with the ID list.
static getRelationType()
Get the DB field name associated with the ID list.
presenting them properly to the user as errors is done by the caller return true use this to change the list i e etc $rev
getId()
Get the ID, as it would appear in the ids URL parameter.
getHTML()
Get the HTML of the list item.
getSuppressBit()
Get the integer value of the flag used for suppression.
List for logging table items.
Item class for a live revision table row.
getType()
Get the internal type name of this list.
getAuthorIdField()
Get the DB field name storing user ids.
setBits( $bits)
Set the visibility of the item.
getBits()
Get the current deletion bitfield value.
Item class for a archive table row by ar_rev_id – actually used via RevDel_RevisionList.
getUserTools()
Generate a user tool link cluster if the current user is allowed to view it.
List for revision table items.
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
getApiData(ApiResult $result)
Get the return information about the revision for the API.
static userJoinCond()
Return the value of a select() JOIN conds array for the user table.
static userCan( $row, $field, User $user=null)
Determine if the current user is allowed to view a particular field of this log row,...
static isDeleted( $row, $field)
getLogParams( $params)
Get log parameter array.
static getRestriction()
Get the user right required for this list type Override this function.
getTimestampField()
Get the DB field name storing timestamps.
static selectUserFields()
Return the list of user fields that should be selected from user table.
canView()
Returns true if the current user can view the item.
__construct( $list, $row)
isHideCurrentOp( $newBits)
Returns true if the item is "current", and the operation to set the given bits can't be executed for ...
doPreCommitUpdates()
A hook for setVisibility(): do batch updates pre-commit.
static selectFields()
Fields in the filearchive table.
static rawElement( $element, $attribs=array(), $contents='')
Returns an HTML element in a string.
static selectFields()
Return the list of revision fields that should be selected to create a new revision.
getComment()
Wrap and format the file's comment block, if the current user is allowed to view it.
getId()
Get the ID, as it would appear in the ids URL parameter.
getAuthorIdField()
Get the DB field name storing user ids.
userCan( $field, User $user=null)
Determine if the current user is allowed to view a particular field of this file, if it's marked as d...
wfLocalFile( $title)
Get an object referring to a locally registered file.
canViewContent()
Returns true if the current user can view the item text/file.
doPreCommitUpdates()
A hook for setVisibility(): do batch updates pre-commit.
getSize()
Return the size of the image file, in bytes Overridden by LocalFile, UnregisteredLocalFile STUB.
static newFromRow( $row)
Loads a file object from the filearchive table.