%PDF- %PDF-
Direktori : /www/varak.net/wiki.varak.net/includes/search/ |
Current File : /www/varak.net/wiki.varak.net/includes/search/AugmentPageProps.php |
<?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 ); } }