blob: 29bd463d2381623c523f69fbd543061bc7e0d5be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<?php
/**
* Augment search result set with values of certain page props.
*/
class AugmentPageProps implements ResultSetAugmentor {
/**
* @var array List of properties.
*/
private $propnames;
public function __construct( $propnames ) {
$this->propnames = $propnames;
}
public function augmentAll( SearchResultSet $resultSet ) {
$titles = $resultSet->extractTitles();
return PageProps::getInstance()->getProperties( $titles, $this->propnames );
}
}
|