ImageModule
final class ImageModule extends Module
Images module.
Properties
$root | root of relative images (http) |
||
$linkedRoot | root of linked images (http) |
||
$fileRoot | physical location of images on server |
||
$leftClass | left-floated images CSS class |
||
$rightClass | right-floated images CSS class |
||
$defaultAlt | default alternative text |
Methods
Callback for: [image]: urls .(title)[class]{style}.
Callback for [* small.jpg 80x13 || big.jpg .(alternative text)[class]{style}>]:LINK.
Returns named reference.
Parses image's syntax. Input: small.jpg 80x13 || linked.jpg
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 100
HtmlElement|string|null
patternImage(LineParser $parser, array $matches)
Callback for [* small.jpg 80x13 || big.jpg .(alternative text)[class]{style}>]:LINK.
at line 129
void
addReference(string $name, Image $image)
Adds new named reference to image.
at line 139
Image|null
getReference(string $name)
Returns named reference.
at line 153
Image
factoryImage(string $content, string $mod, bool $tryRef = true)
Parses image's syntax. Input: small.jpg 80x13 || linked.jpg
at line 194
HtmlElement|null
solve(HandlerInvocation|null $invocation, Image $image, Link|null $link = null)
Finish invocation.