Class TexyHeadingModule
Heading module.
TexyObject | --TexyModule | --TexyHeadingModule
| Constructor Summary | |
|---|---|
| public |
__construct
($texy)
|
| Method Summary | |
|---|---|
| void |
|
| void |
beforeParse
()
|
| TexyHtml|string|FALSE |
patternSurround
(TexyBlockParser $parser, array $matches, string 2)
Callback for surrounded heading.
|
| TexyHtml|string|FALSE |
patternUnderline
(TexyBlockParser $parser, array $matches, string 2)
Callback for underlined heading.
|
| TexyHtml |
solve
(TexyHandlerInvocation $invocation, int $level, string $content, TexyModifier $mod, bool $isSurrounded)
Finish invocation.
|
| Constant Summary | |||
|---|---|---|---|
| int | DYNAMIC |
1 |
line 28 |
| int | FIXED |
2 |
line 28 |
| Variable Summary | ||||
|---|---|---|---|---|
| int | $balancing | TexyHeadingModule::DYNAMIC |
line 50 balancing mode |
|
| bool | $generateID | FALSE |
line 38 autogenerate ID |
|
| string | $idPrefix | 'toc-' |
line 41 prefix for autogenerated ID |
|
| array | $levels | array(
'#' => 0, // # --> $levels['#'] + $top = 0 + 1 = 1 --> <h1> ...... |
line 53 when $balancing = TexyHeadingModule::FIXED |
|
| bool | $moreMeansHigher | TRUE |
line 47 surrounded headings: more #### means higher heading |
|
| string | $title | |
line 32 textual content of first heading |
|
| array | $TOC | |
line 35 generated Table of Contents |
|
| int | $top | 1 |
line 44 level of top heading, 1..6 |
|
| Constructor Details | ||||||
|---|---|---|---|---|---|---|
|
line 65 __constructpublic __construct ($texy)
|
||||||
| Method Details | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
line 104 afterParsepublic void afterParse (Texy $texy, TexyHtml $DOM, bool $isSingleLine)
|
||||||||||||||||||||||||
|
line 89 beforeParsepublic void beforeParse ()
|
||||||||||||||||||||||||
|
line 207 patternSurroundpublic TexyHtml|string|FALSE patternSurround (TexyBlockParser $parser, array $matches, string 2) Callback for surrounded heading. ### Heading .(title)[class]{style}>
|
||||||||||||||||||||||||
|
line 182 patternUnderlinepublic TexyHtml|string|FALSE patternUnderline (TexyBlockParser $parser, array $matches, string 2) Callback for underlined heading. Heading .(title)[class]{style}> -------------------------------
|
||||||||||||||||||||||||
|
line 233 solvepublic TexyHtml solve (TexyHandlerInvocation $invocation, int $level, string $content, TexyModifier $mod, bool $isSurrounded) Finish invocation.
|
||||||||||||||||||||||||