[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
File Size: | 313 lines (9 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
__construct( IContextSource $context, Title $title, array $ids ) X-Ref |
Abstract base class for a list of deletable items. The list class needs to be able to make a query from a set of identifiers to pull relevant rows, to return RevDelItem subclasses wrapping them, and to wrap bulk update operations. |
getRelationType() X-Ref |
Get the DB field name associated with the ID list. This used to populate the log_search table for finding log entries. Override this function. return: string|null |
getRestriction() X-Ref |
Get the user right required for this list type Override this function. return: string|null |
getRevdelConstant() X-Ref |
Get the revision deletion constant for this list type Override this function. return: int|null |
suggestTarget( $target, array $ids ) X-Ref |
Suggest a target for the revision deletion Optionally override this function. param: Title|null $target User-supplied target param: array $ids return: Title|null |
setVisibility( $params ) X-Ref |
Set the visibility for the revisions in this list. Logging and transactions are done here. param: array $params Associative array of parameters. Members are: return: Status |
reloadFromMaster() X-Ref |
Reload the list data from the master DB. This can be done after setVisibility() to allow $item->getHTML() to show the new data. |
updateLog( $params ) X-Ref |
Record a log entry on the action param: array $params Associative array of parameters: |
getLogAction() X-Ref |
Get the log action for this list type return: string |
getLogParams( $params ) X-Ref |
Get log parameter array. param: array $params Associative array of log parameters, same as updateLog() return: array |
clearFileOps() X-Ref |
Clear any data structures needed for doPreCommitUpdates() and doPostCommitUpdates() STUB |
doPreCommitUpdates() X-Ref |
A hook for setVisibility(): do batch updates pre-commit. STUB return: Status |
doPostCommitUpdates() X-Ref |
A hook for setVisibility(): do any necessary updates post-commit. STUB return: Status |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |