mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-09-24 10:48:17 +00:00
Merge "Adding some comments to explain what various classes are for."
This commit is contained in:
commit
14871447ee
|
@ -1,5 +1,10 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* This class contains most of the business logic of AbuseFilter. It consists of mostly
|
||||
* static functions that handle activities such as parsing edits, applying filters,
|
||||
* logging actions, etc.
|
||||
*/
|
||||
class AbuseFilter {
|
||||
public static $statsStoragePeriod = 86400;
|
||||
public static $tokenCache = array();
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* The default view used in Special:AbuseFilter
|
||||
*/
|
||||
class AbuseFilterViewList extends AbuseFilterView {
|
||||
function show() {
|
||||
$out = $this->getOutput();
|
||||
|
@ -167,6 +170,9 @@ class AbuseFilterViewList extends AbuseFilterView {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Class to build paginated filter list
|
||||
*/
|
||||
// Probably no need to autoload this class, as it will only be called from the class above.
|
||||
class AbuseFilterPager extends TablePager {
|
||||
function __construct( $page, $conds ) {
|
||||
|
@ -330,6 +336,9 @@ class AbuseFilterPager extends TablePager {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Class to build paginated filter list for wikis using global abuse filters
|
||||
*/
|
||||
class GlobalAbuseFilterPager extends AbuseFilterPager {
|
||||
function __construct( $page, $conds ) {
|
||||
parent::__construct( $page, $conds );
|
||||
|
|
Loading…
Reference in a new issue