Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
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

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