Merge "Adding some comments to explain what various classes are for."

This commit is contained in:
jenkins-bot 2013-11-05 13:26:15 +00:00 committed by Gerrit Code Review
commit 14871447ee
2 changed files with 14 additions and 0 deletions

View file

@ -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();

View file

@ -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 );