| [ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Base class for different kinds of blacklists
| File Size: | 371 lines (10 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| __construct( $settings = array() X-Ref |
| Constructor param: array $settings |
| addBlacklistType( $type, $class ) X-Ref |
| Adds a blacklist class to the registry param: $type string param: $class string |
| getBlacklistTypes() X-Ref |
| Return the array of blacklist types currently defined return: array |
| getInstance( $type ) X-Ref |
| Returns an instance of the given blacklist param: $type string Code for the blacklist return: BaseBlacklist |
| isLocalSource( Title $title ) X-Ref |
| Check if the given local page title is a spam regex source. param: Title $title return: bool |
| getTypeFromTitle( Title $title ) X-Ref |
| Returns the type of blacklist from the given title param: Title $title return: bool|string |
| getBlacklists() X-Ref |
| Fetch local and (possibly cached) remote blacklists. Will be cached locally across multiple invocations. return: array set of regular expressions, potentially empty. |
| getLocalBlacklists() X-Ref |
| Returns the local blacklist return: array Regular expressions |
| getWhitelists() X-Ref |
| Returns the (local) whitelist return: array Regular expressions |
| getSharedBlacklists() X-Ref |
| Fetch (possibly cached) remote blacklists. return: array |
| clearCache() X-Ref |
| No description |
| buildSharedBlacklists() X-Ref |
| No description |
| getHttpText( $fileName ) X-Ref |
| No description |
| getArticleText( $db, $article ) X-Ref |
| Fetch an article from this or another local MediaWiki database. This is probably *very* fragile, and shouldn't be used perhaps. param: string $db param: string $article return: string |
| getRegexStart() X-Ref |
| Returns the start of the regex for matches return: string |
| getRegexEnd( $batchSize ) X-Ref |
| Returns the end of the regex for matches param: $batchSize return: string |
| Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |