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

__construct(Texy $texy)

No description

void
beforeParse(Texy $texy, $text)

Text pre-processing.

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
addReference(string $name, Image $image)

Adds new named reference to image.

Image|null
getReference(string $name)

Returns named reference.

factoryImage(string $content, string $mod, bool $tryRef = true)

Parses image's syntax.

HtmlElement|null
solve(HandlerInvocation $invocation = null, Image $image, Link $link = null)

Finish invocation.

Details

at line 45
__construct(Texy $texy)

No description

Parameters

Texy $texy

at line 66
void beforeParse(Texy $texy, $text)

Text pre-processing.

Parameters

Texy $texy
$text

Return Value

void

at line 84
string patternReferenceDef(array $matches)

internal  
 

Callback for: [image]: urls .(title)[class]{style}.

Parameters

array $matches

Return Value

string

at line 101
HtmlElement|string|null patternImage(LineParser $parser, array $matches)

Callback for [* small.jpg 80x13 || big.jpg .(alternative text)[class]{style}>]:LINK.

Parameters

LineParser $parser
array $matches

Return Value

HtmlElement|string|null

at line 130
void addReference(string $name, Image $image)

Adds new named reference to image.

Parameters

string $name
Image $image

Return Value

void

at line 140
Image|null getReference(string $name)

Returns named reference.

Parameters

string $name

Return Value

Image|null

at line 154
Image factoryImage(string $content, string $mod, bool $tryRef = true)

Parses image's syntax.

Parameters

string $content
string $mod
bool $tryRef

Return Value

Image

at line 195
HtmlElement|null solve(HandlerInvocation $invocation = null, Image $image, Link $link = null)

Finish invocation.

Parameters

HandlerInvocation $invocation
Image $image
Link $link

Return Value

HtmlElement|null