MediaWiki REL1_31
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 918 of file Preprocessor_DOM.php.

Constructor & Destructor Documentation

◆ __construct()

PPDStackElement::__construct ( $data = [])

Reimplemented in PPDStackElement_Hash.

Definition at line 953 of file Preprocessor_DOM.php.

Member Function Documentation

◆ addPart()

PPDStackElement::addPart ( $s = '')

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

◆ getAccum()

& PPDStackElement::getAccum ( )

Definition at line 962 of file Preprocessor_DOM.php.

◆ getCurrentPart()

PPDStackElement::getCurrentPart ( )

Definition at line 971 of file Preprocessor_DOM.php.

◆ getFlags()

PPDStackElement::getFlags ( )
Returns
array

Definition at line 978 of file Preprocessor_DOM.php.

Member Data Documentation

◆ $close

string PPDStackElement::$close

Matching closing character.

Definition at line 927 of file Preprocessor_DOM.php.

◆ $count

int PPDStackElement::$count

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

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

◆ $open

string PPDStackElement::$open

Opening character (\n for heading)

Definition at line 922 of file Preprocessor_DOM.php.

◆ $partClass

PPDStackElement::$partClass = PPDPart::class

Definition at line 951 of file Preprocessor_DOM.php.

◆ $parts

PPDPart [] PPDStackElement::$parts

Array of PPDPart objects describing pipe-separated parts.

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


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