Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
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: