An autolink to an external resource, like http://example.com
.
More...
|
| __construct (string $url, Element $node) |
|
| escape (State $state) |
| Use the provided state , which gives context and access to the entire list of chunks, to determine the proper escape prefix/suffix.Returns an object with a text property as well as optional prefix and 'suffix' properties giving desired escape strings. - Parameters
-
- Returns
- Result
|
|
| equals (ConstrainedText $ct) |
| Simple equality.
|
|
| matches (string $re, Env $env) |
| Useful shortcut: execute a regular expression on the raw wikitext.
|
|
|
static | escapeLine (array $line) |
| This adds necessary escapes to a line of chunks.
|
|
static | cast ( $o, Node $node) |
| Ensure that the argument o , which is perhaps a string, is a instance of ConstrainedText .
|
|
static | fromSelSer (string $text, Element $node, DataParsoid $dataParsoid, Env $env, array $opts=[]) |
| SelSer support: when we come across an unmodified node in during selective serialization, we know we can use the original wikitext for that node unmodified.
|
|
| $prefixMatcher |
|
| $suffixMatcher |
|
| $text |
|
| $node |
|
| $prefix |
|
| $suffix |
|
| $selser |
|
| $noSep |
|
| __construct (array $args) |
|
An autolink to an external resource, like http://example.com
.
◆ __construct()
Wikimedia\Parsoid\Html2Wt\ConstrainedText\AutoURLLinkText::__construct |
( |
string | $url, |
|
|
Element | $node ) |
◆ escape()
Wikimedia\Parsoid\Html2Wt\ConstrainedText\AutoURLLinkText::escape |
( |
State | $state | ) |
|
Use the provided state
, which gives context and access to the entire list of chunks, to determine the proper escape prefix/suffix.Returns an object with a text
property as well as optional prefix
and 'suffix' properties giving desired escape strings.
- Parameters
-
- Returns
- Result
Reimplemented from Wikimedia\Parsoid\Html2Wt\ConstrainedText\RegExpConstrainedText.
◆ fromSelSerImpl()
static Wikimedia\Parsoid\Html2Wt\ConstrainedText\AutoURLLinkText::fromSelSerImpl |
( |
string | $text, |
|
|
Element | $node, |
|
|
DataParsoid | $dataParsoid, |
|
|
Env | $env, |
|
|
array | $opts ) |
|
staticprotected |
The documentation for this class was generated from the following file:
- src/Html2Wt/ConstrainedText/AutoURLLinkText.php