Update docs/hooks.txt for ShowSearchHitTitle
[mediawiki.git] / includes / search / AugmentPageProps.php
blob29bd463d2381623c523f69fbd543061bc7e0d5be
1 <?php
3 /**
4 * Augment search result set with values of certain page props.
5 */
6 class AugmentPageProps implements ResultSetAugmentor {
7 /**
8 * @var array List of properties.
9 */
10 private $propnames;
12 public function __construct( $propnames ) {
13 $this->propnames = $propnames;
16 public function augmentAll( SearchResultSet $resultSet ) {
17 $titles = $resultSet->extractTitles();
18 return PageProps::getInstance()->getProperties( $titles, $this->propnames );