Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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: