|
| __construct (string $toLang, LanguageGuesser $guesser, ReplacementMachine $machine) |
|
| __construct (bool $traverseWithTplInfo=false) |
|
| addHandler (?string $nodeName, callable $action) |
| Add a handler to the DOM traverser.
|
|
| traverse (Env $env, Node $workNode, ?DTState $state=null) |
| Traverse the DOM and fire the handlers that are registered.
|
|
| run (Env $env, Node $workNode, array $options=[], bool $atTopLevel=false) |
| - Parameters
-
Env | $env | |
Element | DocumentFragment | $root | The root of the tree to process |
array | $options | |
bool | $atTopLevel | Is this processor invoked on the top level page? If false, this is being invoked in a sub-pipeline (ex: extensions) |
|
|
◆ __construct()
Wikimedia\Parsoid\Language\ConversionTraverser::__construct |
( |
string | $toLang, |
|
|
LanguageGuesser | $guesser, |
|
|
ReplacementMachine | $machine ) |
- Parameters
-
string | $toLang | target language for conversion |
LanguageGuesser | $guesser | oracle to determine "original language" for round-tripping |
ReplacementMachine | $machine | machine to do actual conversion |
The documentation for this class was generated from the following file:
- src/Language/ConversionTraverser.php