[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Implements Special:LinkSearch 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.
Author: | Brion Vibber |
File Size: | 301 lines (9 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
LinkSearchPage:: (14 methods):
setParams()
__construct()
setPageLinkRenderer()
initServices()
isCacheable()
execute()
isSyndicated()
mungeQuery()
linkParameters()
getQueryInfo()
formatResult()
doQuery()
getOrderFields()
getGroupName()
Class: LinkSearchPage - X-Ref
Special:LinkSearch to search the external-links table.setParams( $params ) X-Ref |
__construct( $name = 'LinkSearch' ) X-Ref |
No description |
setPageLinkRenderer(PageLinkRenderer $linkRenderer) X-Ref |
Initialize or override the PageLinkRenderer LinkSearchPage collaborates with. Useful mainly for testing. param: PageLinkRenderer $linkRenderer |
initServices() X-Ref |
Initialize any services we'll need (unless it has already been provided via a setter). This allows for dependency injection even though we don't control object creation. |
isCacheable() X-Ref |
No description |
execute( $par ) X-Ref |
No description |
isSyndicated() X-Ref |
Disable RSS/Atom feeds return: bool |
mungeQuery( $query, $prot ) X-Ref |
Return an appropriately formatted LIKE query and the clause param: string $query Search pattern to search for param: string $prot Protocol, e.g. 'http://' return: array |
linkParameters() X-Ref |
No description |
getQueryInfo() X-Ref |
No description |
formatResult( $skin, $result ) X-Ref |
param: Skin $skin param: object $result Result row return: string |
doQuery( $offset = false, $limit = false ) X-Ref |
Override to check query validity. param: mixed $offset Numerical offset or false for no offset param: mixed $limit Numerical limit or false for no limit |
getOrderFields() X-Ref |
Override to squash the ORDER BY. We do a truncated index search, so the optimizer won't trust it as good enough for optimizing sort. The implicit ordering from the scan will usually do well enough for our needs. return: array |
getGroupName() X-Ref |
No description |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |