Свойство | Тип | Описание | |
---|---|---|---|
$_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. |
protected Extractor,Essence $_Extractor | ||
Результат |
protected string $_urlPattern | ||
Результат | string |