1549a0837SAndreas Gohr<?php 2d6d97f60SAnna Dabrowska 3549a0837SAndreas Gohr/** 4549a0837SAndreas Gohr * DokuWiki Plugin struct (Syntax Component) 5549a0837SAndreas Gohr * 6549a0837SAndreas Gohr * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html 7549a0837SAndreas Gohr * @author Andreas Gohr, Michael Große <dokuwiki@cosmocode.de> 8549a0837SAndreas Gohr */ 9549a0837SAndreas Gohr 10ea5ad12aSMichael Grosseuse dokuwiki\plugin\struct\meta\AggregationList; 11ea5ad12aSMichael Grosseuse dokuwiki\plugin\struct\meta\ConfigParser; 12ea5ad12aSMichael Grosseuse dokuwiki\plugin\struct\meta\SearchConfig; 13ea5ad12aSMichael Grosseuse dokuwiki\plugin\struct\meta\StructException; 14ea5ad12aSMichael Grosse 15*d90aa848SAndreas Gohrclass syntax_plugin_struct_list extends syntax_plugin_struct_table 16d6d97f60SAnna Dabrowska{ 17*d90aa848SAndreas Gohr /** @inheritdoc */ 18ea5ad12aSMichael Grosse protected $tableclass = AggregationList::class; 19ea5ad12aSMichael Grosse 20*d90aa848SAndreas Gohr /** @inheritdoc */ 21*d90aa848SAndreas Gohr protected $illegalOptions = ['dynfilters', 'summarize', 'rownumbers', 'widths', 'summary']; 22549a0837SAndreas Gohr 23549a0837SAndreas Gohr /** 24549a0837SAndreas Gohr * Connect lookup pattern to lexer. 25549a0837SAndreas Gohr * 26549a0837SAndreas Gohr * @param string $mode Parser mode 27549a0837SAndreas Gohr */ 28d6d97f60SAnna Dabrowska public function connectTo($mode) 29d6d97f60SAnna Dabrowska { 30ea5ad12aSMichael Grosse $this->Lexer->addSpecialPattern('----+ *struct list *-+\n.*?\n----+', $mode, 'plugin_struct_list'); 31549a0837SAndreas Gohr } 32549a0837SAndreas Gohr} 33