%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/wiki.varak.net/includes/search/
Upload File :
Create Path :
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 );
	}
}

Zerion Mini Shell 1.0