ImageModule
final class ImageModule extends Module
Images module.
Properties
string | $root | ||
string | $linkedRoot | ||
string|null | $fileRoot | ||
string|null | $leftClass | ||
string|null | $rightClass | ||
string|null | $defaultAlt |
Methods
void
string
patternReferenceDef(array $matches)
Callback for: [image]: urls .(title)[class]{style}.
HtmlElement|string|null
patternImage(LineParser $parser, array $matches)
Callback for [* small.jpg 80x13 || big.jpg .(alternative text)[class]{style}>]:LINK.
void
Image|null
getReference(string $name)
Returns named reference.
factoryImage(string $content, string $mod, bool $tryRef = true)
Parses image's syntax.
HtmlElement|null
Details
at line 45
__construct(Texy $texy)
No description
at line 66
void
beforeParse(Texy $texy, $text)
Text pre-processing.
at line 84
string
patternReferenceDef(array $matches)
internal |
Callback for: [image]: urls .(title)[class]{style}.
at line 101
HtmlElement|string|null
patternImage(LineParser $parser, array $matches)
Callback for [* small.jpg 80x13 || big.jpg .(alternative text)[class]{style}>]:LINK.
at line 130
void
addReference(string $name, Image $image)
Adds new named reference to image.
at line 140
Image|null
getReference(string $name)
Returns named reference.
at line 154
Image
factoryImage(string $content, string $mod, bool $tryRef = true)
Parses image's syntax.
at line 195
HtmlElement|null
solve(HandlerInvocation $invocation = null, Image $image, Link $link = null)
Finish invocation.