Parsoid
A bidirectional parser between wikitext and HTML5
Loading...
Searching...
No Matches
Wikimedia\Parsoid\Wt2Html\Params Class Reference

A parameter object wrapper, essentially an array of key/value pairs with a few extra methods. More...

Public Member Functions

 __construct (array $args)
 
 dict ()
 FIXME: Used in Parsoid native parser functions implementation and may not be needed in the final version.
 
 named ()
 Converts the args that are an array of ($k, $v) KV objects to an assocative array mapping $k to $v while handling named and locational orgs and trimming whitespace around the keys.
 
 getSlice (int $start, int $end)
 FIXME: Used in Parsoid native parser functions implementation and may not be needed in the final version.
 

Public Attributes

 $args
 
 $argDict
 
 $namedArgsDict
 

Detailed Description

A parameter object wrapper, essentially an array of key/value pairs with a few extra methods.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Parsoid\Wt2Html\Params::__construct ( array $args)
Parameters
KV[]$args

Member Function Documentation

◆ dict()

Wikimedia\Parsoid\Wt2Html\Params::dict ( )

FIXME: Used in Parsoid native parser functions implementation and may not be needed in the final version.

Converts the args that are an array of ($k, $v) KV objects to an assocative array mapping $k to $v.

Returns
array

◆ getSlice()

Wikimedia\Parsoid\Wt2Html\Params::getSlice ( int $start,
int $end )

FIXME: Used in Parsoid native parser functions implementation and may not be needed in the final version.

Parameters
int$start
int$end
Returns
array

◆ named()

Wikimedia\Parsoid\Wt2Html\Params::named ( )

Converts the args that are an array of ($k, $v) KV objects to an assocative array mapping $k to $v while handling named and locational orgs and trimming whitespace around the keys.

Returns
array

The documentation for this class was generated from the following file: