LinkModule
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
void
string
patternReferenceDef(array $matches)
Callback for: [la trine]: http://www.latrine.cz/ text odkazu .(title)[class]{style}.
HtmlElement|string|null
HtmlElement|string|null
patternUrlEmail(LineParser $parser, array $matches, string $name)
Callback for: http://davidgrudl.com david@grudl.com.
void
Link|null
getReference(string $name)
Returns named reference.
factoryLink(string $dest, string|null $mMod, string|null $label)
No description
HtmlElement|string
HtmlElement|string
Details
at line 45
__construct(Texy $texy)
No description
at line 85
void
beforeParse(Texy $texy, $text)
Text pre-processing.
at line 104
string
patternReferenceDef(array $matches)
internal |
Callback for: [la trine]: http://www.latrine.cz/ text odkazu .(title)[class]{style}.
at line 124
HtmlElement|string|null
patternReference(LineParser $parser, array $matches)
Callback for: [ref].
at line 163
HtmlElement|string|null
patternUrlEmail(LineParser $parser, array $matches, string $name)
Callback for: http://davidgrudl.com david@grudl.com.
at line 182
void
addReference(string $name, Link $link)
Adds new named reference.
at line 192
Link|null
getReference(string $name)
Returns named reference.
at line 218
Link
factoryLink(string $dest, string|null $mMod, string|null $label)
No description
at line 258
HtmlElement|string
solve(HandlerInvocation|null $invocation, Link $link, HtmlElement|string|null $content = null)
Finish invocation.
at line 309
HtmlElement|string
solveUrlEmail(HandlerInvocation $invocation, Link $link)
Finish invocation.
at line 320
solveNewReference(HandlerInvocation $invocation, string $name)
Finish invocation.