1<?php 2 3namespace dokuwiki\Search\Collection; 4 5use dokuwiki\Search\Index\AbstractIndex; 6 7/** 8 * Collection for page titles 9 * 10 * Stores the title of each page as a direct 1:1 mapping. 11 * 12 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 13 * @author Andreas Gohr <andi@splitbrain.org> 14 */ 15class PageTitleCollection extends DirectCollection 16{ 17 /** @inheritdoc */ 18 public function __construct(?AbstractIndex $pageIndex = null) 19 { 20 parent::__construct($pageIndex ?? 'page', 'title'); 21 } 22} 23