Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Public Attributes | List of all members
StateStack Class Reference

States for a stack machine. More...

Public Member Functions

 __construct ($start)
 Constructor. More...
 
 enter ($state)
 Adds a state to the stack and sets it to be the current state. More...
 
 getCurrent ()
 Accessor for current state. More...
 
 leave ()
 Leaves the current state and reverts to the previous one. More...
 
 StateStack ($start)
 Old syntax of class constructor. More...
 

Public Attributes

 $_stack
 

Detailed Description

States for a stack machine.

License
Public Domain http://sourceforge.net/projects/lamplib

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