1<?php 2 3/** 4 * DokuWiki Plugin struct (Syntax Component) 5 * 6 * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html 7 * @author Andreas Gohr, Michael Große <dokuwiki@cosmocode.de> 8 */ 9 10use dokuwiki\plugin\struct\meta\AggregationList; 11use dokuwiki\plugin\struct\meta\ConfigParser; 12use dokuwiki\plugin\struct\meta\SearchConfig; 13use dokuwiki\plugin\struct\meta\StructException; 14 15class syntax_plugin_struct_list extends syntax_plugin_struct_table 16{ 17 /** @inheritdoc */ 18 protected $tableclass = AggregationList::class; 19 20 /** @inheritdoc */ 21 protected $illegalOptions = ['dynfilters', 'summarize', 'rownumbers', 'widths', 'summary']; 22 23 /** 24 * Connect lookup pattern to lexer. 25 * 26 * @param string $mode Parser mode 27 */ 28 public function connectTo($mode) 29 { 30 $this->Lexer->addSpecialPattern('----+ *struct list *-+\n.*?\n----+', $mode, 'plugin_struct_list'); 31 } 32} 33