MediaWiki  1.34.0
PPDStackElement Class Reference
Inheritance diagram for PPDStackElement:
Collaboration diagram for PPDStackElement:

Public Member Functions

 __construct ( $data=[])
 
 addPart ( $s='')
 
 breakSyntax ( $openingCount=false)
 Get the output string 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...
 
 $partClass = PPDPart::class
 
PPDPart[] $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 27 of file PPDStackElement.php.

Constructor & Destructor Documentation

◆ __construct()

PPDStackElement::__construct (   $data = [])

Reimplemented in PPDStackElement_Hash.

Definition at line 62 of file PPDStackElement.php.

References $partClass.

Member Function Documentation

◆ addPart()

PPDStackElement::addPart (   $s = '')

Definition at line 75 of file PPDStackElement.php.

References $partClass, and $s.

◆ breakSyntax()

PPDStackElement::breakSyntax (   $openingCount = false)

Get the output string that would result if the close is not found.

Parameters
bool | int$openingCount
Returns
string

Reimplemented in PPDStackElement_Hash.

Definition at line 106 of file PPDStackElement.php.

References $count, and $s.

◆ getAccum()

& PPDStackElement::getAccum ( )

Definition at line 71 of file PPDStackElement.php.

◆ getCurrentPart()

PPDStackElement::getCurrentPart ( )
Returns
PPDPart

Definition at line 83 of file PPDStackElement.php.

◆ getFlags()

PPDStackElement::getFlags ( )
Returns
array

Definition at line 90 of file PPDStackElement.php.

Member Data Documentation

◆ $close

string PPDStackElement::$close

Matching closing character.

Definition at line 36 of file PPDStackElement.php.

◆ $count

int PPDStackElement::$count

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

Definition at line 47 of file PPDStackElement.php.

Referenced by PPDStackElement_Hash\breakSyntax(), and breakSyntax().

◆ $lineStart

bool PPDStackElement::$lineStart

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

Not set for headings.

Definition at line 58 of file PPDStackElement.php.

◆ $open

string PPDStackElement::$open

Opening character (\n for heading)

Definition at line 31 of file PPDStackElement.php.

◆ $partClass

PPDStackElement::$partClass = PPDPart::class

Definition at line 60 of file PPDStackElement.php.

Referenced by __construct(), and addPart().

◆ $parts

PPDPart [] PPDStackElement::$parts

Array of PPDPart objects describing pipe-separated parts.

Definition at line 52 of file PPDStackElement.php.

◆ $savedPrefix

string PPDStackElement::$savedPrefix = ''

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

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

Definition at line 42 of file PPDStackElement.php.


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