Property | Type | Description | |
---|---|---|---|
$_Extractor | Extractor. | ||
$_urlPattern | string | A pattern to match URLs. |
Method | Description | |
---|---|---|
__construct ( |
Constructor. | |
replace ( string $text, callable $template = null, array $options = [] ) : string | Replaces URLs in the given text by media informations if they point on an extractable resource. | |
setUrlPattern ( string $pattern ) | Sets the URL pattern for replacements. |
Method | Description | |
---|---|---|
_defaultTemplate ( ) : Closure | Returns a default templating callback for replace(). | |
_replaceFunction ( callable $template, array $options ) : Closure | Returns a function used to replace URLs by informations. |
public __construct ( |
||
$Extractor | Extractor. |
protected _defaultTemplate ( ) : Closure | ||
return | Closure | Templating function. |
public setUrlPattern ( string $pattern ) | ||
$pattern | string | URL pattern. |
protected Extractor,Essence $_Extractor | ||
return |
protected string $_urlPattern | ||
return | string |