ToctreeBuilder
in package
uses
EmbeddedReferenceParser
FinalYes
Table of Contents
Properties
- $referenceRegex : string
- https://regex101.com/r/KadqKx/1
Methods
- buildToctreeEntries() : array<string|int, MenuEntryNode>
- extractEmbeddedReference() : ReferenceData
- parseToctreeEntryLines() : array<string|int, MenuEntryNode>
Properties
$referenceRegex
https://regex101.com/r/KadqKx/1
private
string
$referenceRegex
= '/^(.*?)(<([^<]+)>)?$/s'
Methods
buildToctreeEntries()
public
buildToctreeEntries(ParserContext $parserContext, LinesIterator $lines, array<string|int, mixed> $options) : array<string|int, MenuEntryNode>
Parameters
- $parserContext : ParserContext
- $lines : LinesIterator
- $options : array<string|int, mixed>
Return values
array<string|int, MenuEntryNode>extractEmbeddedReference()
private
extractEmbeddedReference(string $text) : ReferenceData
Parameters
- $text : string
Return values
ReferenceDataparseToctreeEntryLines()
private
parseToctreeEntryLines(LinesIterator $lines) : array<string|int, MenuEntryNode>
Parameters
- $lines : LinesIterator