MediaWiki fundraising/REL1_35
PPDStack Class Reference

Stack class to help Preprocessor::preprocessToObj() More...

Inheritance diagram for PPDStack:
Collaboration diagram for PPDStack:

Public Member Functions

 __construct ()
 
 addPart ( $s='')
 
 count ()
 
getAccum ()
 
 getCurrentPart ()
 
 getFlags ()
 
 pop ()
 
 push ( $data)
 

Public Attributes

string array $accum
 
 $elementClass = PPDStackElement::class
 
 $out
 
 $rootAccum
 
PPDStackElement[] $stack
 
PPDStackElement false $top
 

Static Public Attributes

static $false = false
 

Detailed Description

Stack class to help Preprocessor::preprocessToObj()

Definition at line 26 of file PPDStack.php.

Constructor & Destructor Documentation

◆ __construct()

PPDStack::__construct ( )

Reimplemented in PPDStack_Hash.

Definition at line 42 of file PPDStack.php.

References $rootAccum.

Member Function Documentation

◆ addPart()

PPDStack::addPart ( $s = '')

Definition at line 98 of file PPDStack.php.

References $s.

◆ count()

PPDStack::count ( )
Returns
int

Definition at line 52 of file PPDStack.php.

References count().

Referenced by count(), pop(), and push().

◆ getAccum()

& PPDStack::getAccum ( )

Definition at line 56 of file PPDStack.php.

References $accum.

◆ getCurrentPart()

PPDStack::getCurrentPart ( )
Returns
bool|PPDPart

Definition at line 63 of file PPDStack.php.

◆ getFlags()

PPDStack::getFlags ( )
Returns
array

Definition at line 106 of file PPDStack.php.

◆ pop()

PPDStack::pop ( )

Definition at line 82 of file PPDStack.php.

References $false, $rootAccum, and count().

◆ push()

PPDStack::push ( $data)

Definition at line 71 of file PPDStack.php.

References $elementClass, and count().

Member Data Documentation

◆ $accum

string array PPDStack::$accum

Definition at line 31 of file PPDStack.php.

Referenced by getAccum().

◆ $elementClass

PPDStack::$elementClass = PPDStackElement::class

Definition at line 38 of file PPDStack.php.

Referenced by push().

◆ $false

PPDStack::$false = false
static

Definition at line 40 of file PPDStack.php.

Referenced by pop().

◆ $out

PPDStack::$out

Definition at line 37 of file PPDStack.php.

◆ $rootAccum

PPDStack::$rootAccum

Definition at line 29 of file PPDStack.php.

Referenced by __construct(), and pop().

◆ $stack

PPDStackElement [] PPDStack::$stack

Definition at line 28 of file PPDStack.php.

◆ $top

PPDStackElement false PPDStack::$top

Definition at line 36 of file PPDStack.php.


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