final class LinkModule extends Module

Links module.

Properties

string $root
string|null $imageClass
bool $forceNoFollow
bool $shorten

Methods

__construct(Texy $texy)

No description

void
beforeParse(Texy $texy, $text)

Text pre-processing.

string
patternReferenceDef(array $matches)

Callback for: [la trine]: http://www.latrine.cz/ text odkazu .(title)[class]{style}.

HtmlElement|string|null
patternReference(LineParser $parser, array $matches)

Callback for: [ref].

HtmlElement|string|null
patternUrlEmail(LineParser $parser, array $matches, string $name)

Callback for: http://davidgrudl.com david@grudl.com.

void
addReference(string $name, Link $link)

Adds new named reference.

Link|null
getReference(string $name)

Returns named reference.

factoryLink(string $dest, string|null $mMod, string|null $label)

No description

HtmlElement|string
solve(HandlerInvocation $invocation = null, Link $link, HtmlElement|string $content = null)

Finish invocation.

HtmlElement|string
solveUrlEmail(HandlerInvocation $invocation, Link $link)

Finish invocation.

solveNewReference(HandlerInvocation $invocation, string $name)

Finish invocation.

Details

at line 45
__construct(Texy $texy)

No description

Parameters

Texy $texy

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

Text pre-processing.

Parameters

Texy $texy
$text

Return Value

void

at line 104
string patternReferenceDef(array $matches)

internal  
 

Callback for: [la trine]: http://www.latrine.cz/ text odkazu .(title)[class]{style}.

Parameters

array $matches

Return Value

string

at line 125
HtmlElement|string|null patternReference(LineParser $parser, array $matches)

Callback for: [ref].

Parameters

LineParser $parser
array $matches

Return Value

HtmlElement|string|null

at line 165
HtmlElement|string|null patternUrlEmail(LineParser $parser, array $matches, string $name)

Callback for: http://davidgrudl.com david@grudl.com.

Parameters

LineParser $parser
array $matches
string $name

Return Value

HtmlElement|string|null

at line 184
void addReference(string $name, Link $link)

Adds new named reference.

Parameters

string $name
Link $link

Return Value

void

at line 194
Link|null getReference(string $name)

Returns named reference.

Parameters

string $name

Return Value

Link|null

No description

Parameters

string $dest
string|null $mMod
string|null $label

Return Value

Link

at line 260
HtmlElement|string solve(HandlerInvocation $invocation = null, Link $link, HtmlElement|string $content = null)

Finish invocation.

Parameters

HandlerInvocation $invocation
Link $link
HtmlElement|string $content

Return Value

HtmlElement|string

at line 309
HtmlElement|string solveUrlEmail(HandlerInvocation $invocation, Link $link)

Finish invocation.

Parameters

HandlerInvocation $invocation
Link $link

Return Value

HtmlElement|string

at line 320
solveNewReference(HandlerInvocation $invocation, string $name)

Finish invocation.

Parameters

HandlerInvocation $invocation
string $name