final class ImageModule extends Module

Images module.

Properties

string $root
string $linkedRoot
string|null $fileRoot
string|null $leftClass
string|null $rightClass
string|null $defaultAlt
string|null $onLoad

Methods

__construct($texy)

No description

void
beforeParse(Texy $texy, $text)

Text pre-processing.

string
patternReferenceDef(array $matches)

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

HtmlElement|string|false
patternImage(LineParser $parser, array $matches)

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

void
addReference($name, Image $image)

Adds new named reference to image.

getReference($name)

Returns named reference.

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

Parses image's syntax.

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

Finish invocation.

Details

at line 46
__construct($texy)

No description

Parameters

$texy

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

Text pre-processing.

Parameters

Texy $texy
$text

Return Value

void

at line 88
string patternReferenceDef(array $matches)

internal  
 

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

Parameters

array $matches

Return Value

string

at line 105
HtmlElement|string|false patternImage(LineParser $parser, array $matches)

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

Parameters

LineParser $parser
array $matches

Return Value

HtmlElement|string|false

at line 135
void addReference($name, Image $image)

Adds new named reference to image.

Parameters

$name
Image $image

Return Value

void

at line 147
Image getReference($name)

Returns named reference.

Parameters

$name

Return Value

Image

reference descriptor (or false)

at line 165
Image factoryImage($content, $mod, $tryRef = true)

Parses image's syntax.

Parameters

$content
$mod
$tryRef

Return Value

Image

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

Finish invocation.

Parameters

HandlerInvocation $invocation
Image $image
Link $link

Return Value

HtmlElement|false