MediaWiki REL1_32
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 920 of file Preprocessor_DOM.php.

Constructor & Destructor Documentation

◆ __construct()

PPDStackElement::__construct ( $data = [])

Reimplemented in PPDStackElement_Hash.

Definition at line 955 of file Preprocessor_DOM.php.

Member Function Documentation

◆ addPart()

PPDStackElement::addPart ( $s = '')

Definition at line 968 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 996 of file Preprocessor_DOM.php.

◆ getAccum()

& PPDStackElement::getAccum ( )

Definition at line 964 of file Preprocessor_DOM.php.

◆ getCurrentPart()

PPDStackElement::getCurrentPart ( )

Definition at line 973 of file Preprocessor_DOM.php.

◆ getFlags()

PPDStackElement::getFlags ( )
Returns
array

Definition at line 980 of file Preprocessor_DOM.php.

Member Data Documentation

◆ $close

string PPDStackElement::$close

Matching closing character.

Definition at line 929 of file Preprocessor_DOM.php.

◆ $count

int PPDStackElement::$count

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

Definition at line 940 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 951 of file Preprocessor_DOM.php.

◆ $open

string PPDStackElement::$open

Opening character (\n for heading)

Definition at line 924 of file Preprocessor_DOM.php.

◆ $partClass

PPDStackElement::$partClass = PPDPart::class

Definition at line 953 of file Preprocessor_DOM.php.

◆ $parts

PPDPart [] PPDStackElement::$parts

Array of PPDPart objects describing pipe-separated parts.

Definition at line 945 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 935 of file Preprocessor_DOM.php.


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