MediaWiki REL1_33
AugmentPageProps.php
Go to the documentation of this file.
1<?php
2
10 private $propnames;
11
12 public function __construct( $propnames ) {
13 $this->propnames = $propnames;
14 }
15
16 public function augmentAll( SearchResultSet $resultSet ) {
17 $titles = $resultSet->extractTitles();
18 return PageProps::getInstance()->getProperties( $titles, $this->propnames );
19 }
20}
Augment search result set with values of certain page props.
__construct( $propnames)
array $propnames
List of properties.
augmentAll(SearchResultSet $resultSet)
Produce data to augment search result set.
static getInstance()
Definition PageProps.php:66
extractTitles()
Extract all the titles in the result set.
Augment search results.
linkcache txt The LinkCache class maintains a list of article titles and the information about whether or not the article exists in the database This is used to mark up links when displaying a page If the same link appears more than once on any page then it only has to be looked up once In most cases link lookups are done in batches with the LinkBatch class or the equivalent in so the link cache is mostly useful for short snippets of parsed and for links in the navigation areas of the skin The link cache was formerly used to track links used in a document for the purposes of updating the link tables This application is now deprecated To create a you can use the following $titles
Definition linkcache.txt:17
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))