MediaWiki REL1_33
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.
 
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)
 
 $partClass = PPDPart::class
 
PPDPart[] $parts
 Array of PPDPart objects describing pipe-separated parts.
 
string $savedPrefix = ''
 Saved prefix that may affect later processing, e.g.
 

Detailed Description

Definition at line 923 of file Preprocessor_DOM.php.

Constructor & Destructor Documentation

◆ __construct()

PPDStackElement::__construct ( $data = [])

Reimplemented in PPDStackElement_Hash.

Definition at line 958 of file Preprocessor_DOM.php.

Member Function Documentation

◆ addPart()

PPDStackElement::addPart ( $s = '')

Definition at line 971 of file Preprocessor_DOM.php.

◆ 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 1002 of file Preprocessor_DOM.php.

◆ getAccum()

& PPDStackElement::getAccum ( )

Definition at line 967 of file Preprocessor_DOM.php.

◆ getCurrentPart()

PPDStackElement::getCurrentPart ( )
Returns
PPDPart

Definition at line 979 of file Preprocessor_DOM.php.

◆ getFlags()

PPDStackElement::getFlags ( )
Returns
array

Definition at line 986 of file Preprocessor_DOM.php.

Member Data Documentation

◆ $close

string PPDStackElement::$close

Matching closing character.

Definition at line 932 of file Preprocessor_DOM.php.

◆ $count

int PPDStackElement::$count

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

Definition at line 943 of file Preprocessor_DOM.php.

◆ $lineStart

bool PPDStackElement::$lineStart

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

Not set for headings.

Definition at line 954 of file Preprocessor_DOM.php.

◆ $open

string PPDStackElement::$open

Opening character (\n for heading)

Definition at line 927 of file Preprocessor_DOM.php.

◆ $partClass

PPDStackElement::$partClass = PPDPart::class

Definition at line 956 of file Preprocessor_DOM.php.

◆ $parts

PPDPart [] PPDStackElement::$parts

Array of PPDPart objects describing pipe-separated parts.

Definition at line 948 of file Preprocessor_DOM.php.

◆ $savedPrefix

string PPDStackElement::$savedPrefix = ''

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

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

Definition at line 938 of file Preprocessor_DOM.php.


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