Merge "Move up devunt's name to Developers"
[lhc/web/wiklou.git] / includes / search / AugmentPageProps.php
1 <?php
2
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;
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 }