Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
StateStack Class Reference

States for a stack machine. More...

Public Member Functions

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

Public Attributes

 $_stack
 

Detailed Description

States for a stack machine.

License
Public Domain

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