MediaWiki  master
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 25 of file PPDStackElement.php.

Constructor & Destructor Documentation

◆ __construct()

PPDStackElement::__construct (   $data = [])

Definition at line 60 of file PPDStackElement.php.

References $name, $partClass, $value, and as.

Member Function Documentation

◆ addPart()

PPDStackElement::addPart (   $s = '')

Definition at line 73 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

Definition at line 104 of file PPDStackElement.php.

References $count, $s, as, and Makefile\open.

◆ getAccum()

& PPDStackElement::getAccum ( )

Definition at line 69 of file PPDStackElement.php.

◆ getCurrentPart()

PPDStackElement::getCurrentPart ( )
Returns
PPDPart

Definition at line 81 of file PPDStackElement.php.

◆ getFlags()

PPDStackElement::getFlags ( )
Returns
array

Definition at line 88 of file PPDStackElement.php.

References Makefile\open.

Member Data Documentation

◆ $close

string PPDStackElement::$close

Matching closing character.

Definition at line 34 of file PPDStackElement.php.

◆ $count

int PPDStackElement::$count

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

Definition at line 45 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 56 of file PPDStackElement.php.

◆ $open

string PPDStackElement::$open

Opening character (\n for heading)

Definition at line 29 of file PPDStackElement.php.

◆ $partClass

PPDStackElement::$partClass = PPDPart::class

Definition at line 58 of file PPDStackElement.php.

Referenced by __construct(), and addPart().

◆ $parts

PPDPart [] PPDStackElement::$parts

Array of PPDPart objects describing pipe-separated parts.

Definition at line 50 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 40 of file PPDStackElement.php.


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