MediaWiki master
MediaWiki\Parser\PPDStackElement_Hash Class Reference
Collaboration diagram for MediaWiki\Parser\PPDStackElement_Hash:

Public Member Functions

 __construct ( $data=[])
 
 addPart ( $s='')
 
 breakSyntax ( $openingCount=false)
 Get the accumulator that would result if the close is not found.
 
getAccum ()
 
 getCurrentPart ()
 
 getFlags ()
 

Public Attributes

string $close
 Matching closing character.
 
int $count
 Number of opening characters found (number of "=" for heading)
 
bool $lineStart
 True if the open char appeared at the start of the input line.
 
string $open
 Opening character (\n for heading)
 
string $partClass = PPDPart_Hash::class
 
PPDPart_Hash[] $parts
 Array of PPDPart objects describing pipe-separated parts.
 
string $savedPrefix = ''
 Saved prefix that may affect later processing, e.g.
 
int $startPos
 Start offset of this element in the source wikitext.
 

Detailed Description

Definition at line 31 of file PPDStackElement_Hash.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Parser\PPDStackElement_Hash::__construct ( $data = [])

Member Function Documentation

◆ addPart()

MediaWiki\Parser\PPDStackElement_Hash::addPart ( $s = '')

◆ breakSyntax()

MediaWiki\Parser\PPDStackElement_Hash::breakSyntax ( $openingCount = false)

Get the accumulator that would result if the close is not found.

Parameters
int | false$openingCount
Returns
array

Definition at line 116 of file PPDStackElement_Hash.php.

References MediaWiki\Parser\PPDStackElement_Hash\$count.

◆ getAccum()

& MediaWiki\Parser\PPDStackElement_Hash::getAccum ( )

Definition at line 81 of file PPDStackElement_Hash.php.

◆ getCurrentPart()

MediaWiki\Parser\PPDStackElement_Hash::getCurrentPart ( )
Returns
PPDPart_Hash

Definition at line 93 of file PPDStackElement_Hash.php.

◆ getFlags()

MediaWiki\Parser\PPDStackElement_Hash::getFlags ( )
Returns
array

Definition at line 100 of file PPDStackElement_Hash.php.

Member Data Documentation

◆ $close

string MediaWiki\Parser\PPDStackElement_Hash::$close

Matching closing character.

Definition at line 40 of file PPDStackElement_Hash.php.

◆ $count

int MediaWiki\Parser\PPDStackElement_Hash::$count

Number of opening characters found (number of "=" for heading)

Definition at line 56 of file PPDStackElement_Hash.php.

Referenced by MediaWiki\Parser\PPDStackElement_Hash\breakSyntax().

◆ $lineStart

bool MediaWiki\Parser\PPDStackElement_Hash::$lineStart

True if the open char appeared at the start of the input line.

Not set for headings.

Definition at line 67 of file PPDStackElement_Hash.php.

◆ $open

string MediaWiki\Parser\PPDStackElement_Hash::$open

Opening character (\n for heading)

Definition at line 35 of file PPDStackElement_Hash.php.

◆ $partClass

string MediaWiki\Parser\PPDStackElement_Hash::$partClass = PPDPart_Hash::class

◆ $parts

PPDPart_Hash [] MediaWiki\Parser\PPDStackElement_Hash::$parts

Array of PPDPart objects describing pipe-separated parts.

Definition at line 61 of file PPDStackElement_Hash.php.

◆ $savedPrefix

string MediaWiki\Parser\PPDStackElement_Hash::$savedPrefix = ''

Saved prefix that may affect later processing, e.g.

to differentiate -{{{{ and {{{{ after later seeing }}}.

Definition at line 46 of file PPDStackElement_Hash.php.

◆ $startPos

int MediaWiki\Parser\PPDStackElement_Hash::$startPos

Start offset of this element in the source wikitext.

Definition at line 51 of file PPDStackElement_Hash.php.


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