ChangesListSpecialPage: Implement two new hooks superseding 4 old ones
authorBartosz Dziewoński <matma.rex@gmail.com>
Wed, 8 Jan 2014 17:17:08 +0000 (18:17 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Fri, 11 Apr 2014 20:53:35 +0000 (22:53 +0200)
commita4aa71c6cf7eba2322139312ad8353f1c318c06f
treed1ef4c3fefa942639badaff42ee5d6ffc6ad4637
parente88f4497bc55b1a889cfd313c3ab7edac6f0d136
ChangesListSpecialPage: Implement two new hooks superseding 4 old ones

Old hooks (called by SpecialWatchlist, SpecialRecentChanges and
SpecialRecentChangesLinked) have been deprecated, but I'm not planning
to remove them anytime soon. (They have lots of usages in extensions
as of this writing.)

The new hooks (and their deprecated friends) are:

* ChangesListSpecialPageFilters:
  * Replaces: SpecialRecentChangesFilters and SpecialWatchlistFilters
  * The signature for this one is exactly the same as signatures for
    the other two. We might want to pass something else than $this
    here…

* ChangesListSpecialPageQuery
  * Replaces: SpecialRecentChangesQuery and SpecialWatchlistQuery
  * These hooks have wildly different signatures. The new one is a
    superset of the old ones, in a more reasonable order, with the
    addition of the name of the special page we're doing right now.

Change-Id: I9cceda5d2dcfc53c852c5682c466b48ad8f31202
docs/hooks.txt
includes/specialpage/ChangesListSpecialPage.php
includes/specials/SpecialRecentchanges.php
includes/specials/SpecialRecentchangeslinked.php
includes/specials/SpecialWatchlist.php