MediaWiki REL1_28
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'
 
PPDPart[] $parts
 Array of PPDPart objects describing pipe-separated parts.
 

Detailed Description

Definition at line 826 of file Preprocessor_DOM.php.

Constructor & Destructor Documentation

◆ __construct()

PPDStackElement::__construct (   $data = [])

Reimplemented in PPDStackElement_Hash.

Definition at line 855 of file Preprocessor_DOM.php.

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

Member Function Documentation

◆ addPart()

PPDStackElement::addPart (   $s = '')

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

References $count, $s, and as.

◆ getAccum()

& PPDStackElement::getAccum ( )

Definition at line 864 of file Preprocessor_DOM.php.

◆ getCurrentPart()

PPDStackElement::getCurrentPart ( )

Definition at line 873 of file Preprocessor_DOM.php.

◆ getFlags()

PPDStackElement::getFlags ( )
Returns
array

Definition at line 880 of file Preprocessor_DOM.php.

Member Data Documentation

◆ $close

string PPDStackElement::$close

Matching closing character.

Definition at line 835 of file Preprocessor_DOM.php.

◆ $count

int PPDStackElement::$count

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

Definition at line 840 of file Preprocessor_DOM.php.

Referenced by breakSyntax(), and PPDStackElement_Hash\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 851 of file Preprocessor_DOM.php.

◆ $open

string PPDStackElement::$open

Opening character (\n for heading)

Definition at line 830 of file Preprocessor_DOM.php.

◆ $partClass

PPDStackElement::$partClass = 'PPDPart'

Definition at line 853 of file Preprocessor_DOM.php.

Referenced by __construct(), and addPart().

◆ $parts

PPDPart [] PPDStackElement::$parts

Array of PPDPart objects describing pipe-separated parts.

Definition at line 845 of file Preprocessor_DOM.php.


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