final class TexyImageModule extends TexyModule

Images module.

Properties

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

Methods

__construct($texy)

No description

void
beforeParse($texy, $text)

Text pre-processing.

string
patternReferenceDef($matches)

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

TexyHtml|string|false
patternImage($parser, $matches)

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

void
addReference($name, TexyImage $image)

Adds new named reference to image.

getReference($name)

Returns named reference.

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

Parses image's syntax.

TexyHtml|false
solve($invocation, TexyImage $image, $link)

Finish invocation.

Details

at line 39
__construct($texy)

No description

Parameters

$texy

at line 64
void beforeParse($texy, $text)

Text pre-processing.

Parameters

$texy
$text

Return Value

void

at line 84
string patternReferenceDef($matches)

internal  
 

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

Parameters

$matches

Return Value

string

at line 105
TexyHtml|string|false patternImage($parser, $matches)

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

Parameters

$parser
$matches

Return Value

TexyHtml|string|false

at line 140
void addReference($name, TexyImage $image)

Adds new named reference to image.

Parameters

$name
TexyImage $image

Return Value

void

at line 153
TexyImage getReference($name)

Returns named reference.

Parameters

$name

Return Value

TexyImage

reference descriptor (or FALSE)

at line 171
TexyImage factoryImage($content, $mod, $tryRef = TRUE)

Parses image's syntax.

Parameters

$content
$mod
$tryRef

Return Value

TexyImage

at line 225
TexyHtml|false solve($invocation, TexyImage $image, $link)

Finish invocation.

Parameters

$invocation
TexyImage $image
$link

Return Value

TexyHtml|false