PHP Class Texy\Modules\LinkModule

Inheritance: extends Texy\Module
Afficher le fichier Open project: dg/texy

Méthodes publiques

Свойство Type Description
$forceNoFollow always use rel="nofollow" for absolute links?
$imageClass image popup class
$imageOnClick image popup event
$popupOnClick class 'popup' event
$root root of relative links
$shorten shorten URLs to more readable form?

Méthodes publiques

Méthode Description
__construct ( $texy )
addReference ( $name, Link $link ) : void Adds new named reference.
beforeParse ( Texy $texy, &$text ) : void Text pre-processing.
factoryLink ( $dest, $mMod, $label ) : Link
getReference ( $name ) : Link Returns named reference.
patternReference ( Texy\LineParser $parser, array $matches ) : HtmlElement | string | FALSE Callback for: [ref].
patternReferenceDef ( array $matches ) : string Callback for: [la trine]: http://www.latrine.cz/ text odkazu .(title)[class]{style}.
patternUrlEmail ( Texy\LineParser $parser, array $matches, $name ) : HtmlElement | string | FALSE Callback for: http://davidgrudl.com [email protected].
solve ( HandlerInvocation $invocation = NULL, Link $link, HtmlElement | string $content = NULL ) : HtmlElement | string Finish invocation.
solveNewReference ( HandlerInvocation $invocation, $name ) : FALSE Finish invocation.
solveUrlEmail ( HandlerInvocation $invocation, Link $link ) : HtmlElement | string Finish invocation.

Private Methods

Méthode Description
checkLink ( Link $link ) : void Checks and corrects $URL.
textualUrl ( Link $link ) : string Returns textual representation of URL.

Method Details

__construct() public méthode

public __construct ( $texy )

addReference() public méthode

Adds new named reference.
public addReference ( $name, Link $link ) : void
$link Texy\Link
Résultat void

beforeParse() public méthode

Text pre-processing.
public beforeParse ( Texy $texy, &$text ) : void
$texy Texy
Résultat void

getReference() public méthode

Returns named reference.
public getReference ( $name ) : Link
Résultat Texy\Link reference descriptor (or FALSE)

patternReference() public méthode

Callback for: [ref].
public patternReference ( Texy\LineParser $parser, array $matches ) : HtmlElement | string | FALSE
$parser Texy\LineParser
$matches array
Résultat Texy\HtmlElement | string | FALSE

patternReferenceDef() public méthode

Callback for: [la trine]: http://www.latrine.cz/ text odkazu .(title)[class]{style}.
public patternReferenceDef ( array $matches ) : string
$matches array
Résultat string

patternUrlEmail() public méthode

Callback for: http://davidgrudl.com [email protected].
public patternUrlEmail ( Texy\LineParser $parser, array $matches, $name ) : HtmlElement | string | FALSE
$parser Texy\LineParser
$matches array
Résultat Texy\HtmlElement | string | FALSE

solve() public méthode

Finish invocation.
public solve ( HandlerInvocation $invocation = NULL, Link $link, HtmlElement | string $content = NULL ) : HtmlElement | string
$invocation Texy\HandlerInvocation
$link Texy\Link
$content Texy\HtmlElement | string
Résultat Texy\HtmlElement | string

solveNewReference() public méthode

Finish invocation.
public solveNewReference ( HandlerInvocation $invocation, $name ) : FALSE
$invocation Texy\HandlerInvocation
Résultat FALSE

solveUrlEmail() public méthode

Finish invocation.
public solveUrlEmail ( HandlerInvocation $invocation, Link $link ) : HtmlElement | string
$invocation Texy\HandlerInvocation
$link Texy\Link
Résultat Texy\HtmlElement | string

Property Details

$forceNoFollow public_oe property

always use rel="nofollow" for absolute links?
public $forceNoFollow

$imageClass public_oe property

image popup class
public $imageClass

$imageOnClick public_oe property

image popup event
public $imageOnClick

$popupOnClick public_oe property

class 'popup' event
public $popupOnClick

$root public_oe property

root of relative links
public $root

$shorten public_oe property

shorten URLs to more readable form?
public $shorten