| [ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Search index updater See deferred.txt
| File Size: | 209 lines (6 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
SearchUpdate:: (4 methods):
__construct()
doUpdate()
updateText()
indexTitle()
Class: SearchUpdate - X-Ref
Database independant search index updater| __construct( $id, $title, $c = false ) X-Ref |
| Constructor param: int $id Page id to update param: Title|string $title Title of page to update param: Content|string|bool $c Content of the page to update. Default: false. |
| doUpdate() X-Ref |
| Perform actual update for the entry |
| updateText( $text ) X-Ref |
| Clean text for indexing. Only really suitable for indexing in databases. If you're using a real search engine, you'll probably want to override this behavior and do something nicer with the original wikitext. param: string $text return: string |
| indexTitle( SearchEngine $search ) X-Ref |
| Get a string representation of a title suitable for including in a search index param: SearchEngine $search return: string A stripped-down title string ready for the search index |
| Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |