final class LinkModule extends Module

Links module.

Properties

$root

root of relative links

$imageClass

linked image class

$forceNoFollow

always use rel="nofollow" for absolute links?

$shorten

shorten URLs to more readable form?

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|null $invocation, Link $link, HtmlElement|string|null $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 124
HtmlElement|string|null patternReference(LineParser $parser, array $matches)

Callback for: [ref].

Parameters

LineParser $parser
array $matches

Return Value

HtmlElement|string|null

at line 163
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 182
void addReference(string $name, Link $link)

Adds new named reference.

Parameters

string $name
Link $link

Return Value

void

at line 192
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 258
HtmlElement|string solve(HandlerInvocation|null $invocation, Link $link, HtmlElement|string|null $content = null)

Finish invocation.

Parameters

HandlerInvocation|null $invocation
Link $link
HtmlElement|string|null $content

Return Value

HtmlElement|string

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

Finish invocation.

Parameters

HandlerInvocation $invocation
Link $link

Return Value

HtmlElement|string

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

Finish invocation.

Parameters

HandlerInvocation $invocation
string $name