프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_Extractor | Extractor. | ||
$_urlPattern | string | A pattern to match URLs. |
메소드 | 설명 | |
---|---|---|
__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. |
메소드 | 설명 | |
---|---|---|
_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 | ||
리턴 | Closure | Templating function. |
public setUrlPattern ( string $pattern ) | ||
$pattern | string | URL pattern. |