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

Compound token representing a list. More...

+ Inheritance diagram for Wikimedia\Parsoid\Tokens\ListTk:
+ Collaboration diagram for Wikimedia\Parsoid\Tokens\ListTk:

Public Member Functions

 setsEOLContext ()
 Does this token implicitly induce an end-of-line context? This is true for tokens that are only generated on seeing EOL & EOF (ex: IndentPreTk, ListTk)
 
 isDLDDList ()
 
 jsonSerialize ()
 
- Public Member Functions inherited from Wikimedia\Parsoid\Tokens\CompoundTk
 __construct (array $nestedToks=[], ?DataParsoid $dp=null)
 
 __clone ()
 
 addToken ( $token)
 
 addTokens (array $tokens)
 
 getNestedTokens ()
 
 setNestedTokens (array $tokens)
 
- Public Member Functions inherited from Wikimedia\Parsoid\Tokens\Token
 toJsonArray ()
 
 getType ()
 Returns a string key for this token.
 
 addAttribute (string $name, $value, ?KVSourceRange $srcOffsets=null)
 Generic set attribute method.
 
 addNormalizedAttribute (string $name, $value, $origValue)
 Generic set attribute method with support for change detection.
 
 getAttributeV (string $name)
 Generic attribute accessor.
 
 getAttributeKV (string $name)
 Generic attribute accessor.
 
 hasAttribute (string $name)
 Generic attribute accessor.
 
 setAttribute (string $name, $value)
 Set an unshadowed attribute.
 
 setShadowInfo (string $name, $value, $origValue)
 Store the original value of an attribute in a token's dataParsoid.
 
 setShadowInfoIfModified (string $name, $value, $origValue)
 Store the original value of an attribute in a token's dataParsoid.
 
 getAttributeShadowInfo (string $name)
 Attribute info accessor for the wikitext serializer.
 
 removeAttribute (string $name)
 Completely remove all attributes with this name.
 
 addSpaceSeparatedAttribute (string $name, string $value)
 Add a space-separated property value.
 
 getWTSource (Source ... $source)
 Get the wikitext source of a token.
 
 fetchExpandedAttrValue (string $key)
 

Static Public Member Functions

static newFromJsonArray (array $json)
 
- Static Public Member Functions inherited from Wikimedia\Parsoid\Tokens\Token
static jsonClassHintFor (string $keyName)
 
static hint ()
 
static getToken ( $input)
 Get a token from some PHP structure.
 

Public Attributes

string $listType = null
 
- Public Attributes inherited from Wikimedia\Parsoid\Tokens\Token
DataParsoid $dataParsoid
 
DataMw $dataMw = null
 
array $attribs = null
 

Additional Inherited Members

- Protected Member Functions inherited from Wikimedia\Parsoid\Tokens\Token
 __construct (?DataParsoid $dataParsoid, ?DataMw $dataMw)
 
- Protected Attributes inherited from Wikimedia\Parsoid\Tokens\CompoundTk
array $nestedTokens
 

Detailed Description

Compound token representing a list.

Member Function Documentation

◆ jsonSerialize()

Wikimedia\Parsoid\Tokens\ListTk::jsonSerialize ( )

◆ newFromJsonArray()

static Wikimedia\Parsoid\Tokens\ListTk::newFromJsonArray ( array $json)
static

Reimplemented from Wikimedia\Parsoid\Tokens\Token.

◆ setsEOLContext()

Wikimedia\Parsoid\Tokens\ListTk::setsEOLContext ( )

Does this token implicitly induce an end-of-line context? This is true for tokens that are only generated on seeing EOL & EOF (ex: IndentPreTk, ListTk)

Reimplemented from Wikimedia\Parsoid\Tokens\CompoundTk.


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