MediaWiki
REL1_24
|
Database independant search index updater. More...
Public Member Functions | |
__construct ($id, $title, $c=false) | |
Constructor. | |
doUpdate () | |
Perform actual update for the entry. | |
Static Public Member Functions | |
static | updateText ($text) |
Clean text for indexing. | |
Private Member Functions | |
indexTitle (SearchEngine $search) | |
Get a string representation of a title suitable for including in a search index. | |
Private Attributes | |
Content bool | $content |
Content of the page (not text) *. | |
int | $id = 0 |
Page id being updated *. | |
Title | $title |
Title we're updating *. |
Database independant search index updater.
Definition at line 31 of file SearchUpdate.php.
SearchUpdate::__construct | ( | $ | id, |
$ | title, | ||
$ | c = false |
||
) |
Constructor.
int | $id | Page id to update |
Title | string | $title | Title of page to update |
Content | string | bool | $c | Content of the page to update. Default: false. If a Content object, text will be gotten from it. String is for back-compat. Passing false tells the backend to just update the title, not the content |
Definition at line 47 of file SearchUpdate.php.
Perform actual update for the entry.
Implements DeferrableUpdate.
Definition at line 71 of file SearchUpdate.php.
SearchUpdate::indexTitle | ( | SearchEngine $ | search | ) | [private] |
Get a string representation of a title suitable for including in a search index.
SearchEngine | $search |
Definition at line 184 of file SearchUpdate.php.
static SearchUpdate::updateText | ( | $ | text | ) | [static] |
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.
string | $text |
Definition at line 118 of file SearchUpdate.php.
Referenced by SearchUpdateTest\updateText().
Content of the page (not text) *.
Definition at line 36 of file SearchUpdate.php.
int SearchUpdate::$id = 0 [private] |
Page id being updated *.
Definition at line 32 of file SearchUpdate.php.
Title we're updating *.
Definition at line 34 of file SearchUpdate.php.