MediaWiki  master
PPDStackElement_Hash Class Reference
Collaboration diagram for PPDStackElement_Hash:

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 29 of file PPDStackElement_Hash.php.

Constructor & Destructor Documentation

◆ __construct()

PPDStackElement_Hash::__construct (   $data = [])

Definition at line 65 of file PPDStackElement_Hash.php.

References $partClass.

Member Function Documentation

◆ addPart()

PPDStackElement_Hash::addPart (   $s = '')

Definition at line 78 of file PPDStackElement_Hash.php.

References $partClass, and $s.

◆ breakSyntax()

PPDStackElement_Hash::breakSyntax (   $openingCount = false)

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

Parameters
int | bool$openingCount
Returns
array

Definition at line 109 of file PPDStackElement_Hash.php.

References $count, and $s.

◆ getAccum()

& PPDStackElement_Hash::getAccum ( )

Definition at line 74 of file PPDStackElement_Hash.php.

◆ getCurrentPart()

PPDStackElement_Hash::getCurrentPart ( )
Returns
PPDPart_Hash

Definition at line 86 of file PPDStackElement_Hash.php.

◆ getFlags()

PPDStackElement_Hash::getFlags ( )
Returns
array

Definition at line 93 of file PPDStackElement_Hash.php.

Member Data Documentation

◆ $close

string PPDStackElement_Hash::$close

Matching closing character.

Definition at line 38 of file PPDStackElement_Hash.php.

◆ $count

int PPDStackElement_Hash::$count

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

Definition at line 49 of file PPDStackElement_Hash.php.

Referenced by breakSyntax().

◆ $lineStart

bool PPDStackElement_Hash::$lineStart

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

Not set for headings.

Definition at line 60 of file PPDStackElement_Hash.php.

◆ $open

string PPDStackElement_Hash::$open

Opening character (\n for heading)

Definition at line 33 of file PPDStackElement_Hash.php.

◆ $partClass

string PPDStackElement_Hash::$partClass = PPDPart_Hash::class

Definition at line 63 of file PPDStackElement_Hash.php.

Referenced by __construct(), and addPart().

◆ $parts

PPDPart_Hash [] PPDStackElement_Hash::$parts

Array of PPDPart objects describing pipe-separated parts.

Definition at line 54 of file PPDStackElement_Hash.php.

◆ $savedPrefix

string PPDStackElement_Hash::$savedPrefix = ''

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

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

Definition at line 44 of file PPDStackElement_Hash.php.


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